Package com._1c.g5.v8.dt.ui.editor.input
Interface IDtEditorInput<M extends org.eclipse.emf.ecore.EObject>
-
- All Superinterfaces:
org.eclipse.core.runtime.IAdaptable
,org.eclipse.ui.IEditorInput
- All Known Implementing Classes:
AllRolesEditorInput
,ChartEditorInput
,DtEditorInput
,DtEditorProxyInput
,EventHandlersEditorInput
,FormEditorInput
,GraphicalSchemeEditorInput
,com._1c.g5.v8.dt.internal.md.ui.editors.input.MdEditorInput
,RightsEditorInput
,TemplateEditorInput
public interface IDtEditorInput<M extends org.eclipse.emf.ecore.EObject> extends org.eclipse.ui.IEditorInput
Defines public contract for DT editor input.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IDtEditorInput<M>
copy()
Copy currentIDtEditorInput
and create new instance of itSet<String>
getActivationContextIds()
Returns set of context indexes to be activated for an editor working with this editor input.org.eclipse.emf.ecore.EStructuralFeature
getFeature()
M
getModel()
ISelection
getSelection()
void
setFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
Sets target feature.void
setModel(M model)
Sets target model.void
setSelection(ISelection selection)
Sets target selection.IStructuredSelection
toNavigatorSelection()
Converts this editor input to Navigator selection.
-
-
-
Method Detail
-
getModel
M getModel()
- Returns:
- target model.
-
setModel
void setModel(M model)
Sets target model.- Parameters:
model
- model to set.
-
getFeature
org.eclipse.emf.ecore.EStructuralFeature getFeature()
- Returns:
- target feature.
-
setFeature
void setFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
Sets target feature.- Parameters:
feature
- feature to set.
-
getSelection
ISelection getSelection()
- Returns:
- target selection.
-
setSelection
void setSelection(ISelection selection)
Sets target selection.- Parameters:
selection
- selection to set.
-
toNavigatorSelection
IStructuredSelection toNavigatorSelection()
Converts this editor input to Navigator selection.- Returns:
- obtained selection or
null
if no appropriate selection exists.
-
getActivationContextIds
Set<String> getActivationContextIds()
Returns set of context indexes to be activated for an editor working with this editor input.- Returns:
- set of context indexes or empty set, never
null
-
copy
IDtEditorInput<M> copy()
Copy currentIDtEditorInput
and create new instance of it- Returns:
- new created instance of
IDtEditorInput
, nevernull
-
-