tmf: Allow shift key to extend selection in time graph
[deliverable/tracecompass.git] / org.eclipse.tracecompass.tmf.ui.tests / widgetStubs / org / eclipse / tracecompass / tmf / ui / widgets / timegraph / test / stub / views / TsfTraceAnalysisView.java
index 8464c9b1836d7ffd3296b34ce0f9a8c4b4377b64..e7b482e6ba7832f02b4a189c8a67c3a880680d57 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2009, 2014 Ericsson
+ * Copyright (c) 2009, 2015 Ericsson
  *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
@@ -16,7 +16,7 @@ import java.text.SimpleDateFormat;
 import java.util.ArrayList;
 import java.util.Date;
 
-import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.PlatformObject;
 import org.eclipse.jface.action.Action;
 import org.eclipse.jface.action.IMenuListener;
 import org.eclipse.jface.action.IMenuManager;
@@ -99,7 +99,7 @@ public class TsfTraceAnalysisView extends ViewPart implements
      * example).
      */
 
-    class TreeObject implements IAdaptable {
+    class TreeObject extends PlatformObject {
         private final String name;
         private TreeParent parent;
 
@@ -123,11 +123,6 @@ public class TsfTraceAnalysisView extends ViewPart implements
         public String toString() {
             return getName();
         }
-
-        @Override
-        public Object getAdapter(Class key) {
-            return null;
-        }
     }
 
     class TreeParent extends TreeObject {
@@ -403,7 +398,7 @@ public class TsfTraceAnalysisView extends ViewPart implements
             public void run() {
                 TimeGraphViewer inFocusViewer = getActiveTsfCtrl();
                 if (inFocusViewer != null) {
-                    inFocusViewer.selectNextEvent();
+                    inFocusViewer.selectNextEvent(false);
                 }
             }
         };
@@ -416,7 +411,7 @@ public class TsfTraceAnalysisView extends ViewPart implements
             public void run() {
                 TimeGraphViewer inFocusViewer = getActiveTsfCtrl();
                 if (inFocusViewer != null) {
-                    inFocusViewer.selectPrevEvent();
+                    inFocusViewer.selectPrevEvent(false);
                 }
             }
         };
This page took 0.026966 seconds and 5 git commands to generate.