Class TranslateLanguagesSection

java.lang.Object
com.e1c.langtool.v8.dt.ui.projecteditor.TranslateLanguagesSection
All Implemented Interfaces:
IProjectEditorSection
Direct Known Subclasses:
TranslateLanguagesExtensionSection

public class TranslateLanguagesSection extends Object implements IProjectEditorSection
  • Field Details

  • Constructor Details

    • TranslateLanguagesSection

      public TranslateLanguagesSection()
  • Method Details

    • 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)
      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
    • 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
    • loadViewerInput

      protected void loadViewerInput()
    • 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
    • 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
    • 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
    • getContext

      public ISettingsEditingContext getContext()
    • setContext

      public void setContext(ISettingsEditingContext context)
    • сreateToolBar

      protected void сreateToolBar(IProjectEditor editor, org.eclipse.ui.forms.widgets.Section section)
    • addToToolBarEditLanguageAction

      protected void addToToolBarEditLanguageAction(IProjectEditor editor, org.eclipse.jface.action.ToolBarManager toolBarManager)
    • addToToolBarRemoveLanguageAction

      protected void addToToolBarRemoveLanguageAction(IProjectEditor editor, org.eclipse.jface.action.ToolBarManager toolBarManager)
    • addToToolBarAddLanguageAction

      protected void addToToolBarAddLanguageAction(IProjectEditor editor, org.eclipse.jface.action.ToolBarManager toolBarManager)
    • addLanguageToTranslation

      protected void addLanguageToTranslation()