Class EditorPageDescriptor


  • public class EditorPageDescriptor
    extends Object
    Editor page data.
    • Constructor Detail

      • EditorPageDescriptor

        public EditorPageDescriptor​(org.eclipse.core.runtime.IConfigurationElement configurationElement,
                                    String className,
                                    List<org.eclipse.emf.ecore.EStructuralFeature> eFeatures,
                                    String pageId,
                                    String afterPageId,
                                    boolean defaultPage,
                                    org.eclipse.core.expressions.Expression enablement)
        Constructor.
        Parameters:
        configurationElement - the configuration element (not null)
        className - the page class name (not null)
        eFeatures - the page e-features (not null)
        pageId - the page id (not null)
        afterPageId - the after page id, can be null
        defaultPage - whether the page is default page
        enablement - the enablement expression, cannot be null
    • Method Detail

      • createPage

        public <M extends org.eclipse.emf.ecore.EObject> IDtGranularEditorPage<M> createPage​(IDtGranularEditor<M> editor)
        Creates dt granular editor page for selected editor with own class loader.
        Parameters:
        editor - the dt granular editor (not null)
        Returns:
        the dt granular editor page, can be null
      • getAfterPageId

        public String getAfterPageId()
        Returns the after page id.
        Returns:
        the after page id, can be null
      • getClassName

        public String getClassName()
        Returns the page class name.
        Returns:
        the page class name (not null)
      • getFeatures

        public List<org.eclipse.emf.ecore.EStructuralFeature> getFeatures()
        Returns the page e-features.
        Returns:
        the page e-features (not null)
      • getPageId

        public String getPageId()
        Returns the page id.
        Returns:
        the page id (not null)
      • isDefaultPage

        public boolean isDefaultPage()
        Returns is the page default.
        Returns:
        true is the page default
      • isEnabled

        public boolean isEnabled​(org.eclipse.emf.ecore.EObject object)
        Returns whether the descriptor is enabled for the provided model object.
        Parameters:
        object - the model object to check enablement, cannot be null
        Returns:
        whether the descriptor is enabled for the provided model object