Package com._1c.g5.v8.dt.ui.editor
Interface IDtGranularEditor<M extends org.eclipse.emf.ecore.EObject>
-
- All Superinterfaces:
org.eclipse.core.runtime.IAdaptable
,IDtEditor<M>
,org.eclipse.ui.IEditorPart
,IGotoSelection
,org.eclipse.ui.ISaveablePart
,org.eclipse.ui.IShowEditorInput
,org.eclipse.ui.part.IShowInSource
,org.eclipse.ui.IWorkbenchPart
- All Known Implementing Classes:
DtGranularEditor
,FormEditor
,RightsEditor
public interface IDtGranularEditor<M extends org.eclipse.emf.ecore.EObject> extends IDtEditor<M>
Public contract for DT granular editors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addDefaultPage(IDtGranularEditorPage<M> page)
Adds the default/main page of the editor.int
addPageForFeatures(IDtGranularEditorPage<M> page, org.eclipse.emf.ecore.EStructuralFeature... features)
Adds the page and marks it as a target page for a givenfeatures
.void
removePage(IDtGranularEditorPage<M> page)
Removes the page.-
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.IGotoSelection
gotoSelection
-
-
-
-
Method Detail
-
addDefaultPage
void addDefaultPage(IDtGranularEditorPage<M> page) throws org.eclipse.ui.PartInitException
Adds the default/main page of the editor. This page will be shown when it is not possible to infer a more specific page fromIDtEditorInput
.- Parameters:
page
- page to add as default.- Throws:
org.eclipse.ui.PartInitException
-
addPageForFeatures
int addPageForFeatures(IDtGranularEditorPage<M> page, org.eclipse.emf.ecore.EStructuralFeature... features) throws org.eclipse.ui.PartInitException
Adds the page and marks it as a target page for a givenfeatures
. One may think that this information may be inferred from page's controls creation procedure, but creation of controls for an editor page may be postponed until the page become active.- Parameters:
page
- page to add.features
- model features to associate with a page.- Returns:
- the index of the new page
- Throws:
org.eclipse.ui.PartInitException
-
removePage
void removePage(IDtGranularEditorPage<M> page)
Removes the page.- Parameters:
page
- page to removes.
-
-