Class TranslateLanguagesSection
java.lang.Object
com.e1c.langtool.v8.dt.ui.projecteditor.TranslateLanguagesSection
- All Implemented Interfaces:
IProjectEditorSection
- Direct Known Subclasses:
TranslateLanguagesExtensionSection
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected ISettingsEditingContextprotected ISettingsEditingContextProviderprotected IProjectEditorprotected static final org.eclipse.emf.ecore.EStructuralFeature[]protected TableViewer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidaddToToolBarAddLanguageAction(IProjectEditor editor, org.eclipse.jface.action.ToolBarManager toolBarManager) protected voidaddToToolBarEditLanguageAction(IProjectEditor editor, org.eclipse.jface.action.ToolBarManager toolBarManager) protected voidaddToToolBarRemoveLanguageAction(IProjectEditor editor, org.eclipse.jface.action.ToolBarManager toolBarManager) voidcreateContent(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.voiddispose()Disposes this project page section.voiddoSave(org.eclipse.core.runtime.IProgressMonitor monitor) Saves the contents of this page section.voidinputChanged(IProjectEditor projectEditor) Notifies the page section that input for the project editor was changed (any project-related properties).booleanisDirty()Returns whether the contents of this page section have changed since the last save operation.protected voidvoidsetContext(ISettingsEditingContext context) org.eclipse.core.runtime.IStatusvalidate()Validates the section and returns the result asIStatus.protected voidсreateToolBar(IProjectEditor editor, org.eclipse.ui.forms.widgets.Section section)
-
Field Details
-
FEATURES
protected static final org.eclipse.emf.ecore.EStructuralFeature[] FEATURES -
COLUMN_DATA_FEATURE
- See Also:
-
contextProvider
-
editor
-
context
-
languagesViewer
-
-
Constructor Details
-
TranslateLanguagesSection
public TranslateLanguagesSection()
-
-
Method Details
-
dispose
public void dispose()Description copied from interface:IProjectEditorSectionDisposes 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:
disposein interfaceIProjectEditorSection
-
doSave
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:IProjectEditorSectionSaves the contents of this page section.If the save is cancelled through user action, or for any other reason, the page section should invoke
setCancelledon theIProgressMonitorto inform the caller.This method can be long-running; progress and cancellation are provided by the given progress monitor.
- Specified by:
doSavein interfaceIProjectEditorSection- Parameters:
monitor- the progress monitor to report progress to, cannot benull
-
inputChanged
Description copied from interface:IProjectEditorSectionNotifies the page section that input for the project editor was changed (any project-related properties).- Specified by:
inputChangedin interfaceIProjectEditorSection- Parameters:
projectEditor- the parent editor, cannot benull
-
loadViewerInput
protected void loadViewerInput() -
isDirty
public boolean isDirty()Description copied from interface:IProjectEditorSectionReturns whether the contents of this page section have changed since the last save operation.If this value changes, the page section is intended to
refreshparent project editor dirty state.- Specified by:
isDirtyin interfaceIProjectEditorSection- 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:IProjectEditorSectionCreates the UI content for this project page section.Clients should not call this method by themselves.
- Specified by:
createContentin interfaceIProjectEditorSection- Parameters:
projectEditor- the parent editor, cannot benullformPage- the parent editor page, cannot benulltoolkit- the form toolkit to construct UI, cannot benullparent- the parent composite to create UI on, cannot benullsection- the parent form section, cannot benull
-
validate
public org.eclipse.core.runtime.IStatus validate()Description copied from interface:IProjectEditorSectionValidates the section and returns the result asIStatus.- Specified by:
validatein interfaceIProjectEditorSection- Returns:
- Validation status, never
null
-
getContext
-
setContext
-
сreateToolBar
-
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()
-