Package com._1c.g5.v8.dt.ui.editor.input
Class DtEditorInput<M extends org.eclipse.emf.ecore.EObject>
- java.lang.Object
-
- com._1c.g5.v8.dt.ui.editor.input.DtEditorInput<M>
-
- All Implemented Interfaces:
IDtEditorInput<M>
,org.eclipse.core.runtime.IAdaptable
,org.eclipse.ui.IEditorInput
- Direct Known Subclasses:
AllRolesEditorInput
,ChartEditorInput
,DtEditorProxyInput
,EventHandlersEditorInput
,FormEditorInput
,com._1c.g5.v8.dt.internal.md.ui.editors.input.MdEditorInput
,RightsEditorInput
public abstract class DtEditorInput<M extends org.eclipse.emf.ecore.EObject> extends Object implements IDtEditorInput<M>
Base class for DT editor input.- See Also:
DtEditorInputFactory
,DtEditorMatchingStrategy
,IDtEditor
-
-
Constructor Summary
Constructors Constructor Description DtEditorInput()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IDtEditorInput<M>
copy()
Copy currentIDtEditorInput
and create new instance of itboolean
equals(Object obj)
boolean
exists()
Set<String>
getActivationContextIds()
Returns set of context indexes to be activated for an editor working with this editor input.<T> T
getAdapter(Class<T> adapter)
org.eclipse.emf.ecore.EStructuralFeature
getFeature()
org.eclipse.jface.resource.ImageDescriptor
getImageDescriptor()
M
getModel()
String
getName()
org.eclipse.ui.IPersistableElement
getPersistable()
ISelection
getSelection()
String
getToolTipText()
int
hashCode()
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
public M getModel()
- Specified by:
getModel
in interfaceIDtEditorInput<M extends org.eclipse.emf.ecore.EObject>
- Returns:
- target model.
-
setModel
public void setModel(M model)
Description copied from interface:IDtEditorInput
Sets target model.- Specified by:
setModel
in interfaceIDtEditorInput<M extends org.eclipse.emf.ecore.EObject>
- Parameters:
model
- model to set.
-
getFeature
public org.eclipse.emf.ecore.EStructuralFeature getFeature()
- Specified by:
getFeature
in interfaceIDtEditorInput<M extends org.eclipse.emf.ecore.EObject>
- Returns:
- target feature.
-
setFeature
public void setFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
Description copied from interface:IDtEditorInput
Sets target feature.- Specified by:
setFeature
in interfaceIDtEditorInput<M extends org.eclipse.emf.ecore.EObject>
- Parameters:
feature
- feature to set.
-
getSelection
public ISelection getSelection()
- Specified by:
getSelection
in interfaceIDtEditorInput<M extends org.eclipse.emf.ecore.EObject>
- Returns:
- target selection.
-
setSelection
public void setSelection(ISelection selection)
Description copied from interface:IDtEditorInput
Sets target selection.- Specified by:
setSelection
in interfaceIDtEditorInput<M extends org.eclipse.emf.ecore.EObject>
- Parameters:
selection
- selection to set.
-
toNavigatorSelection
public IStructuredSelection toNavigatorSelection()
Description copied from interface:IDtEditorInput
Converts this editor input to Navigator selection.- Specified by:
toNavigatorSelection
in interfaceIDtEditorInput<M extends org.eclipse.emf.ecore.EObject>
- Returns:
- obtained selection or
null
if no appropriate selection exists.
-
exists
public boolean exists()
- Specified by:
exists
in interfaceorg.eclipse.ui.IEditorInput
-
getImageDescriptor
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
- Specified by:
getImageDescriptor
in interfaceorg.eclipse.ui.IEditorInput
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.eclipse.ui.IEditorInput
-
getToolTipText
public String getToolTipText()
- Specified by:
getToolTipText
in interfaceorg.eclipse.ui.IEditorInput
-
getPersistable
public org.eclipse.ui.IPersistableElement getPersistable()
- Specified by:
getPersistable
in interfaceorg.eclipse.ui.IEditorInput
-
getAdapter
public <T> T getAdapter(Class<T> adapter)
- Specified by:
getAdapter
in interfaceorg.eclipse.core.runtime.IAdaptable
-
getActivationContextIds
public Set<String> getActivationContextIds()
Description copied from interface:IDtEditorInput
Returns set of context indexes to be activated for an editor working with this editor input.- Specified by:
getActivationContextIds
in interfaceIDtEditorInput<M extends org.eclipse.emf.ecore.EObject>
- Returns:
- set of context indexes or empty set, never
null
-
copy
public IDtEditorInput<M> copy()
Description copied from interface:IDtEditorInput
Copy currentIDtEditorInput
and create new instance of it- Specified by:
copy
in interfaceIDtEditorInput<M extends org.eclipse.emf.ecore.EObject>
- Returns:
- new created instance of
IDtEditorInput
, nevernull
-
-