tmf: Add keyboard shortcuts for Next/Previous Marker
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / tmf / ui / widgets / timegraph / widgets / TimeGraphControl.java
index 9baee8006b44c588c4cb1c9cdf6e4df754a733b1..b2edddd4fe208e821a42cccf0e2128a0e7ffea05 100644 (file)
@@ -146,7 +146,6 @@ public class TimeGraphControl extends TimeGraphBaseControl
     private long fTime1bak;
     private ITimeGraphPresentationProvider fTimeGraphProvider = null;
     private ItemData fItemData = null;
-    private List<IMarkerEvent> fBookmarks = null;
     private List<IMarkerEvent> fMarkers = null;
     private boolean fMarkersVisible = true;
     private List<SelectionListener> fSelectionListeners;
@@ -421,7 +420,7 @@ public class TimeGraphControl extends TimeGraphBaseControl
      *
      * @return The unmodifiable link event list
      *
-     * @since 2.0
+     * @since 1.1
      */
     public List<ILinkEvent> getArrows() {
         return Collections.unmodifiableList(fItemData.fLinks);
@@ -508,7 +507,7 @@ public class TimeGraphControl extends TimeGraphBaseControl
      * @param entry
      *            The entry
      * @return true if the entry is expanded, false if collapsed
-     * @since 2.0
+     * @since 1.1
      */
     public boolean getExpandedState(ITimeGraphEntry entry) {
         Item item = fItemData.fItemMap.get(entry);
@@ -999,18 +998,6 @@ public class TimeGraphControl extends TimeGraphBaseControl
         return fGridLineColor;
     }
 
-    /**
-     * Set the bookmarks list.
-     *
-     * @param bookmarks
-     *            The bookmarks list, or null
-     * @since 2.0
-     */
-    public void setBookmarks(List<IMarkerEvent> bookmarks) {
-        fBookmarks = bookmarks;
-        fTimeGraphScale.setBookmarks(bookmarks);
-    }
-
     /**
      * Set the markers list.
      *
@@ -1432,18 +1419,12 @@ public class TimeGraphControl extends TimeGraphBaseControl
         // draw the background markers
         drawMarkers(bounds, fTimeProvider, fMarkers, false, nameSpace, gc);
 
-        // draw the background bookmarks
-        drawMarkers(bounds, fTimeProvider, fBookmarks, false, nameSpace, gc);
-
         // draw the items
         drawItems(bounds, fTimeProvider, fItemData.fExpandedItems, fTopIndex, nameSpace, gc);
 
         // draw the foreground markers
         drawMarkers(bounds, fTimeProvider, fMarkers, true, nameSpace, gc);
 
-        // draw the foreground bookmarks
-        drawMarkers(bounds, fTimeProvider, fBookmarks, true, nameSpace, gc);
-
         // draw the links (arrows)
         drawLinks(bounds, fTimeProvider, fItemData.fLinks, nameSpace, gc);
 
@@ -2255,6 +2236,15 @@ public class TimeGraphControl extends TimeGraphBaseControl
         }
     }
 
+    /**
+     * Update the status line following a change of selection.
+     *
+     * @since 2.0
+     */
+    public void updateStatusLine() {
+        updateStatusLine(STATUS_WITHOUT_CURSOR_TIME);
+    }
+
     private void updateStatusLine(int x) {
         // use the time provider of the time graph scale for the status line
         ITimeDataProvider tdp = fTimeGraphScale.getTimeProvider();
@@ -2715,7 +2705,7 @@ public class TimeGraphControl extends TimeGraphBaseControl
      *
      * @param blend
      *            true if sub-pixel events should be blended, false otherwise.
-     * @since 2.0
+     * @since 1.1
      */
     public void setBlendSubPixelEvents(boolean blend) {
         fBlendSubPixelEvents = blend;
This page took 0.031522 seconds and 5 git commands to generate.