Package com._1c.g5.ides.ui.refactoring
Class IRefactoringElementContext.Impl
- java.lang.Object
-
- com._1c.g5.ides.ui.refactoring.IRefactoringElementContext.Impl
-
- All Implemented Interfaces:
IRefactoringElementContext
- Enclosing interface:
- IRefactoringElementContext
public static class IRefactoringElementContext.Impl extends Object implements IRefactoringElementContext
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com._1c.g5.ides.ui.refactoring.IRefactoringElementContext
IRefactoringElementContext.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl(org.eclipse.emf.common.util.URI targetElementURI, org.eclipse.emf.ecore.EClass targetElementEClass)
Impl(org.eclipse.emf.common.util.URI targetElementURI, org.eclipse.emf.ecore.EClass targetElementEClass, org.eclipse.core.resources.IFile triggeringFile, org.eclipse.ui.IEditorPart triggeringEditor, org.eclipse.jface.viewers.ISelection triggeringEditorSelection, org.eclipse.emf.common.util.URI contextResourceURI)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.emf.common.util.URI
getContextResourceURI()
Returns uri of resource wich contains the target element.org.eclipse.emf.ecore.EClass
getTargetElementEClass()
Returns eclass of the target element.org.eclipse.emf.common.util.URI
getTargetElementURI()
Returns uri of the refactoring element (target element).org.eclipse.ui.IEditorPart
getTriggeringEditor()
Opened editor from which refactoring was triggeredorg.eclipse.jface.viewers.ISelection
getTriggeringEditorSelection()
Returns selection which contains the element to be refactored.org.eclipse.core.resources.IFile
getTriggeringFile()
Returns file which contains the target element.
-
-
-
Constructor Detail
-
Impl
public Impl(org.eclipse.emf.common.util.URI targetElementURI, org.eclipse.emf.ecore.EClass targetElementEClass)
-
Impl
public Impl(org.eclipse.emf.common.util.URI targetElementURI, org.eclipse.emf.ecore.EClass targetElementEClass, org.eclipse.core.resources.IFile triggeringFile, org.eclipse.ui.IEditorPart triggeringEditor, org.eclipse.jface.viewers.ISelection triggeringEditorSelection, org.eclipse.emf.common.util.URI contextResourceURI)
-
-
Method Detail
-
getContextResourceURI
public org.eclipse.emf.common.util.URI getContextResourceURI()
Description copied from interface:IRefactoringElementContext
Returns uri of resource wich contains the target element.- Specified by:
getContextResourceURI
in interfaceIRefactoringElementContext
- Returns:
- uri of resource wich contains the target element (never
null
).
-
getTargetElementURI
public org.eclipse.emf.common.util.URI getTargetElementURI()
Description copied from interface:IRefactoringElementContext
Returns uri of the refactoring element (target element).- Specified by:
getTargetElementURI
in interfaceIRefactoringElementContext
- Returns:
- uri of the refactoring element (never
null
).
-
getTargetElementEClass
public org.eclipse.emf.ecore.EClass getTargetElementEClass()
Description copied from interface:IRefactoringElementContext
Returns eclass of the target element.- Specified by:
getTargetElementEClass
in interfaceIRefactoringElementContext
- Returns:
- eclass of the target element (never
null
).
-
getTriggeringFile
public org.eclipse.core.resources.IFile getTriggeringFile()
Description copied from interface:IRefactoringElementContext
Returns file which contains the target element.- Specified by:
getTriggeringFile
in interfaceIRefactoringElementContext
- Returns:
- file which contains the target element (never
null
).
-
getTriggeringEditor
public org.eclipse.ui.IEditorPart getTriggeringEditor()
Description copied from interface:IRefactoringElementContext
Opened editor from which refactoring was triggered- Specified by:
getTriggeringEditor
in interfaceIRefactoringElementContext
- Returns:
- the editor from which refactoring was triggered or null otherwise
-
getTriggeringEditorSelection
public org.eclipse.jface.viewers.ISelection getTriggeringEditorSelection()
Description copied from interface:IRefactoringElementContext
Returns selection which contains the element to be refactored.- Specified by:
getTriggeringEditorSelection
in interfaceIRefactoringElementContext
- Returns:
- selection which contains the element to be refactored (never
null
).
-
-