Class ErdEmbeddedEditorPage<M extends MdObject>
- 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.base.DtGranularEditorEmbeddedEditorPage<M>
-
- com._1c.g5.v8.dt.erd.ui.editors.granularPages.ErdEmbeddedEditorPage<M>
-
- Type Parameters:
M
- - class of md object to create page for.
- All Implemented Interfaces:
IDtEditor<M>
,IDtGranularEditorEmbeddedEditorPage<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
public class ErdEmbeddedEditorPage<M extends MdObject> extends DtGranularEditorEmbeddedEditorPage<M>
Instance of this class represents "Diagram editor" page.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditorPage
activeSelection, derivedDataManagerProvider, modelManager, resourceLookup, SECTION_ID_PATTERN
-
-
Constructor Summary
Constructors Constructor Description ErdEmbeddedEditorPage()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate()
Performs necessary actions when this page is activated (i.void
activateContexts(org.eclipse.ui.contexts.IContextService contextService)
Activates embedded editor specific contexts.org.eclipse.ui.IEditorPart
createEmbeddedEditor()
org.eclipse.ui.IEditorInput
createEmbeddedEditorInput()
protected org.eclipse.swt.widgets.Layout
createPageLayout()
void
deactivate()
Performs necessary actions when this page is deactivated (i.void
dispose()
ErdEditor
getDiagramEditor()
Returns diagram editor.protected void
initEmbeddedEditor()
Init page embedded editor.boolean
isDirty()
-
Methods inherited from class com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditorEmbeddedEditorPage
createEditorSite, createPageControls, doSave, doSaveAs, getActiveSelection, getAdapter, getEmbeddedEditor, getEmbeddedEditorContributorClass, isSaveAsAllowed, setFocus
-
Methods inherited from class com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditorPage
createFormContent, getActiveFeature, getApiEditingContext, getDefaultFeature, getEditingContext, getEditor, getEditorInput, getEditorPageDescriptor, getEventGate, getHelpContextId, getModel, getPageTitle, getPageTitle, getSectionID, getShowInContext, getWaitingPartsId, gotoSelection, init, initialize, onEventGateClosed, pathSeparetor, refresh, setActiveFeature, setActiveSelection, setDefaultFeature, showEditorInput, showEditorInput, waitDerivedData, waitDerivedData
-
Methods inherited from class org.eclipse.ui.forms.editor.FormPage
canLeaveThePage, createPartControl, getId, getIndex, getManagedForm, getPartControl, getTitleImage, init, isActive, isEditor, 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, 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 com._1c.g5.v8.dt.ui.editor.IDtEditor
getApiEditingContext, getEditingContext, getEditorInput, getModel, init, setActiveFeature, setActiveSelection, showEditorInput
-
Methods inherited from interface com._1c.g5.v8.dt.ui.editor.IDtGranularEditorPage
setDefaultFeature
-
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
-
-
-
-
Method Detail
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.eclipse.ui.IWorkbenchPart
- Overrides:
dispose
in classDtGranularEditorEmbeddedEditorPage<M extends MdObject>
-
createEmbeddedEditor
public org.eclipse.ui.IEditorPart createEmbeddedEditor()
- Returns:
- embedded editor's
IEditorInput
.
-
createEmbeddedEditorInput
public org.eclipse.ui.IEditorInput createEmbeddedEditorInput()
- Returns:
- input for embedded editor.
-
getDiagramEditor
public ErdEditor getDiagramEditor()
Returns diagram editor.- Returns:
- diagram editor. Can't return
null
.
-
activate
public void activate()
Description copied from interface:IDtGranularEditorPage
Performs necessary actions when this page is activated (i. e. becomes visible and active).- Specified by:
activate
in interfaceIDtGranularEditorPage<M extends MdObject>
- Overrides:
activate
in classDtGranularEditorPage<M extends MdObject>
-
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 MdObject>
- Overrides:
deactivate
in classDtGranularEditorPage<M extends MdObject>
-
isDirty
public boolean isDirty()
- Specified by:
isDirty
in interfaceorg.eclipse.ui.ISaveablePart
- Overrides:
isDirty
in classDtGranularEditorEmbeddedEditorPage<M extends MdObject>
-
activateContexts
public void activateContexts(org.eclipse.ui.contexts.IContextService contextService)
Description copied from interface:IDtGranularEditorEmbeddedEditorPage
Activates embedded editor specific contexts.- Specified by:
activateContexts
in interfaceIDtGranularEditorEmbeddedEditorPage<M extends MdObject>
- Overrides:
activateContexts
in classDtGranularEditorEmbeddedEditorPage<M extends MdObject>
- Parameters:
contextService
- context service to activate contexts using it.
-
createPageLayout
protected org.eclipse.swt.widgets.Layout createPageLayout()
- Overrides:
createPageLayout
in classDtGranularEditorEmbeddedEditorPage<M extends MdObject>
- Returns:
- layout for this page.
-
initEmbeddedEditor
protected void initEmbeddedEditor()
Description copied from class:DtGranularEditorEmbeddedEditorPage
Init page embedded editor.- Overrides:
initEmbeddedEditor
in classDtGranularEditorEmbeddedEditorPage<M extends MdObject>
-
-