Package com._1c.g5.v8.dt.ui.editor
Interface IDtEditor<M extends org.eclipse.emf.ecore.EObject>
-
- All Superinterfaces:
org.eclipse.core.runtime.IAdaptable
,org.eclipse.ui.IEditorPart
,IGotoSelection
,org.eclipse.ui.ISaveablePart
,org.eclipse.ui.IShowEditorInput
,org.eclipse.ui.part.IShowInSource
,org.eclipse.ui.IWorkbenchPart
- All Known Subinterfaces:
IAefEditor<M>
,IDtGranularEditor<M>
,IDtGranularEditorAefPage<M>
,IDtGranularEditorEmbeddedEditorPage<M>
,IDtGranularEditorPage<M>
,IHtmlDocumentPreviewGranularEditorPage
,IHtmlDocumentTextGranularEditorPage
,IHtmlDocumentWysiwygGranularEditorPage
- All Known Implementing Classes:
AbstractAefBoundDtEditor
,AbstractDtGranularEditorAefPage
,AefBoundDtEditor
,AefDescriptorBasedDtEditor
,AllRolesEditor
,DtEditor
,DtGranularEditor
,DtGranularEditorAefDescriptorBasedPage
,DtGranularEditorAefPage
,DtGranularEditorEmbeddedEditorPage
,DtGranularEditorPage
,DtGranularEditorPredefinedDataPage
,DtGranularEditorSingleSectionPage
,DtGranularEditorXtextEditorPage
,ErdEmbeddedEditorPage
,FormAdditionalEditorPage
,FormEditor
,FormEditorModulePage
,FormEditorPage
,RightsEditor
,RightsEditorRestrictionTemplatesPage
,RightsEditorRightsPage
,TemplateEditorAddInPage
,TemplateEditorBaseSpreadsheetPage
,TemplateEditorGraphicalSchemePage
,TemplateEditorResultSpreadsheetPage
,TemplateEditorSpreadsheetPage
,TextDocumentTemplateEditorPage
public interface IDtEditor<M extends org.eclipse.emf.ecore.EObject> extends org.eclipse.ui.IEditorPart, org.eclipse.ui.IShowEditorInput, IGotoSelection, org.eclipse.ui.part.IShowInSource
Defines public contract for all DT model-based editors.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description IEditingContext
getApiEditingContext()
Returns theIEditingContext
instance associated with the editor.IBmEditingContext
getEditingContext()
Deprecated.use thegetApiEditingContext()
IDtEditorInput<M>
getEditorInput()
M
getModel()
void
init(org.eclipse.ui.IEditorSite site, IDtEditorInput<M> input)
Initializes the editor.void
setActiveFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
Sets the active feature of the editor.void
setActiveSelection(ISelection selection, DtEditorSelectionProcessingPolicy policy)
Sets the active selection of the editor.void
showEditorInput(IDtEditorInput<M> editorInput)
Shows the editor input.-
Methods inherited from interface com._1c.g5.v8.dt.ui.editor.IGotoSelection
gotoSelection
-
-
-
-
Method Detail
-
getEditorInput
IDtEditorInput<M> getEditorInput()
- Specified by:
getEditorInput
in interfaceorg.eclipse.ui.IEditorPart
-
showEditorInput
void showEditorInput(IDtEditorInput<M> editorInput)
Shows the editor input.- Parameters:
editorInput
- the editor input to show, cannot benull
.- See Also:
IShowEditorInput.showEditorInput(org.eclipse.ui.IEditorInput)
-
init
void init(org.eclipse.ui.IEditorSite site, IDtEditorInput<M> input) throws org.eclipse.ui.PartInitException
Initializes the editor.- 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)
-
setActiveFeature
void setActiveFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
Sets the active feature of the editor.- Parameters:
feature
- the feature active at this moment, ornull
if there is no active feature.
-
setActiveSelection
void setActiveSelection(ISelection selection, DtEditorSelectionProcessingPolicy policy)
Sets the active selection of the editor.- Parameters:
selection
- selection active at this moment.policy
- selection processing policy.
-
getEditingContext
@Deprecated IBmEditingContext getEditingContext()
Deprecated.use thegetApiEditingContext()
- Returns:
- BM editing context associated with the editor.
-
getApiEditingContext
IEditingContext getApiEditingContext()
Returns theIEditingContext
instance associated with the editor.- Returns:
- the
IEditingContext
instance associated with the editor, can benull
if the editor is not initialized or it is already disposed.
-
getModel
M getModel()
- Returns:
- the sessioned model being edited.
-
-