|
org.netbeans.modules.refactoring.api 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.modules.refactoring.api.RefactoringElement
public final class RefactoringElement
Interface representing a refactoring element (object affected by a refactoring)
returned in a collection from AbstractRefactoring.prepare(org.netbeans.modules.refactoring.api.RefactoringSession)
operation.
RefactoringElementImplementation
Field Summary | |
---|---|
static int |
GUARDED
Status flag that indicates that the element cannot be enabled (if a fatal problem is associated with it) |
static int |
NORMAL
Status corresponding to a normal element |
static int |
READ_ONLY
This element is in read-only file |
static int |
WARNING
Status corresponding to an element that has a warning associated with it |
Method Summary | |
---|---|
String |
getDisplayText()
Returns text describing the refactoring formatted for display (using HTML tags). |
Lookup |
getLookup()
Returns Lookup associated with this element. |
FileObject |
getParentFile()
Returns file that the element affects (relates to) |
PositionBounds |
getPosition()
Returns position bounds of the text to be affected by this refactoring element. |
int |
getStatus()
Returns the status of this refactoring element (whether it is a normal element, or a warning. |
String |
getText()
Returns text describing the refactoring element. |
boolean |
isEnabled()
Indicates whether this refactoring element is enabled. |
void |
openInEditor()
opens this RefactoringElement in the editor |
void |
setEnabled(boolean enabled)
Enables/disables this element. |
void |
showPreview()
Shows this element in refactoring preview are |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NORMAL
public static final int WARNING
public static final int GUARDED
public static final int READ_ONLY
Method Detail |
---|
public String getText()
public String getDisplayText()
public boolean isEnabled()
true
if this element is enabled, otherwise false
.public void setEnabled(boolean enabled)
enabled
- If true
the element is enabled, otherwise it is disabled.public Lookup getLookup()
TreeElement
,
TreeElementFactoryImplementation
public FileObject getParentFile()
public PositionBounds getPosition()
public int getStatus()
public void showPreview()
org.netbeans.modules.refactoring.api.ui.UI#setComponentForRefactoringPreview
public void openInEditor()
|
org.netbeans.modules.refactoring.api 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |