/** * This returns the label styled text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generatedNOT */ @Override public Object getStyledText(Object object) { StyledString styledLabel = new StyledString(); TreeNodeWrapper treeNodeWrapper = (TreeNodeWrapper) object; Object realItem = ((TreeNodeWrapper) object).getObject(); if (realItem == null) { return treeNodeWrapper.getLabel(); } IItemLabelProvider realItemItemprovider = getRealItemItemProvider(treeNodeWrapper, realItem); String suffix = treeNodeWrapper.isChildrenLoaded() ? " (" + getChildren(object).size() + ")" : " (?)"; if (realItemItemprovider instanceof IItemStyledLabelProvider) { styledLabel = (StyledString) ((IItemStyledLabelProvider) realItemItemprovider).getStyledText(realItem); styledLabel.append(suffix, CHILDREN_NUM_STYLE); } else { styledLabel.append(realItemItemprovider.getText(realItem), StyledString.Style.NO_STYLE); styledLabel.append(suffix, CHILDREN_NUM_STYLE); } return styledLabel; }
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public GlobalizeItemProviderAdapterFactory () { supportedTypes.add ( IEditingDomainItemProvider.class ); supportedTypes.add ( IStructuredItemContentProvider.class ); supportedTypes.add ( ITreeItemContentProvider.class ); supportedTypes.add ( IItemLabelProvider.class ); supportedTypes.add ( IItemPropertySource.class ); supportedTypes.add ( IItemStyledLabelProvider.class ); }
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public CommonItemProviderAdapterFactory () { supportedTypes.add ( IEditingDomainItemProvider.class ); supportedTypes.add ( IStructuredItemContentProvider.class ); supportedTypes.add ( ITreeItemContentProvider.class ); supportedTypes.add ( IItemLabelProvider.class ); supportedTypes.add ( IItemPropertySource.class ); supportedTypes.add ( IItemStyledLabelProvider.class ); }
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public DeploymentItemProviderAdapterFactory () { supportedTypes.add ( IEditingDomainItemProvider.class ); supportedTypes.add ( IStructuredItemContentProvider.class ); supportedTypes.add ( ITreeItemContentProvider.class ); supportedTypes.add ( IItemLabelProvider.class ); supportedTypes.add ( IItemPropertySource.class ); supportedTypes.add ( ITableItemLabelProvider.class ); supportedTypes.add ( IItemStyledLabelProvider.class ); }
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SetupItemProviderAdapterFactory () { supportedTypes.add ( IEditingDomainItemProvider.class ); supportedTypes.add ( IStructuredItemContentProvider.class ); supportedTypes.add ( ITreeItemContentProvider.class ); supportedTypes.add ( IItemLabelProvider.class ); supportedTypes.add ( IItemPropertySource.class ); supportedTypes.add ( ITableItemLabelProvider.class ); supportedTypes.add ( IItemStyledLabelProvider.class ); }
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ProfileItemProviderAdapterFactory () { supportedTypes.add ( IEditingDomainItemProvider.class ); supportedTypes.add ( IStructuredItemContentProvider.class ); supportedTypes.add ( ITreeItemContentProvider.class ); supportedTypes.add ( IItemLabelProvider.class ); supportedTypes.add ( IItemPropertySource.class ); supportedTypes.add ( ITableItemLabelProvider.class ); supportedTypes.add ( IItemStyledLabelProvider.class ); }
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public OsgiItemProviderAdapterFactory () { supportedTypes.add ( IEditingDomainItemProvider.class ); supportedTypes.add ( IStructuredItemContentProvider.class ); supportedTypes.add ( ITreeItemContentProvider.class ); supportedTypes.add ( IItemLabelProvider.class ); supportedTypes.add ( IItemPropertySource.class ); supportedTypes.add ( ITableItemLabelProvider.class ); supportedTypes.add ( IItemStyledLabelProvider.class ); }
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public WorldItemProviderAdapterFactory () { supportedTypes.add ( IEditingDomainItemProvider.class ); supportedTypes.add ( IStructuredItemContentProvider.class ); supportedTypes.add ( ITreeItemContentProvider.class ); supportedTypes.add ( IItemLabelProvider.class ); supportedTypes.add ( IItemPropertySource.class ); supportedTypes.add ( ITableItemLabelProvider.class ); supportedTypes.add ( IItemStyledLabelProvider.class ); }
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public MemoryItemProviderAdapterFactory () { supportedTypes.add ( IEditingDomainItemProvider.class ); supportedTypes.add ( IStructuredItemContentProvider.class ); supportedTypes.add ( ITreeItemContentProvider.class ); supportedTypes.add ( IItemLabelProvider.class ); supportedTypes.add ( IItemPropertySource.class ); supportedTypes.add ( IItemStyledLabelProvider.class ); }
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public RecipeItemProviderAdapterFactory () { supportedTypes.add ( IEditingDomainItemProvider.class ); supportedTypes.add ( IStructuredItemContentProvider.class ); supportedTypes.add ( ITreeItemContentProvider.class ); supportedTypes.add ( IItemLabelProvider.class ); supportedTypes.add ( IItemPropertySource.class ); supportedTypes.add ( IItemStyledLabelProvider.class ); }
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ComponentItemProviderAdapterFactory () { supportedTypes.add ( IEditingDomainItemProvider.class ); supportedTypes.add ( IStructuredItemContentProvider.class ); supportedTypes.add ( ITreeItemContentProvider.class ); supportedTypes.add ( IItemLabelProvider.class ); supportedTypes.add ( IItemPropertySource.class ); supportedTypes.add ( IItemStyledLabelProvider.class ); }
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public InfrastructureItemProviderAdapterFactory () { supportedTypes.add ( IEditingDomainItemProvider.class ); supportedTypes.add ( IStructuredItemContentProvider.class ); supportedTypes.add ( ITreeItemContentProvider.class ); supportedTypes.add ( IItemLabelProvider.class ); supportedTypes.add ( IItemPropertySource.class ); supportedTypes.add ( IItemStyledLabelProvider.class ); }
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BtsviewmodelItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); supportedTypes.add(ITableItemLabelProvider.class); supportedTypes.add(ITableItemColorProvider.class); supportedTypes.add(ITableItemFontProvider.class); supportedTypes.add(IItemColorProvider.class); supportedTypes.add(IItemFontProvider.class); supportedTypes.add(IItemStyledLabelProvider.class); }
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BtsmodelItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); supportedTypes.add(ITableItemLabelProvider.class); supportedTypes.add(ITableItemColorProvider.class); supportedTypes.add(ITableItemFontProvider.class); supportedTypes.add(IItemColorProvider.class); supportedTypes.add(IItemFontProvider.class); supportedTypes.add(IItemStyledLabelProvider.class); }
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BtsCorpusModelItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); supportedTypes.add(ITableItemLabelProvider.class); supportedTypes.add(ITableItemColorProvider.class); supportedTypes.add(ITableItemFontProvider.class); supportedTypes.add(IItemColorProvider.class); supportedTypes.add(IItemFontProvider.class); supportedTypes.add(IItemStyledLabelProvider.class); }
public CustomReflectiveAdapterFactory() { supportedTypes.add(IItemStyledLabelProvider.class); supportedTypes.add(ITableItemLabelProvider.class); adapter = new CustomReflectiveItemProvider(this); }