Class ReorgExecutionLog
java.lang.Object
org.eclipse.ltk.core.refactoring.participants.ReorgExecutionLog
Objects of this class can be used as a log to trace the
execution of refactorings like copy and paste
This class is not intended to be subclassed by clients.
- Since:
- 3.1
- Restriction:
- This class is not intended to be subclassed by clients.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNewName
(Object element) Returns the new name of the element.Object[]
Returns all processed elementsObject[]
Returns all elements which got renamed during the reorg refactoringboolean
Returnstrue
if the reorg refactoring got canceled; otherwisefalse
boolean
isProcessed
(Object element) Returnstrue
if the specified element has been processed; otherwisefalse
boolean
Returnstrue
if the specified element has been renamed; otherwisefalse
void
Logs that the reorg refactoring got canceled by the user.void
markAsProcessed
(Object element) Logs that the given element got processed by the refactoringvoid
setNewName
(Object element, String newName) Logs that the element got renamed tonewName
by the reorg refactoring.
-
Constructor Details
-
ReorgExecutionLog
public ReorgExecutionLog()Creates new reorg execution log
-
-
Method Details
-
markAsCanceled
public void markAsCanceled()Logs that the reorg refactoring got canceled by the user. -
isCanceled
public boolean isCanceled()Returnstrue
if the reorg refactoring got canceled; otherwisefalse
- Returns:
- whether the refactoring got canceled or not
-
isProcessed
Returnstrue
if the specified element has been processed; otherwisefalse
- Parameters:
element
- the element to test- Returns:
- whether the specified element has been processed
- Since:
- 3.3
-
isRenamed
Returnstrue
if the specified element has been renamed; otherwisefalse
- Parameters:
element
- the element to test- Returns:
- whether the specified element has been renamed
- Since:
- 3.3
-
markAsProcessed
Logs that the given element got processed by the refactoring- Parameters:
element
- the element that got processed
-
getProcessedElements
Returns all processed elements- Returns:
- all processed elements
-
setNewName
Logs that the element got renamed tonewName
by the reorg refactoring.- Parameters:
element
- the element which got renamednewName
- the new name of the element
-
getRenamedElements
Returns all elements which got renamed during the reorg refactoring- Returns:
- the renamed elements
-
getNewName
Returns the new name of the element. Returnsnull
if the element didn't get renamed.- Parameters:
element
- the element for which the new name is requested- Returns:
- the new name of
null
-