org.eclipse.xpand.ui.refactoring.renamedefine
Class RenameDefineProcessor

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor
          extended by org.eclipse.xpand.ui.refactoring.renamedefine.RenameDefineProcessor
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable

public class RenameDefineProcessor
extends org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor

RenameDefineProcessor creates the refactoring changes for rename refactorings.


Constructor Summary
RenameDefineProcessor(XpandEditor editor, org.eclipse.jface.text.ITextSelection selection)
          Creates a new RenameDefineProcessor.
 
Method Summary
 org.eclipse.ltk.core.refactoring.RefactoringStatus checkFinalConditions(org.eclipse.core.runtime.IProgressMonitor pm, org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext context)
          
 org.eclipse.ltk.core.refactoring.RefactoringStatus checkInitialConditions(org.eclipse.core.runtime.IProgressMonitor pm)
          
 org.eclipse.ltk.core.refactoring.Change createChange(org.eclipse.core.runtime.IProgressMonitor pm)
          
 java.lang.Object[] getElements()
          
 java.lang.String getIdentifier()
          
 java.lang.String getProcessorName()
          
 boolean isApplicable()
          
static boolean isLineDelimiterChar(char ch)
          Returns true if the given character is a line delimiter character.
 org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant[] loadParticipants(org.eclipse.ltk.core.refactoring.RefactoringStatus status, org.eclipse.ltk.core.refactoring.participants.SharableParticipants sharedParticipants)
          
 void setNewName(java.lang.String newName)
           
 
Methods inherited from class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor
getRefactoring, postCreateChange
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenameDefineProcessor

public RenameDefineProcessor(XpandEditor editor,
                             org.eclipse.jface.text.ITextSelection selection)
Creates a new RenameDefineProcessor.

Parameters:
selection -
editor -
Method Detail

checkFinalConditions

public org.eclipse.ltk.core.refactoring.RefactoringStatus checkFinalConditions(org.eclipse.core.runtime.IProgressMonitor pm,
                                                                               org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext context)
                                                                        throws org.eclipse.core.runtime.CoreException,
                                                                               org.eclipse.core.runtime.OperationCanceledException

Specified by:
checkFinalConditions in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor
Throws:
org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.OperationCanceledException

checkInitialConditions

public org.eclipse.ltk.core.refactoring.RefactoringStatus checkInitialConditions(org.eclipse.core.runtime.IProgressMonitor pm)
                                                                          throws org.eclipse.core.runtime.CoreException,
                                                                                 org.eclipse.core.runtime.OperationCanceledException

Specified by:
checkInitialConditions in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor
Throws:
org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.OperationCanceledException

createChange

public org.eclipse.ltk.core.refactoring.Change createChange(org.eclipse.core.runtime.IProgressMonitor pm)
                                                     throws org.eclipse.core.runtime.CoreException,
                                                            org.eclipse.core.runtime.OperationCanceledException

Specified by:
createChange in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor
Throws:
org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.OperationCanceledException

isLineDelimiterChar

public static boolean isLineDelimiterChar(char ch)
Returns true if the given character is a line delimiter character.

Parameters:
ch - the given character
Returns:
Returns true if this the character is a line delimiter character, false otherwise

getElements

public java.lang.Object[] getElements()

Specified by:
getElements in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor

getIdentifier

public java.lang.String getIdentifier()

Specified by:
getIdentifier in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor

getProcessorName

public java.lang.String getProcessorName()

Specified by:
getProcessorName in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor

isApplicable

public boolean isApplicable()
                     throws org.eclipse.core.runtime.CoreException

Specified by:
isApplicable in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor
Throws:
org.eclipse.core.runtime.CoreException

loadParticipants

public org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant[] loadParticipants(org.eclipse.ltk.core.refactoring.RefactoringStatus status,
                                                                                               org.eclipse.ltk.core.refactoring.participants.SharableParticipants sharedParticipants)
                                                                                        throws org.eclipse.core.runtime.CoreException

Specified by:
loadParticipants in class org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor
Throws:
org.eclipse.core.runtime.CoreException

setNewName

public void setNewName(java.lang.String newName)

Copyright 2007 committers of openArchitectureWare and others.
All Rights Reserved.