A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / ltk / core / RenamePHPProcessor.java
index be64c83..f1d489a 100644 (file)
@@ -3,66 +3,79 @@
 // 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.*;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.ltk.core.refactoring.Change;
+import org.eclipse.ltk.core.refactoring.CompositeChange;
+import org.eclipse.ltk.core.refactoring.RefactoringStatus;
+import org.eclipse.ltk.core.refactoring.participants.CheckConditionsContext;
+import org.eclipse.ltk.core.refactoring.participants.RefactoringParticipant;
+import org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor;
+import org.eclipse.ltk.core.refactoring.participants.SharableParticipants;
 
-/** <p>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
-  * methods must be implemented.</p>
-  *
-  */
+/**
+ * <p>
+ * 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 methods must be
+ * implemented.
+ * </p>
+ * 
+ */
 public class RenamePHPProcessor extends RefactoringProcessor {
 
-  private final RenameIdentifierInfo info;
-  private final RenameIdentifierDelegate delegate;
+       private final RenameIdentifierInfo info;
 
-  public RenamePHPProcessor( final RenameIdentifierInfo info, final RenameIdentifierDelegate delegate ) {
-    this.info = info;
-    this.delegate = delegate;
-  }
+       private final RenameIdentifierDelegate delegate;
 
+       public RenamePHPProcessor(final RenameIdentifierInfo info,
+                       final RenameIdentifierDelegate delegate) {
+               this.info = info;
+               this.delegate = delegate;
+       }
 
-  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 have only the property name
-    return new Object[] { info.getOldName() };
-  }
+       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 have only the property name
+               return new Object[] { info.getOldName() };
+       }
 
-  public String getIdentifier() {
-    return getClass().getName();
-  }
+       public String getIdentifier() {
+               return getClass().getName();
+       }
 
-  public String getProcessorName() {
-    return CoreTexts.renamePropertyProcessor_name;
-  }
+       public String getProcessorName() {
+               return CoreTexts.renamePropertyProcessor_name;
+       }
 
-  public boolean isApplicable() throws CoreException {
-    return true;
-  }
+       public boolean isApplicable() throws CoreException {
+               return true;
+       }
 
-  public RefactoringStatus checkInitialConditions( final IProgressMonitor pm ) {
-    return delegate.checkInitialConditions();
-  }
+       public RefactoringStatus checkInitialConditions(final IProgressMonitor pm) {
+               return delegate.checkInitialConditions();
+       }
 
-  public RefactoringStatus checkFinalConditions(
-            final IProgressMonitor pm,  final CheckConditionsContext context ) {
-    return delegate.checkFinalConditions( pm, context );
-  }
+       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() );
-    delegate.createChange( pm, result );
-    return result;
-  }
+       public Change createChange(final IProgressMonitor pm) {
+               CompositeChange result = new CompositeChange(getProcessorName());
+               delegate.createChange(pm, result);
+               return result;
+       }
 
-  public RefactoringParticipant[] loadParticipants(
-                               final RefactoringStatus status,
-                               final SharableParticipants sharedParticipants ) {
-    // 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 ];
-  }
+       public RefactoringParticipant[] loadParticipants(
+                       final RefactoringStatus status,
+                       final SharableParticipants sharedParticipants) {
+               // 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];
+       }
 }