Class SharedHeaderFormEditor

    • Constructor Detail

      • SharedHeaderFormEditor

        public SharedHeaderFormEditor()
        The default constructor.
    • Method Detail

      • getHeaderForm

        public IManagedForm getHeaderForm()
        Returns the form that owns the shared header.
        the shared header
      • setFocus

        public void setFocus()
        Description copied from class: MultiPageEditorPart
        The MultiPageEditor implementation of this IWorkbenchPart method sets focus on the active nested editor, if there is one.

        Subclasses may extend or reimplement.

        Specified by:
        setFocus in interface IWorkbenchPart
        setFocus in class MultiPageEditorPart
      • dispose

        public void dispose()
        Description copied from class: FormEditor
        Disposes the pages and the toolkit after disposing the editor itself. Subclasses must call 'super' when reimplementing the method.
        Specified by:
        dispose in interface IWorkbenchPart
        dispose in class FormEditor
      • isDirty

        public boolean isDirty()
        Description copied from class: FormEditor
        Tests whether the editor is dirty by checking all the pages that implement IFormPage. If none of them is dirty, the method delegates further processing to super.isDirty().
        Specified by:
        isDirty in interface ISaveablePart
        isDirty in class FormEditor
        true if any of the pages in the editor are dirty, false otherwise.
      • commitPages

        protected void commitPages​(boolean onSave)
        Description copied from class: FormEditor
        Commits all dirty pages in the editor. This method should be called as a first step of a 'save' operation.
        commitPages in class FormEditor
        onSave - true if commit is performed as part of the 'save' operation, false otherwise.
      • createHeaderContents

        protected void createHeaderContents​(IManagedForm headerForm)
        Subclasses should extend this method to configure the form that owns the shared header. If the header form will contain controls that can change the state of the editor, they should be wrapped in an IFormPart so that they can participate in the life cycle event management.
        headerForm - the form that owns the shared header
        See Also: