org.eclipse.emf.ecp.view.context.internal.locale
Class DefaultLocaleViewService

java.lang.Object
  extended by org.eclipse.emf.ecp.view.context.internal.locale.DefaultLocaleViewService
All Implemented Interfaces:
ViewLocaleService, ViewModelService

public class DefaultLocaleViewService
extends Object
implements ViewLocaleService

A ViewModelService which provides the default locale.

Author:
Eugen Neufeld

Constructor Summary
DefaultLocaleViewService()
           
 
Method Summary
 void dispose()
          Dispose.
 Locale getLocale()
          The current locale of the view.
 int getPriority()
          Returns the priority for this view service.
 void instantiate(ViewModelContext context)
          Instantiate the view service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLocaleViewService

public DefaultLocaleViewService()
Method Detail

instantiate

public void instantiate(ViewModelContext context)
Instantiate the view service.

Specified by:
instantiate in interface ViewModelService
Parameters:
context - the ViewModelContext
See Also:
ViewModelService.instantiate(org.eclipse.emf.ecp.view.spi.context.ViewModelContext)

dispose

public void dispose()
Dispose.

Specified by:
dispose in interface ViewModelService
See Also:
ViewModelService.dispose()

getPriority

public int getPriority()
Returns the priority for this view service.

Specified by:
getPriority in interface ViewModelService
Returns:
the priority
See Also:
ViewModelService.getPriority()

getLocale

public Locale getLocale()
The current locale of the view.

Specified by:
getLocale in interface ViewLocaleService
Returns:
the current locale
See Also:
ViewLocaleService.getLocale()


Copyright © 2014. All Rights Reserved.