Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Cabe2010-06-02 06:18:39 -0400
committerBenjamin Cabe2010-06-02 06:18:39 -0400
commitf01cf7e78bf5c5e54fef94fb08dd223f8c24a344 (patch)
treed1cbefd09d826bed6aaf321919aac5c9d8ecd6d0
parent3b2b81f041373cfe7a76c9e3375bfcf05f1986fe (diff)
downloadeclipse.pde.incubator-f01cf7e78bf5c5e54fef94fb08dd223f8c24a344.tar.gz
eclipse.pde.incubator-f01cf7e78bf5c5e54fef94fb08dd223f8c24a344.tar.xz
eclipse.pde.incubator-f01cf7e78bf5c5e54fef94fb08dd223f8c24a344.zip
RESOLVED - bug 311007: [modeling] The TreeViewer selection is not correctly updated after a Deletion
https://bugs.eclipse.org/bugs/show_bug.cgi?id=311007
-rw-r--r--modeling/plugins/org.eclipse.pde.emfforms/src/org/eclipse/pde/emfforms/editor/actions/RemoveAction.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/modeling/plugins/org.eclipse.pde.emfforms/src/org/eclipse/pde/emfforms/editor/actions/RemoveAction.java b/modeling/plugins/org.eclipse.pde.emfforms/src/org/eclipse/pde/emfforms/editor/actions/RemoveAction.java
index 95a56b6..1d548b6 100644
--- a/modeling/plugins/org.eclipse.pde.emfforms/src/org/eclipse/pde/emfforms/editor/actions/RemoveAction.java
+++ b/modeling/plugins/org.eclipse.pde.emfforms/src/org/eclipse/pde/emfforms/editor/actions/RemoveAction.java
@@ -8,7 +8,7 @@
* Contributors:
* Jacques Lescot, Sierra Wireless - initial API and implementation (bug 300462)
*
- * $Id: RemoveAction.java,v 1.1 2010/01/22 16:42:08 bcabe Exp $
+ * $Id: RemoveAction.java,v 1.2 2010/06/02 10:16:32 bcabe Exp $
*/
package org.eclipse.pde.emfforms.editor.actions;
@@ -67,13 +67,13 @@ public class RemoveAction extends Action {
public void run() {
TreeViewer treeViewer = masterDetail.getTreeViewer();
- EObject nearestEltToSelect = computeElementToSelectAfterDeletion(treeViewer);
+ EObject elementToSelectAfterDeletion = computeElementToSelectAfterDeletion(treeViewer);
getDeleteAction().run();
treeViewer.refresh();
- if (nearestEltToSelect != null) {
- treeViewer.setSelection(new StructuredSelection(nearestEltToSelect));
+ if (elementToSelectAfterDeletion != null) {
+ treeViewer.setSelection(new StructuredSelection(elementToSelectAfterDeletion));
treeViewer.getTree().setFocus();
}
}

Back to the top