diff options
author | Dani Megert | 2012-02-09 17:25:14 +0000 |
---|---|---|
committer | Dani Megert | 2012-02-09 17:25:14 +0000 |
commit | f7e9c6e267deffe8ad723ad4b8c99d360e585a7b (patch) | |
tree | aaef42f4a03ac43c834f676988dbc0f656c2017c /org.eclipse.ui.workbench.texteditor | |
parent | be38ff2e5af29ddc9d015d906172a02870264ffb (diff) | |
download | eclipse.platform.text-f7e9c6e267deffe8ad723ad4b8c99d360e585a7b.tar.gz eclipse.platform.text-f7e9c6e267deffe8ad723ad4b8c99d360e585a7b.tar.xz eclipse.platform.text-f7e9c6e267deffe8ad723ad4b8c99d360e585a7b.zip |
Fixed bug 347622: [typing] Paste with imports doesn't work after using
Breadcrumb
Diffstat (limited to 'org.eclipse.ui.workbench.texteditor')
-rw-r--r-- | org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java index dae96550e42..dad6a8330c3 100644 --- a/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java +++ b/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java @@ -5703,16 +5703,19 @@ public abstract class AbstractTextEditor extends EditorPart implements ITextEdit ResourceAction action; + setAction(IWorkbenchCommandConstants.EDIT_CUT, null); action= new TextOperationAction(EditorMessages.getBundleForConstructedKeys(), "Editor.Cut.", this, ITextOperationTarget.CUT); //$NON-NLS-1$ action.setHelpContextId(IAbstractTextEditorHelpContextIds.CUT_ACTION); action.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_CUT); setAction(ITextEditorActionConstants.CUT, action); + setAction(IWorkbenchCommandConstants.EDIT_COPY, null); action= new TextOperationAction(EditorMessages.getBundleForConstructedKeys(), "Editor.Copy.", this, ITextOperationTarget.COPY, true); //$NON-NLS-1$ action.setHelpContextId(IAbstractTextEditorHelpContextIds.COPY_ACTION); action.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_COPY); setAction(ITextEditorActionConstants.COPY, action); + setAction(IWorkbenchCommandConstants.EDIT_PASTE, null); action= new TextOperationAction(EditorMessages.getBundleForConstructedKeys(), "Editor.Paste.", this, ITextOperationTarget.PASTE); //$NON-NLS-1$ action.setHelpContextId(IAbstractTextEditorHelpContextIds.PASTE_ACTION); action.setActionDefinitionId(IWorkbenchCommandConstants.EDIT_PASTE); |