org.eclipse.emf.edit.provider.IItemLabelProvider Java Examples
The following examples show how to use
org.eclipse.emf.edit.provider.IItemLabelProvider.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ProjectBuilder.java From neoscada with Eclipse Public License 1.0 | 6 votes |
@Override public String getObjectLabel ( final EObject eObject ) { if ( eObject.eIsProxy () ) { return super.getObjectLabel ( eObject ); } final IItemLabelProvider itemLabelProvider = (IItemLabelProvider)this.adapterFactory.adapt ( eObject, IItemLabelProvider.class ); logger.debug ( "Label provider: {} - for {}", itemLabelProvider, eObject ); if ( itemLabelProvider != null ) { return itemLabelProvider.getText ( eObject ); } return super.getObjectLabel ( eObject ); }
Example #2
Source File: ComponentLabelProvider.java From neoscada with Eclipse Public License 1.0 | 6 votes |
@Override public String getText ( final Object element ) { final IItemLabelProvider labelProvider = (IItemLabelProvider)this.adapterFactory.adapt ( element, IItemLabelProvider.class ); if ( labelProvider != null ) { final String label = labelProvider.getText ( element ); final String parents = makeParents ( element ); if ( parents != null && !parents.isEmpty () ) { return label + " - " + parents; } else { return label; } } else { return super.getText ( element ); } }
Example #3
Source File: ExpressionsItemProviderAdapterFactory.java From statecharts with Eclipse Public License 1.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ExpressionsItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #4
Source File: SimulationItemProviderAdapterFactory.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SimulationItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #5
Source File: ConnectorImplementationItemProviderAdapterFactory.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ConnectorImplementationItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #6
Source File: ConnectorDefinitionItemProviderAdapterFactory.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ConnectorDefinitionItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #7
Source File: TransitionsItemProviderAdapterFactory.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public TransitionsItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #8
Source File: DecisionItemProviderAdapterFactory.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public DecisionItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #9
Source File: ProcessItemProviderAdapterFactory.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ProcessItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #10
Source File: ConfigurationItemProviderAdapterFactory.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ConfigurationItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #11
Source File: ExpressionItemProviderAdapterFactory.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ExpressionItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #12
Source File: KpiItemProviderAdapterFactory.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public KpiItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #13
Source File: ProcessDiagramEditorPlugin.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * @generated */ public ImageDescriptor getItemImageDescriptor(Object item) { IItemLabelProvider labelProvider = (IItemLabelProvider) adapterFactory.adapt(item, IItemLabelProvider.class); if (labelProvider != null) { return ExtendedImageRegistry.getInstance().getImageDescriptor(labelProvider.getImage(item)); } return null; }
Example #14
Source File: ModelItemProviderAdapterFactory.java From elexis-3-core with Eclipse Public License 1.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ModelItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); supportedTypes.add(ITableItemLabelProvider.class); }
Example #15
Source File: ConnectorConfigurationItemProviderAdapterFactory.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ConnectorConfigurationItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #16
Source File: BibtexItemProviderAdapterFactory.java From slr-toolkit with Eclipse Public License 1.0 | 5 votes |
/** * This constructs an instance. <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated */ public BibtexItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #17
Source File: EipItemProviderAdapterFactory.java From eip-designer with Apache License 2.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public EipItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #18
Source File: ExtensionsItemProviderAdapterFactory.java From ifml-editor with MIT License | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public ExtensionsItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #19
Source File: TypesItemProviderAdapterFactory.java From statecharts with Eclipse Public License 1.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public TypesItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #20
Source File: BaseItemProviderAdapterFactory.java From statecharts with Eclipse Public License 1.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BaseItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #21
Source File: SexecItemProviderAdapterFactory.java From statecharts with Eclipse Public License 1.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SexecItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #22
Source File: SGenItemProviderAdapterFactory.java From statecharts with Eclipse Public License 1.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SGenItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #23
Source File: SGraphItemProviderAdapterFactory.java From statecharts with Eclipse Public License 1.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public SGraphItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #24
Source File: StextItemProviderAdapterFactory.java From statecharts with Eclipse Public License 1.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public StextItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #25
Source File: TypeModelItemProviderAdapterFactory.java From dsl-devkit with Eclipse Public License 1.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public TypeModelItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #26
Source File: BeansItemProviderAdapterFactory.java From hybris-commerce-eclipse-plugin with Apache License 2.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public BeansItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #27
Source File: TypesItemProviderAdapterFactory.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public TypesItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #28
Source File: VariableValueCellLabelProvider.java From M2Doc with Eclipse Public License 1.0 | 5 votes |
@Override public void update(ViewerCell cell) { final Definition definition = (Definition) cell.getElement(); if (definition instanceof StringDefinition) { cell.setText(((StringDefinition) definition).getValue()); } else if (definition instanceof IntegerDefinition) { cell.setText(String.valueOf(((IntegerDefinition) definition).getValue())); } else if (definition instanceof RealDefinition) { cell.setText(String.valueOf(((RealDefinition) definition).getValue())); } else if (definition instanceof BooleanDefinition) { cell.setText(String.valueOf(((BooleanDefinition) definition).isValue())); } else if (definition instanceof ModelDefinition) { final String text; final EObject eObj = ((ModelDefinition) definition).getValue(); if (eObj != null) { final IItemLabelProvider itemProvider = (IItemLabelProvider) adapterFactory.adapt(eObj, IItemLabelProvider.class); if (itemProvider == null) { text = eObj.toString(); } else { text = itemProvider.getText(eObj); } cell.setText(text); } else { cell.setText(""); } } else { cell.setText(DON_T_KNOW_WHAT_TO_DO_WITH + definition.getClass().getCanonicalName()); } }
Example #29
Source File: GenconfItemProviderAdapterFactory.java From M2Doc with Eclipse Public License 1.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ public GenconfItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }
Example #30
Source File: CrossflowItemProviderAdapterFactory.java From scava with Eclipse Public License 2.0 | 5 votes |
/** * This constructs an instance. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public CrossflowItemProviderAdapterFactory() { supportedTypes.add(IEditingDomainItemProvider.class); supportedTypes.add(IStructuredItemContentProvider.class); supportedTypes.add(ITreeItemContentProvider.class); supportedTypes.add(IItemLabelProvider.class); supportedTypes.add(IItemPropertySource.class); }