Some simple improvements
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / ltk / core / RenamePropertyInfo.java
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;
5
6 import org.eclipse.core.resources.IFile;
7
8
9 /** <p>an info object that holds the information that is passed from
10   * the user to the refactoring.</p>
11   *
12   * @author Leif Frenzel
13   */
14 public class RenamePropertyInfo {
15
16   // the offset of the property to be renamed in the file
17   private int offset;
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;
30
31
32   // interface methods of IRenamePropertyInfo
33   ///////////////////////////////////////////
34
35   public int getOffset() {
36     return offset;
37   }
38
39   public void setOffset( final int offset ) {
40     this.offset = offset;
41   }
42
43   public String getNewName() {
44     return newName;
45   }
46
47   public void setNewName( final String newName ) {
48     this.newName = newName;
49   }
50
51   public String getOldName() {
52     return oldName;
53   }
54
55   public void setOldName( final String oldName ) {
56     this.oldName = oldName;
57   }
58
59   public IFile getSourceFile() {
60     return sourceFile;
61   }
62
63   public void setSourceFile( final IFile sourceFile ) {
64     this.sourceFile = sourceFile;
65   }
66
67   public boolean isAllProjects() {
68     return allProjects;
69   }
70
71   public void setAllProjects( final boolean allProjects ) {
72     this.allProjects = allProjects;
73   }
74
75   public boolean isUpdateProject() {
76     return updateProject;
77   }
78
79   public void setUpdateProject( final boolean updateBundle ) {
80     this.updateProject = updateBundle;
81   }
82 }