Source:
private com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor createFragment ( com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor [ ] viewLayoutAttribs , java.util.Map < java.lang.String , com.android.ide.common.resources.platform.DeclareStyleableInfo > styleMap ) { java.lang.String xmlName = com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_FRAGMENT ; final com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor descriptor ; com.android.ide.common.resources.platform.DeclareStyleableInfo style = styleMap.get ( "Fragment" ) ; java.lang.String fragmentTooltip = "A Fragment is a piece of an application's user interface or behavior that " + "can be placed in an Activity" ; java.lang.String sdkUrl = "http://developer.android.com/guide/topics/fundamentals/fragments.html" ; com.android.ide.eclipse.adt.internal.editors.descriptors.TextAttributeDescriptor classAttribute = new com.android.ide.eclipse.adt.internal.editors.manifest.descriptors.ClassAttributeDescriptor ( null , com.android.ide.common.layout.LayoutConstants.ATTR_CLASS , null , new com.android.ide.common.resources.platform.AttributeInfo ( com.android.ide.common.layout.LayoutConstants.ATTR_CLASS , com.android.ide.common.api.IAttributeInfo.Format.STRING_SET ) , true ) . setTooltip ( "Supply the name of the fragment class to instantiate" ) ; if ( style != null ) { descriptor = new com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ( com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_FRAGMENT , com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_FRAGMENT , com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_FRAGMENT , fragmentTooltip , sdkUrl , null , viewLayoutAttribs , null , false ) ; java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor > descs = new java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor > ( ) ; descs.add ( classAttribute ) ; com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.appendAttributes ( descs , null , SdkConstants.NS_RESOURCES , style.getAttributes ( ) , null , null ) ; descriptor.setAttributes ( descs.toArray ( new com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor [ descs.size ( ) ] ) ) ; } else { descriptor = new com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ( xmlName , xmlName , xmlName , fragmentTooltip , sdkUrl , new com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor [ ] { new com.android.ide.eclipse.adt.internal.editors.manifest.descriptors.ClassAttributeDescriptor ( null , com.android.ide.common.layout.LayoutConstants.ATTR_NAME , com.android.ide.common.layout.LayoutConstants.ANDROID_URI , new com.android.ide.common.resources.platform.AttributeInfo ( com.android.ide.common.layout.LayoutConstants.ATTR_NAME , com.android.ide.common.api.IAttributeInfo.Format.STRING_SET ) , true ) . setTooltip ( "Supply the name of the fragment class to instantiate" ) , classAttribute , new com.android.ide.eclipse.adt.internal.editors.manifest.descriptors.ClassAttributeDescriptor ( null , com.android.ide.common.layout.LayoutConstants.ATTR_TAG , com.android.ide.common.layout.LayoutConstants.ANDROID_URI , new com.android.ide.common.resources.platform.AttributeInfo ( com.android.ide.common.layout.LayoutConstants.ATTR_TAG , com.android.ide.common.api.IAttributeInfo.Format.STRING_SET ) , true ) . setTooltip ( "Supply a tag for the top-level view containing a String" ) } , viewLayoutAttribs , null , false ) ; } return descriptor ; }

Target:
private com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor createFragment ( com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor [ ] viewLayoutAttribs , java.util.Map < java.lang.String , com.android.ide.common.resources.platform.DeclareStyleableInfo > styleMap ) { java.lang.String xmlName = com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_FRAGMENT ; final com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor descriptor ; com.android.ide.common.resources.platform.DeclareStyleableInfo style = styleMap.get ( "Fragment" ) ; java.lang.String fragmentTooltip = "A Fragment is a piece of an application's user interface or behavior that " + "can be placed in an Activity" ; java.lang.String sdkUrl = "http://developer.android.com/guide/topics/fundamentals/fragments.html" ; com.android.ide.eclipse.adt.internal.editors.descriptors.TextAttributeDescriptor classAttribute = new com.android.ide.eclipse.adt.internal.editors.manifest.descriptors.ClassAttributeDescriptor ( null , com.android.ide.common.layout.LayoutConstants.ATTR_CLASS , null , new com.android.ide.common.resources.platform.AttributeInfo ( com.android.ide.common.layout.LayoutConstants.ATTR_CLASS , com.android.ide.common.api.IAttributeInfo.Format.STRING_SET ) , true ) . setTooltip ( "Supply the name of the fragment class to instantiate" ) ; if ( style != null ) { descriptor = new com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ( com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_FRAGMENT , com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_FRAGMENT , com.android.ide.eclipse.adt.internal.editors.layout.descriptors.LayoutDescriptors.VIEW_FRAGMENT , fragmentTooltip , sdkUrl , null , viewLayoutAttribs , null , false ) ; java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor > descs = new java.util.ArrayList < com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor > ( ) ; descs.add ( classAttribute ) ; com.android.ide.eclipse.adt.internal.editors.descriptors.DescriptorsUtils.appendAttributes ( descs , null , SdkConstants.NS_RESOURCES , style.getAttributes ( ) , null , null ) ; descriptor.setAttributes ( descs.toArray ( new com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor [ descs.size ( ) ] ) ) ; } else { descriptor = new com.android.ide.eclipse.adt.internal.editors.layout.descriptors.ViewElementDescriptor ( xmlName , xmlName , xmlName , fragmentTooltip , sdkUrl , new com.android.ide.eclipse.adt.internal.editors.descriptors.AttributeDescriptor [ ] { new com.android.ide.eclipse.adt.internal.editors.manifest.descriptors.ClassAttributeDescriptor ( null , com.android.ide.common.layout.LayoutConstants.ATTR_NAME , com.android.util.XmlUtils.ANDROID_URI , new com.android.ide.common.resources.platform.AttributeInfo ( com.android.ide.common.layout.LayoutConstants.ATTR_NAME , com.android.ide.common.api.IAttributeInfo.Format.STRING_SET ) , true ) . setTooltip ( "Supply the name of the fragment class to instantiate" ) , classAttribute , new com.android.ide.eclipse.adt.internal.editors.manifest.descriptors.ClassAttributeDescriptor ( null , com.android.ide.common.layout.LayoutConstants.ATTR_TAG , com.android.util.XmlUtils.ANDROID_URI , new com.android.ide.common.resources.platform.AttributeInfo ( com.android.ide.common.layout.LayoutConstants.ATTR_TAG , com.android.ide.common.api.IAttributeInfo.Format.STRING_SET ) , true ) . setTooltip ( "Supply a tag for the top-level view containing a String" ) } , viewLayoutAttribs , null , false ) ; } return descriptor ; }