Skip to content

Commit 1cd9f4f

Browse files
rubenporrasfedejeanne
authored andcommitted
Make COPY_LINE_UP/DOWN and JOIN_LINES commands state dependent
This will (de)activate them accordingly together with the editor.
1 parent c468c39 commit 1cd9f4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5976,10 +5976,12 @@ public void setSelection(ISelection selection) {
59765976
markAsStateDependentAction(ITextEditorActionConstants.DELETE_LINE_TO_END, true);
59775977
markAsStateDependentAction(ITextEditorActionConstants.MOVE_LINE_UP, true);
59785978
markAsStateDependentAction(ITextEditorActionConstants.MOVE_LINE_DOWN, true);
5979+
markAsStateDependentAction(ITextEditorActionConstants.COPY_LINE_UP, true);
5980+
markAsStateDependentAction(ITextEditorActionConstants.COPY_LINE_DOWN, true);
59795981
markAsStateDependentAction(ITextEditorActionConstants.CUT_LINE, true);
59805982
markAsStateDependentAction(ITextEditorActionConstants.CUT_LINE_TO_BEGINNING, true);
59815983
markAsStateDependentAction(ITextEditorActionConstants.CUT_LINE_TO_END, true);
5982-
5984+
markAsStateDependentAction(ITextEditorActionConstants.JOIN_LINES, true);
59835985
setActionActivationCode(ITextEditorActionConstants.SHIFT_RIGHT_TAB,'\t', -1, SWT.NONE);
59845986
setActionActivationCode(ITextEditorActionConstants.SHIFT_LEFT, '\t', -1, SWT.SHIFT);
59855987
}

0 commit comments

Comments
 (0)