Package com._1c.g5.v8.dt.form.ui.editor
Class FormEditor
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.ui.part.WorkbenchPart
-
- org.eclipse.ui.part.EditorPart
-
- org.eclipse.ui.part.MultiPageEditorPart
-
- org.eclipse.ui.forms.editor.FormEditor
-
- com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditor<BasicForm>
-
- com._1c.g5.v8.dt.form.ui.editor.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 Summary
Constructors Constructor Description FormEditor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getEditorId()
Returns the editor id used in extension to declare pages.Form
getForm()
Returns the edited form model.void
gotoSelection(ISelection selection)
Sets selection to the editorvoid
init(org.eclipse.ui.IEditorSite site, IDtEditorInput<BasicForm> input)
Initializes the editor.protected boolean
isUsePurposesChanged(BmChangeEvent changeEvent)
The method checks need to update title of this editor.protected boolean
needShowErrorInPageTitle(org.eclipse.ui.forms.editor.IFormPage page)
Returnstrue
if error/warning messages should be displayed in the title of the specifiedpage
.-
Methods inherited from class com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditor
addDefaultPage, addPage, addPageForFeatures, addPages, createEmbeddedEditorSite, createEmptyNavigationLocation, createNavigationLocation, createPage, createPageContainer, createPages, createToolkit, dispose, doSave, doSaveAs, getAction, getAdapter, getApiEditingContext, getEditingContext, getEditingLanguageManager, getEditor, getEditorInput, getEngine, getEventBroker, getModel, getModelManager, getPageForFeature, getProjectOperationApi, getShowInContext, getTitleImage, getV8projectManager, init, initializeEngine, isActive, isDirty, isSaveAsAllowed, notifyEmbeddedEditorPropertyChanged, pageChange, processChangeEvent, refreshDirty, removePage, selectReveal, setActiveFeature, setActiveSelection, setFocus, showEditorInput, showEditorInput
-
Methods inherited from class org.eclipse.ui.forms.editor.FormEditor
addPage, addPage, addPage, addPage, addPage, addPage, close, commitPages, configurePage, editorDirtyStateChanged, findPage, getActiveEditor, getActivePageInstance, getCurrentPage, getSelectedPage, getToolkit, removePage, selectReveal, setActivePage, setActivePage, setActivePage, updateActionBarContributor
-
Methods inherited from class org.eclipse.ui.part.MultiPageEditorPart
activateSite, addPageChangedListener, createContainer, createItem, createPartControl, createSite, deactivateSite, findEditors, getActivePage, getContainer, getControl, getPageCount, getPageImage, getPageSite, getPageText, handlePropertyChange, initializePageSwitching, removePageChangedListener, setActiveEditor, setControl, setPageImage, setPageText
-
Methods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
-
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
-
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
-
-
-
Method Detail
-
gotoSelection
public void gotoSelection(ISelection selection)
Description copied from interface:IGotoSelection
Sets selection to the editor- Specified by:
gotoSelection
in interfaceIGotoSelection
- Overrides:
gotoSelection
in classDtGranularEditor<BasicForm>
- Parameters:
selection
- actual selection, can benull
-
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 interfaceIDtEditor<BasicForm>
- Overrides:
init
in classDtGranularEditor<BasicForm>
- Parameters:
site
- the editor site, cannot benull
.input
- the editor input, cannot benull
.- 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 interfaceIFormEditor
- Returns:
- gets current form model
-
needShowErrorInPageTitle
protected boolean needShowErrorInPageTitle(org.eclipse.ui.forms.editor.IFormPage page)
Description copied from class:DtGranularEditor
Returnstrue
if error/warning messages should be displayed in the title of the specifiedpage
.false
- otherwise.- Overrides:
needShowErrorInPageTitle
in classDtGranularEditor<BasicForm>
- Parameters:
page
- the form page, cannot benull
.- Returns:
true
if error/warning messages should be displayed in the title of the specifiedpage
.
-
isUsePurposesChanged
protected boolean isUsePurposesChanged(BmChangeEvent changeEvent)
Description copied from class:DtGranularEditor
The method checks need to update title of this editor.- Overrides:
isUsePurposesChanged
in classDtGranularEditor<BasicForm>
- Parameters:
changeEvent
- the BM event on the editor session.- Returns:
- if returns
true
then editor updateWorkbenchPart.getPartName()
,false
- otherwise.
-
getEditorId
protected String getEditorId()
Description copied from class:DtGranularEditor
Returns the editor id used in extension to declare pages.- Specified by:
getEditorId
in classDtGranularEditor<BasicForm>
- Returns:
- the editor id used in extension to declare pages
-
-