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 org.eclipse.core.resources.IFile;
9 /** <p>an info object that holds the information that is passed from
10 * the user to the refactoring.</p>
12 * @author Leif Frenzel
14 public class RenamePropertyInfo {
16 // the offset of the property to be renamed in the file
18 // the new name for the property
19 private String newName;
20 // the old name of the property (as selected by the user)
21 private String oldName;
22 // the file that contains the property to be renamed
23 private IFile sourceFile;
24 // whether the refactoring should also change the identifier
25 // in corresponding PHP files in the same project
26 private boolean updateProject;
27 // whether the refactoring should also update PHP files in other
28 // projects than the current one
29 private boolean allProjects;
32 // interface methods of IRenamePropertyInfo
33 ///////////////////////////////////////////
35 public int getOffset() {
39 public void setOffset( final int offset ) {
43 public String getNewName() {
47 public void setNewName( final String newName ) {
48 this.newName = newName;
51 public String getOldName() {
55 public void setOldName( final String oldName ) {
56 this.oldName = oldName;
59 public IFile getSourceFile() {
63 public void setSourceFile( final IFile sourceFile ) {
64 this.sourceFile = sourceFile;
67 public boolean isAllProjects() {
71 public void setAllProjects( final boolean allProjects ) {
72 this.allProjects = allProjects;
75 public boolean isUpdateProject() {
79 public void setUpdateProject( final boolean updateBundle ) {
80 this.updateProject = updateBundle;