Class EmbeddedInsertNewLineAction
- 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.EmbeddedInsertNewLineAction
-
- All Implemented Interfaces:
org.eclipse.jface.action.IAction
public class EmbeddedInsertNewLineAction extends org.eclipse.ui.texteditor.ResourceAction
org.eclipse.ui.edit.text.smartEnter for embedded editor
This class is adopted copy ofInsertLineAction
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 inInsertLineAction
to getITextVeiwer
-
-
Constructor Summary
Constructors Constructor Description EmbeddedInsertNewLineAction(ResourceBundle resourceBundle, String prefix, org.eclipse.jface.text.source.ISourceViewer sourceVeiwer, boolean inverse)
Creates new instance ofEmbeddedInsertNewLineAction
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
-
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, 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
-
EmbeddedInsertNewLineAction
public EmbeddedInsertNewLineAction(ResourceBundle resourceBundle, String prefix, org.eclipse.jface.text.source.ISourceViewer sourceVeiwer, boolean inverse)
Creates new instance ofEmbeddedInsertNewLineAction
- 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
sourceVeiwer
- The sourceVeiwer this action is associated with, cannot benull
inverse
-true
if it is inverse smart enter action,false
otherwise
-
-