X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/core/RenamePropertyProcessor.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/core/RenamePropertyProcessor.java index 46cde24..20cf802 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/core/RenamePropertyProcessor.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/ltk/core/RenamePropertyProcessor.java @@ -1,14 +1,15 @@ // Copyright (c) 2005 by Leif Frenzel. All rights reserved. // See http://leiffrenzel.de +// modified for phpeclipse.de project by axelcl package net.sourceforge.phpdt.ltk.core; import org.eclipse.core.runtime.*; import org.eclipse.ltk.core.refactoring.*; import org.eclipse.ltk.core.refactoring.participants.*; -/**

The processor is where the work is delegated to if participants are +/**

The processor is where the work is delegated to if participants are * involved. The processor loads the participants and manages the lifecycle - * of the refactoring. In order to do that, the refactoring entry point + * of the refactoring. In order to do that, the refactoring entry point * methods must be implemented.

* * @author Leif Frenzel @@ -23,13 +24,13 @@ public class RenamePropertyProcessor extends RefactoringProcessor { delegate = new RenamePropertyDelegate( info ); } - + // interface methods of RefactoringProcessor //////////////////////////////////////////// public Object[] getElements() { // usually, this would be some element object in the object model on which - // we work (e.g. a Java element if we were in the Java Model); in this case + // we work (e.g. a Java element if we were in the Java Model); in this case // we have only the property name return new Object[] { info.getOldName() }; } @@ -50,21 +51,21 @@ public class RenamePropertyProcessor extends RefactoringProcessor { return delegate.checkInitialConditions(); } - public RefactoringStatus checkFinalConditions( + public RefactoringStatus checkFinalConditions( final IProgressMonitor pm, final CheckConditionsContext context ) { return delegate.checkFinalConditions( pm, context ); } public Change createChange( final IProgressMonitor pm ) { - CompositeChange result = new CompositeChange( getProcessorName() ); + CompositeChange result = new CompositeChange( getProcessorName() ); delegate.createChange( pm, result ); return result; } - public RefactoringParticipant[] loadParticipants( - final RefactoringStatus status, + public RefactoringParticipant[] loadParticipants( + final RefactoringStatus status, final SharableParticipants sharedParticipants ) { - // This would be the place to load the participants via the + // This would be the place to load the participants via the // ParticipantManager and decide which of them are allowed to participate. return new RefactoringParticipant[ 0 ]; }