Class IDEViewModelRegistryImpl

    • Constructor Detail

      • IDEViewModelRegistryImpl

        public IDEViewModelRegistryImpl()
    • 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 interface IDEViewModelRegistry
        Parameters:
        ecorePath - the path to the ECore connected to the VView
        viewModel - 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 interface IDEViewModelRegistry
        Parameters:
        registeredEcorePath - the path to the ECore connected to the VView
        viewModel - 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 interface IDEViewModelRegistry
        Parameters:
        viewModel - the VView
        viewModelEditor - the view model editor
        Throws:
        java.io.IOException - if a resource cannot be loaded
      • 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 interface IDEViewModelRegistry
        Parameters:
        view - the VView
        path - the path to the view file