aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Weigelt2012-03-28 12:15:04 (EDT)
committerMichael Jastram2012-04-05 06:45:29 (EDT)
commitd6e94ee9babdf538af25e7605bd4b6856f488130 (patch)
tree009edfa78abec73175f20ad7ae2008082998d741
parent4a23fe69a74037a75fe628fbed9b1e307dada015 (diff)
downloadorg.eclipse.rmf-d6e94ee9babdf538af25e7605bd4b6856f488130.zip
org.eclipse.rmf-d6e94ee9babdf538af25e7605bd4b6856f488130.tar.gz
org.eclipse.rmf-d6e94ee9babdf538af25e7605bd4b6856f488130.tar.bz2
fixed Bug 374183 - Deleting multiple SpecElements in Specification
editor via DEL key does not work
-rw-r--r--org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrAgileGrid.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrAgileGrid.java b/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrAgileGrid.java
index 5bb862c..ced9f92 100644
--- a/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrAgileGrid.java
+++ b/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrAgileGrid.java
@@ -12,7 +12,9 @@ package org.eclipse.rmf.pror.reqif10.editor.agilegrid;
import org.agilemore.agilegrid.AgileGrid;
import org.agilemore.agilegrid.Cell;
+import org.agilemore.agilegrid.EditorActivationEvent;
import org.agilemore.agilegrid.ILayoutAdvisor;
+import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
/**
@@ -96,4 +98,20 @@ public class ProrAgileGrid extends AgileGrid {
return Integer.MIN_VALUE;
}
+ @Override
+ public void triggerEditorActivationEvent(
+ EditorActivationEvent editorActivationEvent, Object hint) {
+ if (editorActivationEvent.eventType == EditorActivationEvent.KEY_PRESSED
+ && editorActivationEvent.keyCode == SWT.DEL) {
+ /*
+ * This is a workaround for Bug 374183 - Deleting multiple
+ * SpecElements in Specification editor via DEL key does not work No
+ * need to activate an Editor since the rows are deleted. Activating
+ * the editor would reset the selection to one single cell
+ */
+ return;
+ }
+ super.triggerEditorActivationEvent(editorActivationEvent, hint);
+ }
+
}