Package com._1c.g5.ides.ui.refactoring
Interface IRefactoringElementContext
-
- All Known Implementing Classes:
IRefactoringElementContext.Impl
public interface IRefactoringElementContext
The information of an element to be refactored. Based on this information aIRefactoringProvider
chooses the implementation of the refactoring processor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IRefactoringElementContext.Impl
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getTargetElementURI
org.eclipse.emf.common.util.URI getTargetElementURI()
Returns uri of the refactoring element (target element).- Returns:
- uri of the refactoring element (never
null
).
-
getContextResourceURI
org.eclipse.emf.common.util.URI getContextResourceURI()
Returns uri of resource wich contains the target element.- Returns:
- uri of resource wich contains the target element (never
null
).
-
getTargetElementEClass
org.eclipse.emf.ecore.EClass getTargetElementEClass()
Returns eclass of the target element.- Returns:
- eclass of the target element (never
null
).
-
getTriggeringFile
org.eclipse.core.resources.IFile getTriggeringFile()
Returns file which contains the target element.- Returns:
- file which contains the target element (never
null
).
-
getTriggeringEditorSelection
org.eclipse.jface.viewers.ISelection getTriggeringEditorSelection()
Returns selection which contains the element to be refactored.- Returns:
- selection which contains the element to be refactored (never
null
).
-
getTriggeringEditor
org.eclipse.ui.IEditorPart getTriggeringEditor()
Opened editor from which refactoring was triggered- Returns:
- the editor from which refactoring was triggered or null otherwise
-
-