Class GenModelReadonlyViewModelService
- java.lang.Object
-
- org.eclipse.emfforms.internal.editor.genmodel.service.GenModelReadonlyViewModelService
-
- All Implemented Interfaces:
ViewModelService
public class GenModelReadonlyViewModelService extends java.lang.Object implements ViewModelService
ThisViewModelServicesets all views not related to theGenModelPackageto read-only. This avoids, for instance, that the user can make changes to the referenced Ecore model shown in the GenModel editor.- Author:
- Martin Fleck
-
-
Constructor Summary
Constructors Constructor Description GenModelReadonlyViewModelService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Dispose.intgetPriority()Returns the priority for this view service.voidinstantiate(ViewModelContext context)Instantiate the view service.
-
-
-
Method Detail
-
instantiate
public void instantiate(ViewModelContext context)
Instantiate the view service.- Specified by:
instantiatein interfaceViewModelService- Parameters:
context- theViewModelContext- See Also:
ViewModelService.instantiate(org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
-
dispose
public void dispose()
Dispose.- Specified by:
disposein interfaceViewModelService- See Also:
ViewModelService.dispose()
-
getPriority
public int getPriority()
Returns the priority for this view service.- Specified by:
getPriorityin interfaceViewModelService- Returns:
- the priority
- See Also:
ViewModelService.getPriority()
-
-