001: /**
002: *
003: */package core;
004:
005: import org.eclipse.jdt.core.ICompilationUnit;
006:
007: /** <p>an info object that holds the information that is passed from
008: * the user to the refactoring.</p> Primarilly used by Source Code Refactoring.
009: *
010: * @author sh
011: */
012: public class RefactorInfo {
013: // the new full qualified name of the type
014: private String newName;
015:
016: // the old type (as selected by the user)
017: private String oldName;
018:
019: // the new variable name
020: private String newVarName;
021:
022: // the old variable name
023: private String oldVarName;
024:
025: // the java element
026: private Object element;
027:
028: // the compilation unit containing the type
029: private ICompilationUnit unit;
030:
031: // whether the refactoring should also change the name of the property
032: // in corresponding properties files in the same bundle (i.e. which start
033: // with the same name)
034: private boolean updateBundle;
035:
036: // whether the refactoring should also update referencing files in other
037: // projects than the current one
038: private boolean allProjects;
039:
040: public String getNewName() {
041: return newName;
042: }
043:
044: public void setNewName(final String newName) {
045: this .newName = newName;
046: }
047:
048: public String getOldName() {
049: return oldName;
050: }
051:
052: public void setOldName(final String oldName) {
053: this .oldName = oldName;
054: }
055:
056: public ICompilationUnit getUnit() {
057: return unit;
058: }
059:
060: public void setUnit(final ICompilationUnit unit) {
061: this .unit = unit;
062: }
063:
064: public boolean isUpdateBundle() {
065: return updateBundle;
066: }
067:
068: public void setUpdateBundle(final boolean updateBundle) {
069: this .updateBundle = updateBundle;
070: }
071:
072: public boolean isAllProjects() {
073: return allProjects;
074: }
075:
076: public void setAllProjects(final boolean allProjects) {
077: this .allProjects = allProjects;
078: }
079:
080: public Object getElement() {
081: return element;
082: }
083:
084: public void setElement(final Object element) {
085: this .element = element;
086: }
087:
088: public String getNewVarName() {
089: return newVarName;
090: }
091:
092: public void setNewVarName(final String newVarName) {
093: this .newVarName = newVarName;
094: }
095:
096: public String getOldVarName() {
097: return oldVarName;
098: }
099:
100: public void setOldVarName(final String oldVarName) {
101: this.oldVarName = oldVarName;
102: }
103: }
|