Class TranslatedProjectSection

java.lang.Object
com.e1c.langtool.v8.dt.ui.projecteditor.TranslatedProjectSection
All Implemented Interfaces:
IProjectEditorSection
Direct Known Subclasses:
TranslatedExtensionProjectSection, TranslatedExternalObjectProjectSection

public class TranslatedProjectSection extends Object implements IProjectEditorSection
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createContent(IProjectEditor projectEditor, org.eclipse.ui.forms.editor.IFormPage formPage, org.eclipse.ui.forms.widgets.FormToolkit toolkit, org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.widgets.Section section)
    Creates the UI content for this project page section.
     
    void
    Disposes this project page section.
    void
    doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
    Saves the contents of this page section.
    void
    Notifies the page section that input for the project editor was changed (any project-related properties).
    boolean
    Returns whether the contents of this page section have changed since the last save operation.
    org.eclipse.core.runtime.IStatus
    Validates the section and returns the result as IStatus.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TranslatedProjectSection

      public TranslatedProjectSection()
  • Method Details

    • createContent

      public void createContent(IProjectEditor projectEditor, org.eclipse.ui.forms.editor.IFormPage formPage, org.eclipse.ui.forms.widgets.FormToolkit toolkit, org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.forms.widgets.Section section)
      Description copied from interface: IProjectEditorSection
      Creates the UI content for this project page section.

      Clients should not call this method by themselves.

      Specified by:
      createContent in interface IProjectEditorSection
      Parameters:
      projectEditor - the parent editor, cannot be null
      formPage - the parent editor page, cannot be null
      toolkit - the form toolkit to construct UI, cannot be null
      parent - the parent composite to create UI on, cannot be null
      section - the parent form section, cannot be null
    • dispose

      public void dispose()
      Description copied from interface: IProjectEditorSection
      Disposes this project page section.

      Within this method a page section may release any resources, held by this page section. It is also very important to unregister all listeners from the page section.

      Clients should not call this method (the project editor calls this method at appropriate time).

      Specified by:
      dispose in interface IProjectEditorSection
    • doSave

      public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
      Description copied from interface: IProjectEditorSection
      Saves the contents of this page section.

      If the save is cancelled through user action, or for any other reason, the page section should invoke setCancelled on the IProgressMonitor to inform the caller.

      This method can be long-running; progress and cancellation are provided by the given progress monitor.

      Specified by:
      doSave in interface IProjectEditorSection
      Parameters:
      monitor - the progress monitor to report progress to, cannot be null
      Throws:
      org.eclipse.core.runtime.CoreException - in case of save operation failure within the workspace
    • inputChanged

      public void inputChanged(IProjectEditor projectEditor)
      Description copied from interface: IProjectEditorSection
      Notifies the page section that input for the project editor was changed (any project-related properties).
      Specified by:
      inputChanged in interface IProjectEditorSection
      Parameters:
      projectEditor - the parent editor, cannot be null
    • isDirty

      public boolean isDirty()
      Description copied from interface: IProjectEditorSection
      Returns whether the contents of this page section have changed since the last save operation.

      If this value changes, the page section is intended to refresh parent project editor dirty state.

      Specified by:
      isDirty in interface IProjectEditorSection
      Returns:
      whether the contents of this page section is in dirty state
    • validate

      public org.eclipse.core.runtime.IStatus validate()
      Description copied from interface: IProjectEditorSection
      Validates the section and returns the result as IStatus.
      Specified by:
      validate in interface IProjectEditorSection
      Returns:
      Validation status, never null
    • createTranslatedPrrojectWizard

      protected TranslatedProjectWizard createTranslatedPrrojectWizard()