Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2006-10-24 19:52:31 +0000
committerDarin Wright2006-10-24 19:52:31 +0000
commit3e57a6272d27c59463b20d5b1b8851da8571f1ae (patch)
tree88ced8447528875c78247375409ec36bd365a47d
parentcb020de34cc25dfac8ad9431ed26437764dcf278 (diff)
downloadeclipse.platform.debug-3e57a6272d27c59463b20d5b1b8851da8571f1ae.tar.gz
eclipse.platform.debug-3e57a6272d27c59463b20d5b1b8851da8571f1ae.tar.xz
eclipse.platform.debug-3e57a6272d27c59463b20d5b1b8851da8571f1ae.zip
Bug 153500 Asynchronous model viewer
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewUpdatePolicy.java15
2 files changed, 14 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java
index f18b06f37..d81eb5b38 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java
@@ -473,7 +473,7 @@ public class LaunchView extends AbstractDebugView implements ISelectionChangedLi
updateObjects();
}
- protected void possibleContextChange(Object element) {
+ protected void possibleContextChange(Object element, int type) {
// TODO: remove
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewUpdatePolicy.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewUpdatePolicy.java
index 53672aed1..65a22bdcc 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewUpdatePolicy.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewUpdatePolicy.java
@@ -10,6 +10,7 @@
*******************************************************************************/
package org.eclipse.debug.internal.ui.views.launch;
+import org.eclipse.debug.internal.ui.contexts.provisional.DebugContextEvent;
import org.eclipse.debug.internal.ui.viewers.AsynchronousTreeViewer;
import org.eclipse.debug.internal.ui.viewers.TreeUpdatePolicy;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelDelta;
@@ -39,10 +40,20 @@ public class LaunchViewUpdatePolicy extends TreeUpdatePolicy {
*/
protected void handleState(AsynchronousTreeViewer viewer, IModelDelta delta) {
super.handleState(viewer, delta);
- // only context change if not already selected
+ if ((delta.getFlags() & (IModelDelta.CONTENT | IModelDelta.SELECT)) == 0) {
+ // a state change without content or selection is a possible context change
+ fView.possibleContextChange(delta.getElement(), DebugContextEvent.CHANGED);
+ }
+ }
+
+ protected void handleContent(AsynchronousTreeViewer viewer, IModelDelta delta) {
+ super.handleContent(viewer, delta);
if ((delta.getFlags() & IModelDelta.SELECT) == 0) {
- fView.possibleContextChange(delta.getElement());
+ // a content change without select or selection is a possible activation
+ fView.possibleContextChange(delta.getElement(), DebugContextEvent.ACTIVATED);
}
}
+
+
}

Back to the top