Class AbstractDtGranularEditorAefPage<M extends org.eclipse.emf.ecore.EObject>
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.eclipse.ui.forms.editor.FormPage
com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditorPage<M>
com._1c.g5.v8.dt.md.ui.editor.aef.AbstractDtGranularEditorAefPage<M>
- All Implemented Interfaces:
IDtGranularEditorAefPage<M>
,IDtEditor<M>
,IDtGranularEditorPage<M>
,IGotoSelection
,org.eclipse.core.runtime.IAdaptable
,org.eclipse.core.runtime.IExecutableExtension
,org.eclipse.ui.forms.editor.IFormPage
,org.eclipse.ui.IEditorPart
,org.eclipse.ui.ISaveablePart
,org.eclipse.ui.IShowEditorInput
,org.eclipse.ui.IWorkbenchPart
,org.eclipse.ui.IWorkbenchPart2
,org.eclipse.ui.IWorkbenchPart3
,org.eclipse.ui.part.IShowInSource
,org.eclipse.ui.part.IWorkbenchPartOrientation
- Direct Known Subclasses:
DtGranularEditorAefDescriptorBasedPage
,DtGranularEditorAefPage
public abstract class AbstractDtGranularEditorAefPage<M extends org.eclipse.emf.ecore.EObject>
extends DtGranularEditorPage<M>
implements IDtGranularEditorAefPage<M>
Base class for granular editor pages with AEF 2.0 components.
-
Field Summary
Fields inherited from class com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditorPage
activeSelection, derivedDataManagerProvider, modelManager, resourceLookup, SECTION_ID_PATTERN
Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUT
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractDtGranularEditorAefPage
(String id, String title) Creates a new page. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract IDtGranularEditorManagingDefinition
Creates and returns theIDtGranularEditorManagingDefinition
.protected void
createPageControls
(org.eclipse.ui.forms.IManagedForm managedForm) Creates the controls of this page.protected org.eclipse.swt.widgets.Layout
protected IRenderingParameters
createRenderingParameters
(org.eclipse.ui.forms.IManagedForm managedForm) Creates new composite atmanagedForm
body and rendering parameters.void
Performs necessary actions when this page is deactivated (i. e. ceases to be visible and active).void
dispose()
protected final IDtGranularEditorManagingDefinition
Returns theIDtGranularEditorManagingDefinition
instance that keeps information about page layout and AEF 2.0 definitions placed on the page.protected IEngine
Returns the editorIEngine
.Collection<org.eclipse.emf.ecore.EStructuralFeature>
Returns the collection of the page features.getScene()
Returns the AEF2 scene used by the page.protected void
Performs necessary actions when the event gate manager transitions into CLOSED state.protected void
refresh()
Fully refreshes the contents of the page as if it was just opened for the first time.void
setFocus()
protected void
setSelection
(org.eclipse.emf.ecore.EStructuralFeature feature, Object object) Sets the selection to the component if they presents on scene (defined by component feature).void
showEditorInput
(IDtEditorInput<M> editorInput) Shows the editor input.Methods inherited from class com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditorPage
activate, createFormContent, getActiveFeature, getActiveSelection, getApiEditingContext, getDefaultFeature, getEditingContext, getEditor, getEditorInput, getEditorPageDescriptor, getEventGate, getHelpContextId, getModel, getPageTitle, getPageTitle, getSectionID, getShowInContext, getWaitingPartsId, gotoSelection, init, initialize, pathSeparetor, setActiveFeature, setActiveSelection, setDefaultFeature, showEditorInput, waitDerivedData, waitDerivedData
Methods inherited from class org.eclipse.ui.forms.editor.FormPage
canLeaveThePage, createPartControl, doSave, doSaveAs, getId, getIndex, getManagedForm, getPartControl, getTitleImage, init, isActive, isDirty, isEditor, isSaveAsAllowed, selectReveal, setActive, setIndex
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, getAdapter, 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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
Methods inherited from interface com._1c.g5.v8.dt.ui.editor.IDtEditor
getApiEditingContext, getEditingContext, getEditorInput, getModel, init, setActiveFeature, setActiveSelection
Methods inherited from interface com._1c.g5.v8.dt.ui.editor.IDtGranularEditorPage
activate, setDefaultFeature
Methods inherited from interface org.eclipse.ui.IEditorPart
getEditorSite, init
Methods inherited from interface org.eclipse.ui.forms.editor.IFormPage
canLeaveThePage, getEditor, getId, getIndex, getManagedForm, getPartControl, initialize, isActive, isEditor, selectReveal, setActive, setIndex
Methods inherited from interface com._1c.g5.v8.dt.ui.editor.IGotoSelection
gotoSelection
Methods inherited from interface org.eclipse.ui.ISaveablePart
doSave, doSaveAs, isDirty, isSaveAsAllowed, isSaveOnCloseNeeded
Methods inherited from interface org.eclipse.ui.IShowEditorInput
showEditorInput
Methods inherited from interface org.eclipse.ui.part.IShowInSource
getShowInContext
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, createPartControl, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
Constructor Details
-
AbstractDtGranularEditorAefPage
Creates a new page.- Parameters:
id
- the id of the page, cannot benull
.title
- the title, cannot benull
.
-
-
Method Details
-
deactivate
public void deactivate()Description copied from interface:IDtGranularEditorPage
Performs necessary actions when this page is deactivated (i. e. ceases to be visible and active).- Specified by:
deactivate
in interfaceIDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
- Overrides:
deactivate
in classDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
-
getPageFeatures
Description copied from interface:IDtGranularEditorAefPage
Returns the collection of the page features.- Specified by:
getPageFeatures
in interfaceIDtGranularEditorAefPage<M extends org.eclipse.emf.ecore.EObject>
- Returns:
- the collection of features, never
null
.
-
dispose
public void dispose()- Specified by:
dispose
in interfaceorg.eclipse.ui.IWorkbenchPart
- Overrides:
dispose
in classDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
-
showEditorInput
Description copied from interface:IDtEditor
Shows the editor input.- Specified by:
showEditorInput
in interfaceIDtEditor<M extends org.eclipse.emf.ecore.EObject>
- Overrides:
showEditorInput
in classDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
- Parameters:
editorInput
- the editor input to show, cannot benull
.- See Also:
-
IShowEditorInput.showEditorInput(org.eclipse.ui.IEditorInput)
-
setFocus
public void setFocus()- Specified by:
setFocus
in interfaceorg.eclipse.ui.IWorkbenchPart
- Overrides:
setFocus
in classDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
-
getScene
Returns the AEF2 scene used by the page.- Returns:
- the AEF2 scene of the page (may be
null
if called before the controls have been created on the page)
-
refresh
protected void refresh()Description copied from class:DtGranularEditorPage
Fully refreshes the contents of the page as if it was just opened for the first time.- Overrides:
refresh
in classDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
-
onEventGateClosed
protected void onEventGateClosed()Description copied from class:DtGranularEditorPage
Performs necessary actions when the event gate manager transitions into CLOSED state.- Overrides:
onEventGateClosed
in classDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
-
getEngine
Returns the editorIEngine
.- Returns:
- the
IEngine
instance, nevernull
.
-
createRenderingParameters
protected IRenderingParameters createRenderingParameters(org.eclipse.ui.forms.IManagedForm managedForm) Creates new composite atmanagedForm
body and rendering parameters.- Parameters:
managedForm
- the managed form, cannot benull
.- Returns:
- newly created rendering parameters.
-
createPageLayout
protected org.eclipse.swt.widgets.Layout createPageLayout()- Overrides:
createPageLayout
in classDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
- Returns:
- layout for this page.
-
createPageControls
protected void createPageControls(org.eclipse.ui.forms.IManagedForm managedForm) Description copied from class:DtGranularEditorPage
Creates the controls of this page.- Specified by:
createPageControls
in classDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
- Parameters:
managedForm
- managed form that will contain the controls.
-
getDefinition
Returns theIDtGranularEditorManagingDefinition
instance that keeps information about page layout and AEF 2.0 definitions placed on the page.- Returns:
- the
IDtGranularEditorManagingDefinition
instance, nevernull
.
-
setSelection
Sets the selection to the component if they presents on scene (defined by component feature).- Parameters:
feature
- the component feature, cannot benull
object
- the selected object (because may be navigator adapter), cannot benull
-
createDefinition
Creates and returns theIDtGranularEditorManagingDefinition
.- Returns:
- a newly created
IDtGranularEditorManagingDefinition
instance, nevernull
.
-