diff options
author | Andrew Obuchowicz | 2019-07-19 19:00:59 +0000 |
---|---|---|
committer | Andrew Obuchowicz | 2019-07-22 13:40:23 +0000 |
commit | 0bc30667ae33f52913c51adcd66a178a26bb52d6 (patch) | |
tree | a52d63c943173da4f1dda4ac0aa676c9cfe1e073 | |
parent | 1e37aa628c6e341fffe93f50f27afe11cd10ac6e (diff) | |
download | eclipse.platform.debug-0bc30667ae33f52913c51adcd66a178a26bb52d6.tar.gz eclipse.platform.debug-0bc30667ae33f52913c51adcd66a178a26bb52d6.tar.xz eclipse.platform.debug-0bc30667ae33f52913c51adcd66a178a26bb52d6.zip |
Bug 548869 - Tabbing in Environment Variable Table unusableI20190724-1800I20190723-1800I20190722-1800
Added use of ColumnViewerEditor.TABBING_CYCLE_IN_VIEWER in the
environment variable table.
Change-Id: If1dc7985fffb36ecb48359f37c45ec7b9e0b0a2c
Signed-off-by: Andrew Obuchowicz <aobuchow@redhat.com>
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java index aa9e32b1e..b83d7bbe5 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java @@ -237,7 +237,6 @@ public class EnvironmentTab extends AbstractLaunchConfigurationTab { public EnvironmentTab() { super(); setHelpContextId(IDebugHelpContextIds.LAUNCH_CONFIGURATION_DIALOG_ENVIRONMENT_TAB); - try { this.copyKeyStroke = KeyStroke.getInstance("M1+C"); //$NON-NLS-1$ } catch (ParseException e) { @@ -329,7 +328,6 @@ public class EnvironmentTab extends AbstractLaunchConfigurationTab { // Create add environment variable menu item MenuItem miAdd = new MenuItem(menuTable, SWT.NONE); miAdd.setText(LaunchConfigurationsMessages.EnvironmentTab_Add_4); - miAdd.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent event) { @@ -395,7 +393,6 @@ public class EnvironmentTab extends AbstractLaunchConfigurationTab { } }); - // Setup and create Columns ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(environmentTable) { @Override @@ -404,10 +401,12 @@ public class EnvironmentTab extends AbstractLaunchConfigurationTab { || event.eventType == ColumnViewerEditorActivationEvent.MOUSE_DOUBLE_CLICK_SELECTION || event.eventType == ColumnViewerEditorActivationEvent.PROGRAMMATIC; } + }; - int feature = ColumnViewerEditor.TABBING_HORIZONTAL | ColumnViewerEditor.TABBING_MOVE_TO_ROW_NEIGHBOR - | ColumnViewerEditor.TABBING_VERTICAL | ColumnViewerEditor.KEYBOARD_ACTIVATION; + int feature = ColumnViewerEditor.TABBING_MOVE_TO_ROW_NEIGHBOR | ColumnViewerEditor.TABBING_HORIZONTAL + | ColumnViewerEditor.KEYBOARD_ACTIVATION + | ColumnViewerEditor.TABBING_CYCLE_IN_VIEWER; TableViewerEditor.create(environmentTable, actSupport, feature); @@ -464,7 +463,6 @@ public class EnvironmentTab extends AbstractLaunchConfigurationTab { tableComposite.setLayout(tableColumnLayout); environmentTable.getTable().addKeyListener(new KeyAdapter() { - @Override public void keyReleased(KeyEvent e) { KeyStroke current = computeKeyStroke(e); @@ -619,7 +617,6 @@ public class EnvironmentTab extends AbstractLaunchConfigurationTab { MessageFormat.format(LaunchConfigurationsMessages.EnvironmentTab_13, new Object[] { name })); // if (!overWrite) { return false; - } environmentTable.remove(existingVariable); break; |