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 SourceMethod method;
41 public int getOffset() {
45 public void setOffset(final int offset) {
49 public String getNewName() {
53 public void setNewName(final String newName) {
54 this.newName = newName;
57 public String getOldName() {
61 public void setOldName(final String oldName) {
62 this.oldName = oldName;
65 public IFile getSourceFile() {
69 public void setSourceFile(final IFile sourceFile) {
70 this.sourceFile = sourceFile;
73 public boolean isAllProjects() {
77 public void setAllProjects(final boolean allProjects) {
78 this.allProjects = allProjects;
81 public boolean isUpdateProject() {
85 public void setUpdateProject(final boolean updateBundle) {
86 this.updateProject = updateBundle;
89 public SourceMethod getMethod() {
93 public void setMethod(SourceMethod method) {