Class DtGranularEditorEmbeddedEditorPage<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.base.DtGranularEditorEmbeddedEditorPage<M>
-
- 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
- Direct Known Subclasses:
DtGranularEditorXtextEditorPage
,ErdEmbeddedEditorPage
,FormAdditionalEditorPage
,TemplateEditorGraphicalSchemePage
,TemplateEditorSpreadsheetPage
,TextDocumentTemplateEditorPage
public abstract class DtGranularEditorEmbeddedEditorPage<M extends org.eclipse.emf.ecore.EObject> extends DtGranularEditorPage<M> implements IDtGranularEditorEmbeddedEditorPage<M>
Base class for all embedded editor pages.
-
-
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 Modifier Constructor Description protected
DtGranularEditorEmbeddedEditorPage(String id, String title)
Instantiates a new DT granular editor embedded editor page.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activateContexts(org.eclipse.ui.contexts.IContextService contextService)
Activates embedded editor specific contexts.protected org.eclipse.ui.IEditorSite
createEditorSite(org.eclipse.ui.IEditorPart embeddedEditor)
Create embedded editor editor site.protected void
createPageControls(org.eclipse.ui.forms.IManagedForm managedForm)
Creates the controls of this page.protected org.eclipse.swt.widgets.Layout
createPageLayout()
void
dispose()
void
doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
void
doSaveAs()
protected ISelection
getActiveSelection()
Returns the active selection.<T> T
getAdapter(Class<T> adapter)
org.eclipse.ui.IEditorPart
getEmbeddedEditor()
Class<? extends org.eclipse.ui.IEditorActionBarContributor>
getEmbeddedEditorContributorClass()
protected void
initEmbeddedEditor()
Init page embedded editor.boolean
isDirty()
boolean
isSaveAsAllowed()
void
setFocus()
-
Methods inherited from class com._1c.g5.v8.dt.md.ui.editor.base.DtGranularEditorPage
activate, createFormContent, deactivate, 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.IDtGranularEditorEmbeddedEditorPage
createEmbeddedEditor, createEmbeddedEditorInput
-
Methods inherited from interface com._1c.g5.v8.dt.ui.editor.IDtGranularEditorPage
activate, deactivate, 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
-
getEmbeddedEditor
public org.eclipse.ui.IEditorPart getEmbeddedEditor()
- Specified by:
getEmbeddedEditor
in interfaceIDtGranularEditorEmbeddedEditorPage<M extends org.eclipse.emf.ecore.EObject>
- Returns:
- embedded editor instance or
null
if no editor associated yet.
-
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 org.eclipse.emf.ecore.EObject>
- Parameters:
contextService
- context service to activate contexts using it.
-
getEmbeddedEditorContributorClass
public Class<? extends org.eclipse.ui.IEditorActionBarContributor> getEmbeddedEditorContributorClass()
- Specified by:
getEmbeddedEditorContributorClass
in interfaceIDtGranularEditorEmbeddedEditorPage<M extends org.eclipse.emf.ecore.EObject>
- Returns:
IEditorActionBarContributor
class associated with the embedded editor, if any, ornull
.
-
getAdapter
public <T> T getAdapter(Class<T> adapter)
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
- Overrides:
getAdapter
in classorg.eclipse.ui.part.WorkbenchPart
-
setFocus
public void setFocus()
- Specified by:
setFocus
in interfaceorg.eclipse.ui.IWorkbenchPart
- Overrides:
setFocus
in classDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
-
isDirty
public boolean isDirty()
- Specified by:
isDirty
in interfaceorg.eclipse.ui.ISaveablePart
- Overrides:
isDirty
in classorg.eclipse.ui.forms.editor.FormPage
-
doSave
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
- Specified by:
doSave
in interfaceorg.eclipse.ui.ISaveablePart
- Overrides:
doSave
in classorg.eclipse.ui.forms.editor.FormPage
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceorg.eclipse.ui.IWorkbenchPart
- Overrides:
dispose
in classDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
-
isSaveAsAllowed
public boolean isSaveAsAllowed()
- Specified by:
isSaveAsAllowed
in interfaceorg.eclipse.ui.ISaveablePart
- Overrides:
isSaveAsAllowed
in classorg.eclipse.ui.forms.editor.FormPage
-
doSaveAs
public void doSaveAs()
- Specified by:
doSaveAs
in interfaceorg.eclipse.ui.ISaveablePart
- Overrides:
doSaveAs
in classorg.eclipse.ui.forms.editor.FormPage
-
getActiveSelection
protected ISelection getActiveSelection()
Description copied from class:DtGranularEditorPage
Returns the active selection.- Overrides:
getActiveSelection
in classDtGranularEditorPage<M extends org.eclipse.emf.ecore.EObject>
- Returns:
- the active selection or
null
.
-
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 final 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.
-
initEmbeddedEditor
protected void initEmbeddedEditor()
Init page embedded editor.
-
createEditorSite
protected org.eclipse.ui.IEditorSite createEditorSite(org.eclipse.ui.IEditorPart embeddedEditor)
Create embedded editor editor site.Default implementation delegates execution to parent DT granular editor, sub-classes can override.
- Parameters:
embeddedEditor
- this embedded editor, cannot benull
- Returns:
- newly created editor site, never
null
-
-