org.drools.eclipse.refactoring
Class RuleSourceFieldRenameParticipant

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant
          extended by org.eclipse.ltk.core.refactoring.participants.RenameParticipant
              extended by org.drools.eclipse.refactoring.RuleSourceFieldRenameParticipant
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable

public class RuleSourceFieldRenameParticipant
extends org.eclipse.ltk.core.refactoring.participants.RenameParticipant

Participant to generate refactoring when a field is renamed. This isn't executed by the RefactoringProcessor when a field is refactored with the rename hotkey into the editor. Only is called when the Rename field dialog is used.


Field Summary
static String NAME
           
 
Constructor Summary
RuleSourceFieldRenameParticipant()
           
 
Method Summary
 org.eclipse.ltk.core.refactoring.RefactoringStatus checkConditions(org.eclipse.core.runtime.IProgressMonitor pm, org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext context)
           
 org.eclipse.ltk.core.refactoring.Change createChange(org.eclipse.core.runtime.IProgressMonitor pm)
           
 String getName()
           
protected  boolean initialize(Object element)
           
 
Methods inherited from class org.eclipse.ltk.core.refactoring.participants.RenameParticipant
getArguments, initialize
 
Methods inherited from class org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant
createPreChange, getProcessor, getTextChange, initialize
 
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
 

Field Detail

NAME

public static final String NAME
See Also:
Constant Field Values
Constructor Detail

RuleSourceFieldRenameParticipant

public RuleSourceFieldRenameParticipant()
Method Detail

checkConditions

public org.eclipse.ltk.core.refactoring.RefactoringStatus checkConditions(org.eclipse.core.runtime.IProgressMonitor pm,
                                                                          org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext context)
                                                                   throws org.eclipse.core.runtime.OperationCanceledException
Specified by:
checkConditions in class org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant
Throws:
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.RefactoringParticipant
Throws:
org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.OperationCanceledException

getName

public String getName()
Specified by:
getName in class org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant

initialize

protected boolean initialize(Object element)
Specified by:
initialize in class org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.