public abstract class AnnotationsCommand extends VCSCommand
CANCEL, ERROR, NOOP, OK
Modifier | Constructor and Description |
---|---|
protected |
AnnotationsCommand(int id) |
Modifier and Type | Method and Description |
---|---|
protected int |
doitImpl()
Executes the actions associated with a specific version control command (implementation).
|
protected Annotations |
getAnnotations(java.io.File file) |
protected abstract Annotations |
getAnnotations(java.net.URL url) |
static IdeAction |
getAnnotationsAction(java.lang.String command,
java.lang.String vcsId) |
protected java.text.DateFormat |
getDateFormat() |
protected boolean |
isAvailableImpl()
Asks whether the command is available for the current context.
|
protected boolean |
isAvailableImpl(Locatable locatable)
Asks whether the command is available for the current context.
|
protected abstract boolean |
isUnmodifiedStatus(VCSStatus status) |
buildContextForEditor, createStatusFilter, doit, fireFileStructureChanged, fireSomeFilesCreated, fireSomeFilesDeleted, getContextLocatables, getExceptionHandler, getExtension, getFilteredSelection, getFilteredSelection, getLocatableURLFilter, getPolicyStatusCache, getStatusCache, getStatusCacheBridge, getStatusFilter, getURLFilter, initializeCommandStyle, initializeCommandType, isAvailable, isAvailableImpl, isAvailableImpl, isThreaded, noOp, noOpImpl, reloadBuffers, storeTimestamps, updateReadOnlyStates
enableConfirmation, getAffectedNodes, getContext, getData, getId, getName, getProgressHandle, getType, isGlobal, setContext, setData, setTaskInfo, undo
public static final IdeAction getAnnotationsAction(java.lang.String command, java.lang.String vcsId)
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(Locatable locatable) throws java.lang.Exception
VCSCommand
isAvailableImpl
in class VCSCommand
false
if the Locatable
's URL is null or filtered by the locatable URL filter, otherwhise calls otherwise calls VCSCommand.isAvailableImpl(URL)
.java.lang.Exception
protected abstract boolean isUnmodifiedStatus(VCSStatus status)
protected int doitImpl() throws java.lang.Exception
VCSCommand
doitImpl
in class VCSCommand
java.lang.Exception
protected Annotations getAnnotations(java.io.File file) throws java.lang.Exception
java.lang.Exception
protected abstract Annotations getAnnotations(java.net.URL url) throws java.lang.Exception
java.lang.Exception
protected java.text.DateFormat getDateFormat()