Interface IDtGranularEditor<M extends org.eclipse.emf.ecore.EObject>

  • All Superinterfaces:
    org.eclipse.core.runtime.IAdaptable, IDtEditor<M>, org.eclipse.ui.IEditorPart, IGotoSelection, org.eclipse.ui.ISaveablePart, org.eclipse.ui.IShowEditorInput, org.eclipse.ui.part.IShowInSource, org.eclipse.ui.IWorkbenchPart
    All Known Implementing Classes:
    DtGranularEditor, FormEditor, RightsEditor

    public interface IDtGranularEditor<M extends org.eclipse.emf.ecore.EObject>
    extends IDtEditor<M>
    Public contract for DT granular editors.
    • Field Summary

      • Fields inherited from interface org.eclipse.ui.IEditorPart

        PROP_DIRTY, PROP_INPUT
      • Fields inherited from interface org.eclipse.ui.IWorkbenchPart

        PROP_TITLE
    • Method Detail

      • addDefaultPage

        void addDefaultPage​(IDtGranularEditorPage<M> page)
                     throws org.eclipse.ui.PartInitException
        Adds the default/main page of the editor. This page will be shown when it is not possible to infer a more specific page from IDtEditorInput.
        Parameters:
        page - page to add as default.
        Throws:
        org.eclipse.ui.PartInitException
      • addPageForFeatures

        int addPageForFeatures​(IDtGranularEditorPage<M> page,
                               org.eclipse.emf.ecore.EStructuralFeature... features)
                        throws org.eclipse.ui.PartInitException
        Adds the page and marks it as a target page for a given features. One may think that this information may be inferred from page's controls creation procedure, but creation of controls for an editor page may be postponed until the page become active.
        Parameters:
        page - page to add.
        features - model features to associate with a page.
        Returns:
        the index of the new page
        Throws:
        org.eclipse.ui.PartInitException
      • removePage

        void removePage​(IDtGranularEditorPage<M> page)
        Removes the page.
        Parameters:
        page - page to removes.