public class CloseEditorAction
extends org.eclipse.jface.action.Action
Constructor and Description |
---|
CloseEditorAction()
Creates a new CloseEditorAction.
|
CloseEditorAction(org.eclipse.ui.IEditorPart editor, boolean save)
Creates a new CloseEditorAction.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String | getActionDefinitionId()
This method returns the command id as declared in the plugin.xml Value of the ID is "com.ibm.commerce.telesales.ui.genericEditorCloseCommand"
|
org.eclipse.ui.IEditorPart | getCurrentEditor()
This method returns the editor part reference
|
java.lang.String | getHelpContextId()
This method returns the Help context ID.
|
java.lang.String | getId()
This method returns the TelesalesActionFactory Action identifier
|
boolean | isNeedToSave()
This method returns the boolean indicator whether the client wants the editor to be saved before closing.
|
protected void | resetAction()
This method resets the attributes of this action.
|
void | run()
This method checks to see if an editor reference was passed to this class and if so that editor part is closed.
|
void | setCurrentEditor(org.eclipse.ui.IEditorPart editor)
This method sets the editor part reference
|
void | setNeedToSave(boolean needToSave)
This method sets the boolean indicator whether the client wants the editor to be saved before closing.
|
public CloseEditorAction()
public CloseEditorAction(org.eclipse.ui.IEditorPart editor, boolean save)
public void setCurrentEditor(org.eclipse.ui.IEditorPart editor)
public org.eclipse.ui.IEditorPart getCurrentEditor()
public java.lang.String getActionDefinitionId()
public java.lang.String getId()
public java.lang.String getHelpContextId()
public void run()
protected void resetAction()
public boolean isNeedToSave()
public void setNeedToSave(boolean needToSave)