KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > websvc > wsitconf > refactoring > AbstractRenameRefactoringElement


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 package org.netbeans.modules.websvc.wsitconf.refactoring;
21
22 //import org.netbeans.jmi.javamodel.Element;
23
//import org.netbeans.modules.javacore.internalapi.ExternalChange;
24
//import org.netbeans.modules.refactoring.spi.RefactoringElementImplementation;
25
//import org.netbeans.modules.refactoring.spi.SimpleRefactoringElementImpl;
26
import org.netbeans.modules.xml.wsdl.model.WSDLModel;
27 import org.openide.filesystems.FileObject;
28 import org.openide.text.PositionBounds;
29
30 /**
31  *
32  * @author mg116726
33  */

34 public abstract class AbstractRenameRefactoringElement /*extends SimpleRefactoringElementImpl implements RefactoringElementImplementation, ExternalChange*/ {
35
36 // private int status = RefactoringElementImplementation.NORMAL;
37

38     protected boolean enabled = true;
39     protected String JavaDoc oldName;
40     protected String JavaDoc newName;
41
42     protected WSDLModel model;
43     protected FileObject parentFile;
44     
45     /** Indicates whether this refactoring element is enabled.
46      * @return <code>true</code> if this element is enabled, otherwise <code>false</code>.
47      */

48 // @Override
49
public boolean isEnabled() {
50         return enabled;
51     }
52
53     /** Enables/disables this element.
54      * @param enabled If <code>true</code> the element is enabled, otherwise it is disabled.
55      */

56 // @Override
57
public void setEnabled(boolean enabled) {
58         this.enabled = enabled;
59     }
60
61     /** Returns text describing the refactoring element.
62      * @return Text.
63      */

64 // public String getText() {
65
// return getDisplayText();
66
// }
67

68     /** Returns Java element associated with this refactoring element.
69      * @return MDR Java element.
70      */

71 // public Element getJavaElement() {
72
// return null;
73
// }
74

75     /** Returns file that the element affects (relates to)
76      * @return File
77      */

78     public FileObject getParentFile() {
79         return parentFile;
80     }
81
82     /** Returns position bounds of the text to be affected by this refactoring element.
83      */

84     public PositionBounds getPosition() {
85         return null;
86     }
87
88     /** Returns the status of this refactoring element (whether it is a normal element,
89      * or a warning.
90      * @return Status of this element.
91      */

92 // @Override
93
// public int getStatus() {
94
// return status;
95
// }
96

97 // @Override
98
public void setStatus(int status) {
99 // this.status = status;
100
}
101     
102 }
Popular Tags