1 11 package org.eclipse.ltk.core.refactoring.participants; 12 13 import org.eclipse.core.runtime.Assert; 14 15 24 public class RenameArguments extends RefactoringArguments { 25 26 private String fNewName; 27 private boolean fUpdateReferences; 28 29 36 public RenameArguments(String newName, boolean updateReferences) { 37 Assert.isNotNull(newName); 38 fNewName= newName; 39 fUpdateReferences= updateReferences; 40 } 41 42 47 public String getNewName() { 48 return fNewName; 49 } 50 51 57 public boolean getUpdateReferences() { 58 return fUpdateReferences; 59 } 60 61 66 public String toString() { 67 return "rename to " + fNewName + (fUpdateReferences ? " (update references)" : " (don't update references)"); } 70 } 71 | Popular Tags |