summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorIngo Weigelt2012-03-27 06:10:10 (EDT)
committer Michael Jastram2012-04-05 06:34:52 (EDT)
commit59547cccd2e327f419fe85f4f25cb00eb18b7d85 (patch)
treee56bae2c28ee8030ca0f7b15ef29fa96d86a1ed4
parent374efc81cb924cb923031fab2d15ab87c679b2e4 (diff)
downloadorg.eclipse.rmf-59547cccd2e327f419fe85f4f25cb00eb18b7d85.zip
org.eclipse.rmf-59547cccd2e327f419fe85f4f25cb00eb18b7d85.tar.gz
org.eclipse.rmf-59547cccd2e327f419fe85f4f25cb00eb18b7d85.tar.bz2
Bugfix: A SWTException was thrown when deleting a SpecHierarchy
-rw-r--r--org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrCellEditor.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrCellEditor.java b/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrCellEditor.java
index d2fe6bf..e15dd7b 100644
--- a/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrCellEditor.java
+++ b/org.eclipse.rmf.pror.reqif10.editor/src/org/eclipse/rmf/pror/reqif10/editor/agilegrid/ProrCellEditor.java
@@ -140,7 +140,7 @@ public abstract class ProrCellEditor extends TextCellEditor {
public void activate(EditorActivationEvent activationEvent) {
if (activationEvent.sourceEvent instanceof KeyEvent) {
KeyEvent keyEvent = (KeyEvent) activationEvent.sourceEvent;
- if (isValidCellEditorCharacter(keyEvent)) {
+ if (isValidCellEditorCharacter(keyEvent) && keyEvent.character != SWT.DEL) {
text.setText("" + keyEvent.character);
// this.fireApplyEditorValue();
super.activate(activationEvent);
@@ -149,7 +149,6 @@ public abstract class ProrCellEditor extends TextCellEditor {
}
}
super.activate(activationEvent);
- text.selectAll();
}
/**