Class IDEViewModelRegistryImpl
- java.lang.Object
-
- org.eclipse.emf.ecp.ide.view.internal.service.IDEViewModelRegistryImpl
-
- All Implemented Interfaces:
IDEViewModelRegistry
public class IDEViewModelRegistryImpl extends java.lang.Object implements IDEViewModelRegistry
An implementation of theIDEViewModelRegistry
.- Author:
- Eugen Neufeld, Alexandra Buzila
-
-
Constructor Summary
Constructors Constructor Description IDEViewModelRegistryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
register(java.lang.String ecorePath, VView viewModel)
Register an ECore with a VView.void
registerViewModel(VView view, java.lang.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(java.lang.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.
-
-
-
Method Detail
-
register
public void register(java.lang.String ecorePath, VView viewModel)
Description copied from interface:IDEViewModelRegistry
Register an ECore with a VView.- Specified by:
register
in interfaceIDEViewModelRegistry
- Parameters:
ecorePath
- the path to the ECore connected to the VViewviewModel
- the VView
-
unregister
public void unregister(java.lang.String registeredEcorePath, VView viewModel)
Description copied from interface:IDEViewModelRegistry
Unregister a VView from an ECore. eg when the root class changes.- Specified by:
unregister
in interfaceIDEViewModelRegistry
- Parameters:
registeredEcorePath
- the path to the ECore connected to the VViewviewModel
- the VView
-
registerViewModelEditor
public void registerViewModelEditor(VView viewModel, ViewModelEditorCallback viewModelEditor) throws java.io.IOException
Description copied from interface:IDEViewModelRegistry
Register a view model editor with a view.- Specified by:
registerViewModelEditor
in interfaceIDEViewModelRegistry
- Parameters:
viewModel
- the VViewviewModelEditor
- the view model editor- Throws:
java.io.IOException
- if a resource cannot be loaded
-
unregisterViewModelEditor
public void unregisterViewModelEditor(VView viewModel, ViewModelEditorCallback viewModelEditor)
Description copied from interface:IDEViewModelRegistry
Unregister a view model editor, called when the view model editor closes.- Specified by:
unregisterViewModelEditor
in interfaceIDEViewModelRegistry
- Parameters:
viewModel
- the VViewviewModelEditor
- the view model editor
-
registerViewModel
public void registerViewModel(VView view, java.lang.String path)
Description copied from interface:IDEViewModelRegistry
Register a view with its absolute path.- Specified by:
registerViewModel
in interfaceIDEViewModelRegistry
- Parameters:
view
- the VViewpath
- the path to the view file
-
-