public final class CheckValidityAction extends LengthyAction implements ValidateDocumentService
app, id, MODIFIERS_TOOLTIP_KEY, NO_MNEMONIC, SELECTED_ICON_KEY, UNSELECTED_ICON_KEY
changeSupport, enabled
PART_ID
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
CheckValidityAction() |
Modifier and Type | Method and Description |
---|---|
protected Diagnostic[] |
doExec(OpenedDocument openedDoc) |
protected void |
exec()
Second step of
LengthyAction.doIt() . |
protected boolean |
init()
First step of
LengthyAction.doIt() . |
void |
updateEnabled()
This action should enable or disable itself using standard method
setEnabled(boolean).
|
Diagnostic[] |
validateDocument(OpenedDocument openedDoc)
Validates specified opened document.
|
doIt, finish
actionPerformed, activeEditorChanged, applyPreferences, destroyApp, editingContextChanged, flushPreferences, getAccelerator, getApp, getDialogTitle, getIcon, getId, getLabel, getMnemonic, getMnemonicIndex, getModifiersToolTip, getSelectedIcon, getToolTip, getUnselectedIcon, hasListeners, initApp, isEditingContextSensitive, isSelected, namespacePrefixesChanged, saveStateChanged, setAccelerator, setDisabledIcons, setIcon, setLabel, setMnemonic, setMnemonicIndex, setModifiersToolTip, setSelected, setSelectedIcon, setToolTip, setUnselectedIcon, undoStateChanged, validityStateChanged, wasCtrlClick, wasRightClick, wasShiftClick
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
protected boolean init()
LengthyAction
LengthyAction.doIt()
. Possibly an interactive one. It is
possible to prompt the user during this step and therefore, the user
can cancel the execution of the action (before it actually starts).init
in class LengthyAction
true
if execution should proceed;
false
if execution has been canceledprotected void exec()
LengthyAction
LengthyAction.doIt()
. Actual execution of the action. A busy
cursor is displayed during this step.exec
in class LengthyAction
protected Diagnostic[] doExec(OpenedDocument openedDoc)
public void updateEnabled()
AppAction
This method is invoked:
updateEnabled
in class AppAction
AppAction.activeEditorChanged()
,
AppAction.editingContextChanged()
public Diagnostic[] validateDocument(OpenedDocument openedDoc)
ValidateDocumentService
validateDocument
in interface ValidateDocumentService
openedDoc
- document to be validatednull
otherwise