public abstract class CommandProcessor
extends java.lang.Object
Constructor and Description |
---|
CommandProcessor() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addAffectedDocuments(Project project,
Document... docs) |
abstract void |
addAffectedFiles(Project project,
VirtualFile... files) |
abstract void |
addCommandListener(CommandListener listener)
Deprecated.
|
void |
addCommandListener(CommandListener listener,
Disposable parentDisposable)
Deprecated.
|
abstract void |
executeCommand(Project project,
java.lang.Runnable runnable,
java.lang.String name,
java.lang.Object groupId) |
abstract void |
executeCommand(Project project,
java.lang.Runnable runnable,
java.lang.String name,
java.lang.Object groupId,
Document document) |
abstract void |
executeCommand(Project project,
java.lang.Runnable runnable,
java.lang.String name,
java.lang.Object groupId,
UndoConfirmationPolicy confirmationPolicy) |
abstract void |
executeCommand(Project project,
java.lang.Runnable command,
java.lang.String name,
java.lang.Object groupId,
UndoConfirmationPolicy confirmationPolicy,
boolean shouldRecordCommandForActiveDocument) |
abstract void |
executeCommand(Project project,
java.lang.Runnable command,
java.lang.String name,
java.lang.Object groupId,
UndoConfirmationPolicy confirmationPolicy,
Document document) |
abstract void |
executeCommand(java.lang.Runnable runnable,
java.lang.String name,
java.lang.Object groupId)
Deprecated.
|
abstract java.lang.Runnable |
getCurrentCommand() |
abstract java.lang.Object |
getCurrentCommandGroupId() |
abstract java.lang.String |
getCurrentCommandName() |
abstract Project |
getCurrentCommandProject() |
static CommandProcessor |
getInstance() |
abstract boolean |
isUndoTransparentActionInProgress() |
abstract void |
markCurrentCommandAsGlobal(Project project) |
abstract void |
removeCommandListener(CommandListener listener)
Deprecated.
|
abstract void |
runUndoTransparentAction(java.lang.Runnable action)
Defines a scope which contains undoable actions, for which there won't be a separate undo/redo step - they will be undone/redone along
with 'adjacent' command.
|
abstract void |
setCurrentCommandGroupId(java.lang.Object groupId) |
abstract void |
setCurrentCommandName(java.lang.String name) |
public static CommandProcessor getInstance()
@Deprecated public abstract void executeCommand(java.lang.Runnable runnable, java.lang.String name, java.lang.Object groupId)
executeCommand(Project, Runnable, String, Object)
public abstract void executeCommand(Project project, java.lang.Runnable runnable, java.lang.String name, java.lang.Object groupId)
public abstract void executeCommand(Project project, java.lang.Runnable runnable, java.lang.String name, java.lang.Object groupId, Document document)
public abstract void executeCommand(Project project, java.lang.Runnable runnable, java.lang.String name, java.lang.Object groupId, UndoConfirmationPolicy confirmationPolicy)
public abstract void executeCommand(Project project, java.lang.Runnable command, java.lang.String name, java.lang.Object groupId, UndoConfirmationPolicy confirmationPolicy, Document document)
public abstract void executeCommand(Project project, java.lang.Runnable command, java.lang.String name, java.lang.Object groupId, UndoConfirmationPolicy confirmationPolicy, boolean shouldRecordCommandForActiveDocument)
shouldRecordCommandForActiveDocument
- false
if the action is not supposed to be recorded into the currently open document's history.
Examples of such actions: Create New File, Change Project Settings etc.
Default is true
.public abstract void setCurrentCommandName(java.lang.String name)
public abstract void setCurrentCommandGroupId(java.lang.Object groupId)
public abstract java.lang.Runnable getCurrentCommand()
public abstract java.lang.String getCurrentCommandName()
public abstract java.lang.Object getCurrentCommandGroupId()
public abstract Project getCurrentCommandProject()
public abstract void runUndoTransparentAction(java.lang.Runnable action)
public abstract boolean isUndoTransparentActionInProgress()
runUndoTransparentAction(Runnable)
public abstract void markCurrentCommandAsGlobal(Project project)
public abstract void addAffectedFiles(Project project, VirtualFile... files)
@Deprecated public abstract void addCommandListener(CommandListener listener)
CommandListener.TOPIC
@Deprecated public void addCommandListener(CommandListener listener, Disposable parentDisposable)
CommandListener.TOPIC
@Deprecated public abstract void removeCommandListener(CommandListener listener)
CommandListener.TOPIC