|
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.spi.SimpleRefactoringElementImplementation
public abstract class SimpleRefactoringElementImplementation
Default implementation of RefactoringElementImplementation interface. It contains implementations of
RefactoringElementImplementation.isEnabled()
,
RefactoringElementImplementation.setEnabled(boolean)
,
RefactoringElementImplementation.getStatus()
,
and
,
RefactoringElementImplementation.openInEditor()
,
RefactoringElementImplementation.showPreview()
,
RefactoringElementImplementation
Field Summary |
---|
Fields inherited from interface org.netbeans.modules.refactoring.spi.RefactoringElementImplementation |
---|
GUARDED, NORMAL, READ_ONLY, WARNING |
Constructor Summary | |
---|---|
SimpleRefactoringElementImplementation()
|
Method Summary | |
---|---|
protected String |
getNewFileContent()
this method is under development. |
int |
getStatus()
Returns the status of this refactoring element (whether it is a normal element, or a warning. |
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 |
setStatus(int status)
Setter for property status |
void |
showPreview()
Shows this element in refactoring preview are |
void |
undoChange()
Undo change done by performChange Implementation can be impty if the change is done using some high level transaction model |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.netbeans.modules.refactoring.spi.RefactoringElementImplementation |
---|
getDisplayText, getLookup, getParentFile, getPosition, getText, performChange |
Constructor Detail |
---|
public SimpleRefactoringElementImplementation()
Method Detail |
---|
public boolean isEnabled()
RefactoringElementImplementation
isEnabled
in interface RefactoringElementImplementation
true
if this element is enabled, otherwise false
.public void setEnabled(boolean enabled)
RefactoringElementImplementation
setEnabled
in interface RefactoringElementImplementation
enabled
- If true
the element is enabled, otherwise it is disabled.public int getStatus()
RefactoringElementImplementation
getStatus
in interface RefactoringElementImplementation
public void setStatus(int status)
RefactoringElementImplementation
setStatus
in interface RefactoringElementImplementation
status
- new value of propery statuspublic void openInEditor()
RefactoringElementImplementation
openInEditor
in interface RefactoringElementImplementation
public void showPreview()
RefactoringElementImplementation
showPreview
in interface RefactoringElementImplementation
org.netbeans.modules.refactoring.api.ui.UI#setComponentForRefactoringPreview
protected String getNewFileContent()
public void undoChange()
RefactoringElementImplementation
undoChange
in interface RefactoringElementImplementation
BackupFacility
,
RefactoringElementsBag#registerFileChange
,
RefactoringElementsBag.registerTransaction(org.netbeans.modules.refactoring.spi.Transaction)
,
Transaction
,
RefactoringElementImplementation.performChange()
,
RefactoringElementImplementation.undoChange()
|
org.netbeans.modules.refactoring.api 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |