Class ReorgExecutionLog
- java.lang.Object
-
- org.eclipse.ltk.core.refactoring.participants.ReorgExecutionLog
-
public class ReorgExecutionLog extends java.lang.ObjectObjects of this class can be used as a log to trace the execution of refactorings like copy and pasteThis 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
Constructors Constructor Description ReorgExecutionLog()Creates new reorg execution log
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetNewName(java.lang.Object element)Returns the new name of the element.java.lang.Object[]getProcessedElements()Returns all processed elementsjava.lang.Object[]getRenamedElements()Returns all elements which got renamed during the reorg refactoringbooleanisCanceled()Returnstrueif the reorg refactoring got canceled; otherwisefalsebooleanisProcessed(java.lang.Object element)Returnstrueif the specified element has been processed; otherwisefalsebooleanisRenamed(java.lang.Object element)Returnstrueif the specified element has been renamed; otherwisefalsevoidmarkAsCanceled()Logs that the reorg refactoring got canceled by the user.voidmarkAsProcessed(java.lang.Object element)Logs that the given element got processed by the refactoringvoidsetNewName(java.lang.Object element, java.lang.String newName)Logs that the element got renamed tonewNameby the reorg refactoring.
-
-
-
Method Detail
-
markAsCanceled
public void markAsCanceled()
Logs that the reorg refactoring got canceled by the user.
-
isCanceled
public boolean isCanceled()
Returnstrueif the reorg refactoring got canceled; otherwisefalse- Returns:
- whether the refactoring got canceled or not
-
isProcessed
public boolean isProcessed(java.lang.Object element)
Returnstrueif 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
public boolean isRenamed(java.lang.Object element)
Returnstrueif 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
public void markAsProcessed(java.lang.Object element)
Logs that the given element got processed by the refactoring- Parameters:
element- the element that got processed
-
getProcessedElements
public java.lang.Object[] getProcessedElements()
Returns all processed elements- Returns:
- all processed elements
-
setNewName
public void setNewName(java.lang.Object element, java.lang.String newName)Logs that the element got renamed tonewNameby the reorg refactoring.- Parameters:
element- the element which got renamednewName- the new name of the element
-
getRenamedElements
public java.lang.Object[] getRenamedElements()
Returns all elements which got renamed during the reorg refactoring- Returns:
- the renamed elements
-
getNewName
public java.lang.String getNewName(java.lang.Object element)
Returns the new name of the element. Returnsnullif the element didn't get renamed.- Parameters:
element- the element for which the new name is requested- Returns:
- the new name of
null
-
-