public class EditorActionManagerImpl extends EditorActionManager
Constructor and Description |
---|
EditorActionManagerImpl() |
Modifier and Type | Method and Description |
---|---|
EditorActionHandler |
getActionHandler(java.lang.String actionId)
Returns the handler currently defined for the specified editor actions.
|
ReadonlyFragmentModificationHandler |
getReadonlyFragmentModificationHandler()
Gets the default handler which is invoked on attempt to modify a read-only fragment in the editor.
|
ReadonlyFragmentModificationHandler |
getReadonlyFragmentModificationHandler(Document document)
Gets the handler which is invoked on attempt to modify a read-only fragment for the document.
|
TypedAction |
getTypedAction() |
EditorActionHandler |
setActionHandler(java.lang.String actionId,
EditorActionHandler handler)
Sets the handler for the specified editor actions.
|
void |
setReadonlyFragmentModificationHandler(Document document,
ReadonlyFragmentModificationHandler handler)
Sets the handler which is invoked on attempt to modify a read-only fragment for the document.
|
ReadonlyFragmentModificationHandler |
setReadonlyFragmentModificationHandler(ReadonlyFragmentModificationHandler handler)
Sets the handler which is invoked on attempt to modify a read-only fragment in the editor.
|
getInstance
public EditorActionHandler getActionHandler(java.lang.String actionId)
EditorActionManager
getActionHandler
in class EditorActionManager
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 EditorActionHandler setActionHandler(java.lang.String actionId, EditorActionHandler handler)
EditorActionManager
setActionHandler
in class EditorActionManager
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_
.public TypedAction getTypedAction()
getTypedAction
in class EditorActionManager
public ReadonlyFragmentModificationHandler getReadonlyFragmentModificationHandler()
EditorActionManager
getReadonlyFragmentModificationHandler
in class EditorActionManager
Document.createGuardedBlock(int, int)
public ReadonlyFragmentModificationHandler getReadonlyFragmentModificationHandler(Document document)
EditorActionManager
getReadonlyFragmentModificationHandler
in class EditorActionManager
document
- target documentDocument.createGuardedBlock(int, int)
public void setReadonlyFragmentModificationHandler(Document document, ReadonlyFragmentModificationHandler handler)
EditorActionManager
setReadonlyFragmentModificationHandler
in class EditorActionManager
document
- target documenthandler
- new handlerDocument.createGuardedBlock(int, int)
public ReadonlyFragmentModificationHandler setReadonlyFragmentModificationHandler(ReadonlyFragmentModificationHandler handler)
EditorActionManager
setReadonlyFragmentModificationHandler
in class EditorActionManager
handler
- the handler instance.Document.createGuardedBlock(int, int)