1 // Copyright (c) 2005 by Leif Frenzel. All rights reserved.
2 // See http://leiffrenzel.de
3 // modified for phpeclipse.de project by axelcl
4 package net.sourceforge.phpdt.ltk.core;
6 import net.sourceforge.phpdt.internal.core.SourceMethod;
8 import org.eclipse.core.resources.IFile;
12 * an info object that holds the information that is passed from the user to the
17 public class RenameIdentifierInfo {
19 // the offset of the property to be renamed in the file
22 // the new name for the property
23 private String newName;
25 // the old name of the property (as selected by the user)
26 private String oldName;
28 // the file that contains the property to be renamed
29 private IFile sourceFile;
31 // whether the refactoring should also change the identifier
32 // in corresponding PHP files in the same project
33 private boolean updateProject;
35 // whether the refactoring should also update PHP files in other
36 // projects than the current one
37 private boolean allProjects;
39 private boolean renameDQString;
41 private boolean renamePHPdoc;
43 private boolean renameOtherComments;
45 private SourceMethod method;
47 public int getOffset() {
51 public void setOffset(final int offset) {
55 public String getNewName() {
59 public void setNewName(final String newName) {
60 this.newName = newName;
63 public String getOldName() {
67 public void setOldName(final String oldName) {
68 this.oldName = oldName;
71 public IFile getSourceFile() {
75 public void setSourceFile(final IFile sourceFile) {
76 this.sourceFile = sourceFile;
79 public boolean isAllProjects() {
83 public void setAllProjects(final boolean allProjects) {
84 this.allProjects = allProjects;
87 public boolean isUpdateProject() {
91 public void setUpdateProject(final boolean updateBundle) {
92 this.updateProject = updateBundle;
95 public SourceMethod getMethod() {
99 public void setMethod(SourceMethod method) {
100 this.method = method;
103 public boolean isRenameDQString() {
104 return renameDQString;
107 public void setRenameDQString(boolean renameDQString) {
108 this.renameDQString = renameDQString;
111 public boolean isRenameOtherComments() {
112 return renameOtherComments;
115 public void setRenameOtherComments(boolean renameOtherComments) {
116 this.renameOtherComments = renameOtherComments;
119 public boolean isRenamePHPdoc() {
123 public void setRenamePHPdoc(boolean renamePHPdoc) {
124 this.renamePHPdoc = renamePHPdoc;