public class EMFFormsLabelProviderImpl extends Object implements EMFFormsLabelProvider, EMFFormsLocaleChangeListener
EMFFormsLabelProvider
. It provides a label service that delivers the display name and
description for a domain model reference and optionally an EObject.Constructor and Description |
---|
EMFFormsLabelProviderImpl() |
Modifier and Type | Method and Description |
---|---|
org.eclipse.core.databinding.observable.value.IObservableValue |
getDescription(VDomainModelReference domainModelReference)
Returns the description of the referenced domain object.
|
org.eclipse.core.databinding.observable.value.IObservableValue |
getDescription(VDomainModelReference domainModelReference,
org.eclipse.emf.ecore.EObject rootObject)
Returns the description of the referenced domain object resolved for the given root
EObject . |
String |
getDisplayName(org.eclipse.emf.ecore.EStructuralFeature structuralFeature)
Returns the display name of the
EStructuralFeature . |
org.eclipse.core.databinding.observable.value.IObservableValue |
getDisplayName(VDomainModelReference domainModelReference)
Returns the display name of the referenced domain object.
|
org.eclipse.core.databinding.observable.value.IObservableValue |
getDisplayName(VDomainModelReference domainModelReference,
org.eclipse.emf.ecore.EObject rootObject)
Returns the display name of the referenced domain object resolved for the given root
EObject . |
void |
notifyLocaleChange()
Notify about a locale change.
|
protected void |
setBundleResolver(BundleResolver bundleResolver)
Sets the
BundleResolver . |
protected void |
setEMFFormsDatabinding(EMFFormsDatabinding emfFormsDatabinding)
Sets the
EMFFormsDatabinding service. |
protected void |
setEMFFormsLocaleProvider(EMFFormsLocaleProvider localeProvider)
Sets the
EMFFormsLocaleProvider . |
protected void |
setEMFFormsLocalizationService(EMFFormsLocalizationService localizationService)
Sets the
EMFFormsLocalizationService . |
protected void |
setLabelProviderDefault(EMFFormsLabelProviderDefaultImpl labelProviderDefault)
Sets the default
EMFFormsLabelProviderDefaultImpl . |
protected void |
setReportService(ReportService reportService)
Sets the
ReportService service. |
protected void setReportService(ReportService reportService)
ReportService
service.reportService
- The ReportService service.protected void setEMFFormsDatabinding(EMFFormsDatabinding emfFormsDatabinding)
EMFFormsDatabinding
service.emfFormsDatabinding
- The databinding service.protected void setEMFFormsLocalizationService(EMFFormsLocalizationService localizationService)
EMFFormsLocalizationService
.localizationService
- The EMFFormsLocalizationService
protected void setEMFFormsLocaleProvider(EMFFormsLocaleProvider localeProvider)
EMFFormsLocaleProvider
.localeProvider
- The EMFFormsLocaleProvider
protected void setBundleResolver(BundleResolver bundleResolver)
BundleResolver
.bundleResolver
- The BundleResolver
protected void setLabelProviderDefault(EMFFormsLabelProviderDefaultImpl labelProviderDefault)
EMFFormsLabelProviderDefaultImpl
.labelProviderDefault
- the labelProviderDefault to setpublic String getDisplayName(org.eclipse.emf.ecore.EStructuralFeature structuralFeature)
EStructuralFeature
.structuralFeature
- The EStructuralFeature
public org.eclipse.core.databinding.observable.value.IObservableValue getDisplayName(VDomainModelReference domainModelReference) throws NoLabelFoundException
getDisplayName
in interface EMFFormsLabelProvider
domainModelReference
- The VDomainModelReference
referencing the domain objectIObservableValue
NoLabelFoundException
- if the display name cannot be retrievedEMFFormsLabelProvider.getDisplayName(VDomainModelReference)
public org.eclipse.core.databinding.observable.value.IObservableValue getDisplayName(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject rootObject) throws NoLabelFoundException
EObject
.getDisplayName
in interface EMFFormsLabelProvider
domainModelReference
- The VDomainModelReference
referencing the domain objectrootObject
- The root EObject
which is used to resolve the given VDomainModelReference
IObservableValue
NoLabelFoundException
- if the display name cannot be retrievedEMFFormsLabelProvider.getDisplayName(VDomainModelReference,EObject)
public org.eclipse.core.databinding.observable.value.IObservableValue getDescription(VDomainModelReference domainModelReference) throws NoLabelFoundException
getDescription
in interface EMFFormsLabelProvider
domainModelReference
- The VDomainModelReference
referencing the model objectIObservableValue
NoLabelFoundException
- if the description cannot be retrievedEMFFormsLabelProvider.getDescription(VDomainModelReference)
public org.eclipse.core.databinding.observable.value.IObservableValue getDescription(VDomainModelReference domainModelReference, org.eclipse.emf.ecore.EObject rootObject) throws NoLabelFoundException
EObject
.getDescription
in interface EMFFormsLabelProvider
domainModelReference
- The VDomainModelReference
referencing the model objectrootObject
- The root EObject
which is used to resolve the given VDomainModelReference
IObservableValue
NoLabelFoundException
- if the description cannot be retrievedEMFFormsLabelProvider.getDescription(VDomainModelReference,EObject)
public void notifyLocaleChange()
notifyLocaleChange
in interface EMFFormsLocaleChangeListener
EMFFormsLocaleChangeListener.notifyLocaleChange()
Copyright © 2016. All rights reserved.