| |
|
| java.lang.Object org.netbeans.modules.refactoring.api.RefactoringElement
Method Summary | |
public String | getDisplayText() Returns text describing the refactoring formatted for display (using HTML tags). | public Lookup | getLookup() Returns Lookup associated with this element. | public FileObject | getParentFile() | public PositionBounds | getPosition() Returns position bounds of the text to be affected by this refactoring element. | public int | getStatus() Returns the status of this refactoring element (whether it is a normal element,
or a warning. | public String | getText() Returns text describing the refactoring element. | public boolean | isEnabled() Indicates whether this refactoring element is enabled. | public void | openInEditor() | public void | setEnabled(boolean enabled) Enables/disables this element. | public void | showPreview() |
GUARDED | final public static int GUARDED(Code) | | Status flag that indicates that the element cannot be enabled (if a fatal
problem is associated with it)
|
NORMAL | final public static int NORMAL(Code) | | Status corresponding to a normal element
|
READ_ONLY | final public static int READ_ONLY(Code) | | This element is in read-only file
|
WARNING | final public static int WARNING(Code) | | Status corresponding to an element that has a warning associated with it
|
getDisplayText | public String getDisplayText()(Code) | | Returns text describing the refactoring formatted for display (using HTML tags).
Formatted text. |
getParentFile | public FileObject getParentFile()(Code) | | Returns file that the element affects (relates to)
File |
getPosition | public PositionBounds getPosition()(Code) | | Returns position bounds of the text to be affected by this refactoring element.
position bounds |
getStatus | public int getStatus()(Code) | | Returns the status of this refactoring element (whether it is a normal element,
or a warning.
Status of this element. |
getText | public String getText()(Code) | | Returns text describing the refactoring element.
Text. |
isEnabled | public boolean isEnabled()(Code) | | Indicates whether this refactoring element is enabled.
true if this element is enabled, otherwise false . |
openInEditor | public void openInEditor()(Code) | | opens this RefactoringElement in the editor
|
setEnabled | public void setEnabled(boolean enabled)(Code) | | Enables/disables this element.
Parameters: enabled - If true the element is enabled, otherwise it is disabled. |
showPreview | public void showPreview()(Code) | | Shows this element in refactoring preview are
See Also: org.netbeans.modules.refactoring.api.ui.UI.setComponentForRefactoringPreview |
|
|
|