Interface ModelEditorConfigurer.IModelEditorConfigurer

    • Method Detail

      • getEditorTitle

        java.lang.String getEditorTitle​(boolean editable)
        Returns the editor title.
        Parameters:
        editable - whether the editor is editable
        Returns:
        the editor title
      • getPageTitle

        java.lang.String getPageTitle​(boolean editable)
        Returns the page title.
        Parameters:
        editable - whether the editor is editable
        Returns:
        the page title
      • getExtension

        java.lang.String getExtension()
        Returns the file extension to configure fore.
        Returns:
        the file extension
      • getOrdinal

        int getOrdinal()
        Returns an ordinal for sorting model configurers for displying them.
        Returns:
        the ordinal
      • hasHeader

        boolean hasHeader()
        Returns whether the described editor shall have a header.
        Returns:
        true if it shall have a header, false else
      • createHeader

        ModelEditorConfigurer.IHeader createHeader​(org.eclipse.swt.widgets.Composite parent,
                                                   Configuration configuration,
                                                   java.io.File base,
                                                   ModelInfo<?> info)
        Creates the actual header.
        Parameters:
        parent - the parent composite
        configuration - the recent product line configuration
        base - the basic directory of the project we are working in
        info - the actual model being displayed
        Returns:
        the header instance
      • getModelChangeListener

        AbstractModelChangeListener getModelChangeListener()
        Returns the model change listener, e.g., to rebuild the related model on save.
        Returns:
        the model change listener or null for none