public class IDEViewModelRegistryImpl extends Object implements IDEViewModelRegistry
IDEViewModelRegistry.| Constructor and Description |
|---|
IDEViewModelRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void register(String ecorePath, VView viewModel)
IDEViewModelRegistryregister in interface IDEViewModelRegistryecorePath - the path to the ECore connected to the VViewviewModel - the VViewpublic void unregister(String registeredEcorePath, VView viewModel)
IDEViewModelRegistryunregister in interface IDEViewModelRegistryregisteredEcorePath - the path to the ECore connected to the VViewviewModel - the VViewpublic void registerViewModelEditor(VView viewModel, ViewModelEditorCallback viewModelEditor) throws IOException
IDEViewModelRegistryregisterViewModelEditor in interface IDEViewModelRegistryviewModel - the VViewviewModelEditor - the view model editorIOException - if a resource cannot be loadedpublic void unregisterViewModelEditor(VView viewModel, ViewModelEditorCallback viewModelEditor)
IDEViewModelRegistryunregisterViewModelEditor in interface IDEViewModelRegistryviewModel - the VViewviewModelEditor - the view model editorpublic void registerViewModel(VView view, String path)
IDEViewModelRegistryregisterViewModel in interface IDEViewModelRegistryview - the VViewpath - the path to the view fileCopyright © 2018. All rights reserved.