Class EmbeddedShowWhitespaceCharactersAction
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.jface.action.AbstractAction
-
- org.eclipse.jface.action.Action
-
- org.eclipse.ui.texteditor.ResourceAction
-
- com._1c.g5.v8.dt.lcore.ui.editor.embedded.EmbeddedShowWhitespaceCharactersAction
-
- All Implemented Interfaces:
org.eclipse.jface.action.IAction
,org.eclipse.ui.texteditor.IUpdate
public class EmbeddedShowWhitespaceCharactersAction extends org.eclipse.ui.texteditor.ResourceAction implements org.eclipse.ui.texteditor.IUpdate
This class is mainly copied fromShowWhitespaceCharactersAction
. It has equal functionality and does the same thing. The reason is that org.eclipse.xtext.ui.editor.embedded.EmbeddedEditor does not extendAbstractTextEditor
and therefore it can not be used inShowWhitespaceCharactersAction
to getITextVeiwer
. This class takes text viewer in constructor and uses it explicitly without getting from editor.
-
-
Constructor Summary
Constructors Constructor Description EmbeddedShowWhitespaceCharactersAction(ResourceBundle resourceBundle, String prefix, org.eclipse.jface.preference.IPreferenceStore store, org.eclipse.jface.text.ITextViewer textVeiwer)
Creates new instance ofEmbeddedShowWhitespaceCharactersAction
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
update()
-
Methods inherited from class org.eclipse.ui.texteditor.ResourceAction
getString, initialize, setHelpContextId
-
Methods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, run, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
-
Methods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
-
-
-
-
Constructor Detail
-
EmbeddedShowWhitespaceCharactersAction
public EmbeddedShowWhitespaceCharactersAction(ResourceBundle resourceBundle, String prefix, org.eclipse.jface.preference.IPreferenceStore store, org.eclipse.jface.text.ITextViewer textVeiwer)
Creates new instance ofEmbeddedShowWhitespaceCharactersAction
- Parameters:
resourceBundle
- The resource bundle to construct label and tooltip from, cannot benull
prefix
- The prefix to use for constructing resource bundle keys, cannot benull
store
- The preference store, can benull
textVeiwer
- The textVeiwer this action is associated with, cannot benull
-
-