public abstract class EditorActionManager
extends java.lang.Object
| Constructor and Description |
|---|
EditorActionManager() |
| Modifier and Type | Method and Description |
|---|---|
abstract EditorActionHandler |
getActionHandler(java.lang.String actionId)
Returns the handler currently defined for the specified editor actions.
|
static EditorActionManager |
getInstance()
Returns the instance of the editor action manager.
|
abstract ReadonlyFragmentModificationHandler |
getReadonlyFragmentModificationHandler()
Gets the default handler which is invoked on attempt to modify a read-only fragment in the editor.
|
abstract ReadonlyFragmentModificationHandler |
getReadonlyFragmentModificationHandler(Document document)
Gets the handler which is invoked on attempt to modify a read-only fragment for the document.
|
abstract TypedAction |
getTypedAction()
Deprecated.
Use
TypedAction.getInstance() instead |
abstract EditorActionHandler |
setActionHandler(java.lang.String actionId,
EditorActionHandler handler)
Sets the handler for the specified editor actions.
|
abstract void |
setReadonlyFragmentModificationHandler(Document document,
ReadonlyFragmentModificationHandler handler)
Sets the handler which is invoked on attempt to modify a read-only fragment for the document.
|
abstract ReadonlyFragmentModificationHandler |
setReadonlyFragmentModificationHandler(ReadonlyFragmentModificationHandler handler)
Sets the handler which is invoked on attempt to modify a read-only fragment in the editor.
|
public static EditorActionManager getInstance()
public abstract EditorActionHandler getActionHandler(java.lang.String actionId)
actionId - the ID of the action for which the handler is requested. Possible
IDs are defined in the IdeActions class
by constants starting with ACTION_EDITOR_.public abstract EditorActionHandler setActionHandler(java.lang.String actionId, EditorActionHandler handler)
actionId - the ID of the action for which the handler is set. Possible
IDs are defined in the IdeActions class
by constants starting with ACTION_EDITOR_.@Deprecated public abstract TypedAction getTypedAction()
TypedAction.getInstance() insteadpublic abstract ReadonlyFragmentModificationHandler getReadonlyFragmentModificationHandler()
Document.createGuardedBlock(int, int)public abstract ReadonlyFragmentModificationHandler setReadonlyFragmentModificationHandler(ReadonlyFragmentModificationHandler handler)
handler - the handler instance.Document.createGuardedBlock(int, int)public abstract ReadonlyFragmentModificationHandler getReadonlyFragmentModificationHandler(Document document)
document - target documentDocument.createGuardedBlock(int, int)public abstract void setReadonlyFragmentModificationHandler(Document document, ReadonlyFragmentModificationHandler handler)
document - target documenthandler - new handlerDocument.createGuardedBlock(int, int)