Class GraphicalSchemeEditorInput
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- org.eclipse.ui.part.FileEditorInput
-
- com._1c.g5.v8.dt.bp.scheme.ui.bsl.findref.GraphicalSchemeEditorInput
-
- All Implemented Interfaces:
IDtEditorInput<GraphicalScheme>
,org.eclipse.core.runtime.IAdaptable
,org.eclipse.ui.IEditorInput
,org.eclipse.ui.IFileEditorInput
,org.eclipse.ui.IPathEditorInput
,org.eclipse.ui.IPersistable
,org.eclipse.ui.IPersistableElement
,org.eclipse.ui.IStorageEditorInput
,org.eclipse.ui.IURIEditorInput
public class GraphicalSchemeEditorInput extends org.eclipse.ui.part.FileEditorInput implements IDtEditorInput<GraphicalScheme>
GraphicalScheme
editor input.
-
-
Constructor Summary
Constructors Constructor Description GraphicalSchemeEditorInput(org.eclipse.core.resources.IFile file, GraphicalScheme model)
Creates new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IDtEditorInput<GraphicalScheme>
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()
GraphicalScheme
getModel()
String
getName()
ISelection
getSelection()
void
setFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
Sets target feature.void
setModel(GraphicalScheme model)
Sets target model.void
setSelection(ISelection selection)
Sets target selection.IStructuredSelection
toNavigatorSelection()
Converts this editor input to Navigator selection.-
Methods inherited from class org.eclipse.ui.part.FileEditorInput
equals, exists, getAdapter, getFactoryId, getFile, getImageDescriptor, getPath, getPersistable, getStorage, getToolTipText, getURI, hashCode, isLocalFile, saveState, toString
-
-
-
-
Constructor Detail
-
GraphicalSchemeEditorInput
public GraphicalSchemeEditorInput(org.eclipse.core.resources.IFile file, GraphicalScheme model)
Creates new instance.- Parameters:
file
- the file, cannot benull
model
- the model, cannot benull
-
-
Method Detail
-
getModel
public GraphicalScheme getModel()
- Specified by:
getModel
in interfaceIDtEditorInput<GraphicalScheme>
- Returns:
- target model.
-
setModel
public void setModel(GraphicalScheme model)
Description copied from interface:IDtEditorInput
Sets target model.- Specified by:
setModel
in interfaceIDtEditorInput<GraphicalScheme>
- Parameters:
model
- model to set.
-
getFeature
public org.eclipse.emf.ecore.EStructuralFeature getFeature()
- Specified by:
getFeature
in interfaceIDtEditorInput<GraphicalScheme>
- 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<GraphicalScheme>
- Parameters:
feature
- feature to set.
-
getSelection
public ISelection getSelection()
- Specified by:
getSelection
in interfaceIDtEditorInput<GraphicalScheme>
- Returns:
- target selection.
-
setSelection
public void setSelection(ISelection selection)
Description copied from interface:IDtEditorInput
Sets target selection.- Specified by:
setSelection
in interfaceIDtEditorInput<GraphicalScheme>
- 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<GraphicalScheme>
- Returns:
- obtained selection or
null
if no appropriate selection exists.
-
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<GraphicalScheme>
- Returns:
- set of context indexes or empty set, never
null
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.eclipse.ui.IEditorInput
- Overrides:
getName
in classorg.eclipse.ui.part.FileEditorInput
-
copy
public IDtEditorInput<GraphicalScheme> copy()
Description copied from interface:IDtEditorInput
Copy currentIDtEditorInput
and create new instance of it- Specified by:
copy
in interfaceIDtEditorInput<GraphicalScheme>
- Returns:
- new created instance of
IDtEditorInput
, nevernull
-
-