public class GenModelReadonlyViewModelService extends Object implements ViewModelService
ViewModelService
sets all views not related to the GenModelPackage
to read-only.
This avoids, for instance, that the user can make changes to the referenced Ecore model shown in the GenModel editor.Constructor and Description |
---|
GenModelReadonlyViewModelService() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose.
|
int |
getPriority()
Returns the priority for this view service.
|
void |
instantiate(ViewModelContext context)
Instantiate the view service.
|
public void instantiate(ViewModelContext context)
instantiate
in interface ViewModelService
context
- the ViewModelContext
ViewModelService.instantiate(org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
public void dispose()
dispose
in interface ViewModelService
ViewModelService.dispose()
public int getPriority()
getPriority
in interface ViewModelService
ViewModelService.getPriority()
Copyright © 2018. All rights reserved.