Bug 548869 - Tabbing in Environment Variable Table unusable
Added use of ColumnViewerEditor.TABBING_CYCLE_IN_VIEWER in the
environment variable table.
Change-Id: If1dc7985fffb36ecb48359f37c45ec7b9e0b0a2c
Signed-off-by: Andrew Obuchowicz <aobuchow@redhat.com>
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 aa9e32b..b83d7bb 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 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 @@
// 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 @@
}
});
-
// Setup and create Columns
ColumnViewerEditorActivationStrategy actSupport = new ColumnViewerEditorActivationStrategy(environmentTable) {
@Override
@@ -404,10 +401,12 @@
|| 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 @@
tableComposite.setLayout(tableColumnLayout);
environmentTable.getTable().addKeyListener(new KeyAdapter() {
-
@Override
public void keyReleased(KeyEvent e) {
KeyStroke current = computeKeyStroke(e);
@@ -619,7 +617,6 @@
MessageFormat.format(LaunchConfigurationsMessages.EnvironmentTab_13, new Object[] { name })); //
if (!overWrite) {
return false;
-
}
environmentTable.remove(existingVariable);
break;