Class LocalizationViewModelService
- java.lang.Object
-
- org.eclipse.emfforms.internal.view.model.localization.LocalizationViewModelService
-
- All Implemented Interfaces:
ViewModelService
,EMFFormsLocaleChangeListener
public class LocalizationViewModelService extends java.lang.Object implements ViewModelService, EMFFormsLocaleChangeListener
LocalizationViewModelService which will localize the view model.- Author:
- Eugen Neufeld
-
-
Constructor Summary
Constructors Constructor Description LocalizationViewModelService()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Dispose.int
getPriority()
Returns the priority for this view service.void
instantiate(ViewModelContext context)
Instantiate the view service.protected void
localize(LocalizationAdapter localizationAdapter, VElement vElement)
The actual method localizing aVElement
.void
notifyLocaleChange()
Notify about a locale change.
-
-
-
Method Detail
-
instantiate
public void instantiate(ViewModelContext context)
Instantiate the view service.- Specified by:
instantiate
in interfaceViewModelService
- Parameters:
context
- theViewModelContext
- See Also:
ViewModelService.instantiate(org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
-
localize
protected void localize(LocalizationAdapter localizationAdapter, VElement vElement)
The actual method localizing aVElement
.- Parameters:
localizationAdapter
- The LocalizationAdapter to use for localizationvElement
- TheVElement
to localize
-
dispose
public void dispose()
Dispose.- Specified by:
dispose
in interfaceViewModelService
- See Also:
ViewModelService.dispose()
-
getPriority
public int getPriority()
Returns the priority for this view service.- Specified by:
getPriority
in interfaceViewModelService
- Returns:
- the priority
- See Also:
ViewModelService.getPriority()
-
notifyLocaleChange
public void notifyLocaleChange()
Notify about a locale change.- Specified by:
notifyLocaleChange
in interfaceEMFFormsLocaleChangeListener
- See Also:
EMFFormsLocaleChangeListener.notifyLocaleChange()
-
-