Class FormEditor

  • All Implemented Interfaces:
    IFormEditor, IDtEditor<BasicForm>, IDtGranularEditor<BasicForm>, IGotoSelection, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.jface.dialogs.IPageChangeProvider, org.eclipse.ui.IEditorPart, org.eclipse.ui.INavigationLocationProvider, org.eclipse.ui.ISaveablePart, org.eclipse.ui.IShowEditorInput, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.ISetSelectionTarget, org.eclipse.ui.part.IShowInSource, org.eclipse.ui.part.IWorkbenchPartOrientation

    public class FormEditor
    extends DtGranularEditor<BasicForm>
    implements IFormEditor
    The Form editor
    • Constructor Detail

      • FormEditor

        public FormEditor()
    • Method Detail

      • init

        public void init​(org.eclipse.ui.IEditorSite site,
                         IDtEditorInput<BasicForm> input)
                  throws org.eclipse.ui.PartInitException
        Description copied from interface: IDtEditor
        Initializes the editor.
        Specified by:
        init in interface IDtEditor<BasicForm>
        Overrides:
        init in class DtGranularEditor<BasicForm>
        Parameters:
        site - the editor site, cannot be null.
        input - the editor input, cannot be null.
        Throws:
        org.eclipse.ui.PartInitException - if this editor was not initialized successfully
        See Also:
        IEditorPart.init(IEditorSite, org.eclipse.ui.IEditorInput)
      • getForm

        public Form getForm()
        Description copied from interface: IFormEditor
        Returns the edited form model.
        Specified by:
        getForm in interface IFormEditor
        Returns:
        gets current form model
      • needShowErrorInPageTitle

        protected boolean needShowErrorInPageTitle​(org.eclipse.ui.forms.editor.IFormPage page)
        Description copied from class: DtGranularEditor
        Returns true if error/warning messages should be displayed in the title of the specified page. false - otherwise.
        Overrides:
        needShowErrorInPageTitle in class DtGranularEditor<BasicForm>
        Parameters:
        page - the form page, cannot be null.
        Returns:
        true if error/warning messages should be displayed in the title of the specified page.
      • isUsePurposesChanged

        protected boolean isUsePurposesChanged​(BmChangeEvent changeEvent)
        Description copied from class: DtGranularEditor
        The method checks need to update title of this editor.
        Overrides:
        isUsePurposesChanged in class DtGranularEditor<BasicForm>
        Parameters:
        changeEvent - the BM event on the editor session.
        Returns:
        if returns true then editor update WorkbenchPart.getPartName(), false - otherwise.