|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecp.ide.view.internal.service.IDEViewModelRegistryImpl
public class IDEViewModelRegistryImpl
An implementation of the IDEViewModelRegistry
.
Constructor Summary | |
---|---|
IDEViewModelRegistryImpl()
|
Method Summary | |
---|---|
VView |
createViewModel(org.eclipse.core.resources.IFile modelFile,
org.eclipse.emf.ecore.EClass selectedEClass,
org.eclipse.core.resources.IFile selectedEcore)
Creates a new view model file. |
void |
register(String ecorePath,
VView viewModel)
Register an ECore with a VView. |
void |
registerViewModel(VView view,
String path)
Register a view with its absolute path. |
void |
registerViewModelEditor(VView viewModel,
ViewModelEditorCallback viewModelEditor)
Register a view model editor with a view. |
void |
unregister(String registeredEcorePath,
VView viewModel)
Unregister a VView from an ECore. |
void |
unregisterViewModelEditor(VView viewModel,
ViewModelEditorCallback viewModelEditor)
Unregister a view model editor, called when the view model editor closes. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IDEViewModelRegistryImpl()
Method Detail |
---|
public void register(String ecorePath, VView viewModel)
IDEViewModelRegistry
register
in interface IDEViewModelRegistry
ecorePath
- the path to the ECore connected to the VViewviewModel
- the VViewpublic void unregister(String registeredEcorePath, VView viewModel)
IDEViewModelRegistry
unregister
in interface IDEViewModelRegistry
registeredEcorePath
- the path to the ECore connected to the VViewviewModel
- the VViewpublic void registerViewModelEditor(VView viewModel, ViewModelEditorCallback viewModelEditor) throws IOException
IDEViewModelRegistry
registerViewModelEditor
in interface IDEViewModelRegistry
viewModel
- the VViewviewModelEditor
- the view model editor
IOException
- if a resource cannot be loadedpublic void unregisterViewModelEditor(VView viewModel, ViewModelEditorCallback viewModelEditor)
IDEViewModelRegistry
unregisterViewModelEditor
in interface IDEViewModelRegistry
viewModel
- the VViewviewModelEditor
- the view model editorpublic void registerViewModel(VView view, String path)
IDEViewModelRegistry
registerViewModel
in interface IDEViewModelRegistry
view
- the VViewpath
- the path to the view filepublic VView createViewModel(org.eclipse.core.resources.IFile modelFile, org.eclipse.emf.ecore.EClass selectedEClass, org.eclipse.core.resources.IFile selectedEcore) throws IOException
IDEViewModelRegistry
createViewModel
in interface IDEViewModelRegistry
modelFile
- the file in which the view should be savedselectedEClass
- the Root EClass for the new VView
selectedEcore
- the ecore containing the selectedEClass
VView
IOException
- when something goes wrong while loading or saving the resource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |