public class VersionHistoryCommand extends VCSCommand
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VERSION_HISTORY_CMD |
static int |
VERSION_HISTORY_CMD_ID |
CANCEL, ERROR, NOOP, OK
Modifier | Constructor and Description |
---|---|
|
VersionHistoryCommand() |
protected |
VersionHistoryCommand(int cmdId) |
Modifier and Type | Method and Description |
---|---|
static void |
closeVersionHistoryEditors() |
protected int |
doitImpl()
Executes the actions associated with a specific version control command (implementation).
|
protected URLFilter |
getURLFilter()
Gets the URL filter controlling locatables in the command context.
|
static IdeAction |
getVersionHistoryAction(java.lang.String command, java.lang.String vcsId) |
boolean |
isAvailable() |
protected boolean |
isAvailableImpl()
Asks whether the command is available for the current context.
|
protected boolean |
isAvailableImpl(java.net.URL url)
Asks whether the command is available for the current context.
|
buildContextForEditor, createStatusFilter, doit, fireFileStructureChanged, fireSomeFilesCreated, fireSomeFilesDeleted, getContextLocatables, getExceptionHandler, getExtension, getFilteredSelection, getFilteredSelection, getLocatableURLFilter, getPolicyStatusCache, getStatusCache, getStatusCacheBridge, getStatusFilter, initializeCommandStyle, initializeCommandType, isAvailableImpl, isAvailableImpl, isThreaded, noOp, noOpImpl, reloadBuffers, storeTimestamps, updateReadOnlyStates
enableConfirmation, getAffectedNodes, getContext, getData, getId, getName, getProgressHandle, getType, isGlobal, setContext, setData, setTaskInfo, undo
public static final java.lang.String VERSION_HISTORY_CMD
public static final int VERSION_HISTORY_CMD_ID
public VersionHistoryCommand()
protected VersionHistoryCommand(int cmdId)
public static final IdeAction getVersionHistoryAction(java.lang.String command, java.lang.String vcsId)
protected URLFilter getURLFilter()
VCSCommand
getURLFilter
in class VCSCommand
public boolean isAvailable()
isAvailable
in class VCSCommand
protected boolean isAvailableImpl() throws java.lang.Exception
VCSCommand
isAvailableImpl
in class VCSCommand
true
if the command style is VCSCommandStyle.NORMAL
, otherwise calls VCSCommand.isAvailableImpl(Locatable[])
with contextual locatables.java.lang.Exception
protected boolean isAvailableImpl(java.net.URL url) throws java.lang.Exception
VCSCommand
isAvailableImpl
in class VCSCommand
true
if either VCSCommand.getStatusCache()
or VCSCommand.getStatusFilter()
return null
, otherwise uses the acceptance value of the status filter.java.lang.Exception
protected int doitImpl() throws java.lang.Exception
VCSCommand
doitImpl
in class VCSCommand
java.lang.Exception
public static final void closeVersionHistoryEditors()