public class StartMarkAction extends BasicUndoableAction
Modifier and Type | Class and Description |
---|---|
static class |
StartMarkAction.AlreadyStartedException |
Modifier and Type | Field and Description |
---|---|
static Key<StartMarkAction> |
START_MARK_ACTION_KEY |
Modifier and Type | Method and Description |
---|---|
static StartMarkAction |
canStart(Project project) |
static void |
checkCleared(Project project) |
java.lang.String |
getCommandName() |
Document |
getDocument() |
boolean |
isGlobal()
Global actions are those, that can be undone not only from the document of the file, but also from the project tree view.
|
void |
redo() |
void |
setCommandName(java.lang.String commandName) |
void |
setGlobal(boolean global) |
static StartMarkAction |
start(Editor editor,
Project project,
java.lang.String commandName) |
void |
undo() |
getAffectedDocuments
public static final Key<StartMarkAction> START_MARK_ACTION_KEY
public void undo()
public void redo()
public void setGlobal(boolean global)
public boolean isGlobal()
UndoableAction
isGlobal
in interface UndoableAction
isGlobal
in class BasicUndoableAction
public java.lang.String getCommandName()
public void setCommandName(java.lang.String commandName)
public Document getDocument()
public static void checkCleared(Project project)
public static StartMarkAction start(Editor editor, Project project, java.lang.String commandName) throws StartMarkAction.AlreadyStartedException
public static StartMarkAction canStart(Project project)