1 /*******************************************************************************
2 * Copyright (c) 2012 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Patrick Tasse - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.internal
.lttng2
.kernel
.ui
.views
.controlflow
;
15 import java
.util
.ArrayList
;
16 import java
.util
.Arrays
;
17 import java
.util
.List
;
19 import org
.eclipse
.core
.runtime
.IProgressMonitor
;
20 import org
.eclipse
.core
.runtime
.NullProgressMonitor
;
21 import org
.eclipse
.jface
.action
.Action
;
22 import org
.eclipse
.jface
.action
.IToolBarManager
;
23 import org
.eclipse
.jface
.action
.Separator
;
24 import org
.eclipse
.jface
.viewers
.ILabelProviderListener
;
25 import org
.eclipse
.jface
.viewers
.ITableLabelProvider
;
26 import org
.eclipse
.jface
.viewers
.ITreeContentProvider
;
27 import org
.eclipse
.jface
.viewers
.Viewer
;
28 import org
.eclipse
.linuxtools
.internal
.lttng2
.kernel
.ui
.Messages
;
29 import org
.eclipse
.linuxtools
.lttng2
.kernel
.core
.trace
.Attributes
;
30 import org
.eclipse
.linuxtools
.lttng2
.kernel
.core
.trace
.CtfKernelTrace
;
31 import org
.eclipse
.linuxtools
.tmf
.core
.ctfadaptor
.CtfTmfTimestamp
;
32 import org
.eclipse
.linuxtools
.tmf
.core
.event
.ITmfEvent
;
33 import org
.eclipse
.linuxtools
.tmf
.core
.event
.TmfTimeRange
;
34 import org
.eclipse
.linuxtools
.tmf
.core
.event
.TmfTimestamp
;
35 import org
.eclipse
.linuxtools
.tmf
.core
.exceptions
.AttributeNotFoundException
;
36 import org
.eclipse
.linuxtools
.tmf
.core
.exceptions
.StateValueTypeException
;
37 import org
.eclipse
.linuxtools
.tmf
.core
.exceptions
.TimeRangeException
;
38 import org
.eclipse
.linuxtools
.tmf
.core
.interval
.ITmfStateInterval
;
39 import org
.eclipse
.linuxtools
.tmf
.core
.signal
.TmfExperimentSelectedSignal
;
40 import org
.eclipse
.linuxtools
.tmf
.core
.signal
.TmfRangeSynchSignal
;
41 import org
.eclipse
.linuxtools
.tmf
.core
.signal
.TmfSignalHandler
;
42 import org
.eclipse
.linuxtools
.tmf
.core
.signal
.TmfTimeSynchSignal
;
43 import org
.eclipse
.linuxtools
.tmf
.core
.statesystem
.IStateSystemQuerier
;
44 import org
.eclipse
.linuxtools
.tmf
.core
.trace
.ITmfTrace
;
45 import org
.eclipse
.linuxtools
.tmf
.core
.trace
.TmfExperiment
;
46 import org
.eclipse
.linuxtools
.tmf
.ui
.views
.TmfView
;
47 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.ITimeGraphRangeListener
;
48 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.ITimeGraphSelectionListener
;
49 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.ITimeGraphTimeListener
;
50 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.TimeGraphCombo
;
51 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.TimeGraphRangeUpdateEvent
;
52 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.TimeGraphSelectionEvent
;
53 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.TimeGraphTimeEvent
;
54 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.model
.ITimeEvent
;
55 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.model
.ITimeGraphEntry
;
56 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.model
.TimeEvent
;
57 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.widgets
.Utils
;
58 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.widgets
.Utils
.Resolution
;
59 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.widgets
.Utils
.TimeFormat
;
60 import org
.eclipse
.swt
.SWT
;
61 import org
.eclipse
.swt
.graphics
.Image
;
62 import org
.eclipse
.swt
.widgets
.Composite
;
63 import org
.eclipse
.swt
.widgets
.Display
;
64 import org
.eclipse
.swt
.widgets
.TreeColumn
;
65 import org
.eclipse
.ui
.IActionBars
;
67 public class ControlFlowView
extends TmfView
{
69 // ------------------------------------------------------------------------
71 // ------------------------------------------------------------------------
76 public static final String ID
= "org.eclipse.linuxtools.lttng2.kernel.ui.views.controlflow"; //$NON-NLS-1$
81 private static final long INITIAL_WINDOW_OFFSET
= (1L * 100 * 1000 * 1000); // .1sec
83 private static final String PROCESS_COLUMN
= Messages
.ControlFlowView_processColumn
;
84 private static final String TID_COLUMN
= Messages
.ControlFlowView_tidColumn
;
85 private static final String PPID_COLUMN
= Messages
.ControlFlowView_ppidColumn
;
86 private static final String BIRTH_TIME_COLUMN
= Messages
.ControlFlowView_birthTimeColumn
;
87 private static final String TRACE_COLUMN
= Messages
.ControlFlowView_traceColumn
;
89 private final String
[] COLUMN_NAMES
= new String
[] {
97 // ------------------------------------------------------------------------
99 // ------------------------------------------------------------------------
101 // The timegraph combo
102 private TimeGraphCombo fTimeGraphCombo
;
104 // The selected experiment
105 private TmfExperiment
<ITmfEvent
> fSelectedExperiment
;
107 // The timegraph entry list
108 private ArrayList
<ControlFlowEntry
> fEntryList
;
111 private long fStartTime
;
114 private long fEndTime
;
117 private int fDisplayWidth
;
120 private ZoomThread fZoomThread
;
122 // The next resource action
123 private Action fNextResourceAction
;
125 // The previous resource action
126 private Action fPreviousResourceAction
;
128 // ------------------------------------------------------------------------
130 // ------------------------------------------------------------------------
132 private class TreeContentProvider
implements ITreeContentProvider
{
135 public void dispose() {
139 public void inputChanged(Viewer viewer
, Object oldInput
, Object newInput
) {
143 public Object
[] getElements(Object inputElement
) {
144 return (ITimeGraphEntry
[]) inputElement
;
148 public Object
[] getChildren(Object parentElement
) {
149 ITimeGraphEntry entry
= (ITimeGraphEntry
) parentElement
;
150 return entry
.getChildren();
154 public Object
getParent(Object element
) {
155 ITimeGraphEntry entry
= (ITimeGraphEntry
) element
;
156 return entry
.getParent();
160 public boolean hasChildren(Object element
) {
161 ITimeGraphEntry entry
= (ITimeGraphEntry
) element
;
162 return entry
.hasChildren();
167 private class TreeLabelProvider
implements ITableLabelProvider
{
170 public void addListener(ILabelProviderListener listener
) {
174 public void dispose() {
178 public boolean isLabelProperty(Object element
, String property
) {
183 public void removeListener(ILabelProviderListener listener
) {
187 public Image
getColumnImage(Object element
, int columnIndex
) {
192 public String
getColumnText(Object element
, int columnIndex
) {
193 ControlFlowEntry entry
= (ControlFlowEntry
) element
;
194 if (columnIndex
== 0) {
195 return entry
.getName();
196 } else if (columnIndex
== 1) {
197 return Integer
.toString(entry
.getThreadId());
198 } else if (columnIndex
== 2) {
199 if (entry
.getPPID() > 0) {
200 return Integer
.toString(entry
.getPPID());
202 } else if (columnIndex
== 3) {
203 return Utils
.formatTime(entry
.getBirthTime(), TimeFormat
.ABSOLUTE
, Resolution
.NANOSEC
);
204 } else if (columnIndex
== 4) {
205 return entry
.getTrace().getName();
207 return ""; //$NON-NLS-1$
212 private class ZoomThread
extends Thread
{
213 private long fZoomStartTime
;
214 private long fZoomEndTime
;
215 private long fResolution
;
216 private IProgressMonitor fMonitor
;
218 public ZoomThread(long startTime
, long endTime
) {
219 super("ControlFlowView zoom"); //$NON-NLS-1$
220 fZoomStartTime
= startTime
;
221 fZoomEndTime
= endTime
;
222 fResolution
= Math
.max(1, (fZoomEndTime
- fZoomStartTime
) / fDisplayWidth
);
223 fMonitor
= new NullProgressMonitor();
228 ArrayList
<ControlFlowEntry
> entryList
= fEntryList
;
229 if (entryList
== null) {
232 for (ControlFlowEntry entry
: entryList
) {
233 if (fMonitor
.isCanceled()) {
236 zoom(entry
, fMonitor
);
241 private void zoom(ControlFlowEntry entry
, IProgressMonitor monitor
) {
242 List
<ITimeEvent
> zoomedEventList
= getEventList(entry
, fZoomStartTime
, fZoomEndTime
, fResolution
, monitor
);
243 if (fMonitor
.isCanceled()) {
246 entry
.setZoomedEventList(zoomedEventList
);
247 for (ControlFlowEntry child
: entry
.getChildren()) {
248 if (fMonitor
.isCanceled()) {
251 zoom(child
, monitor
);
255 public void cancel() {
256 fMonitor
.setCanceled(true);
260 // ------------------------------------------------------------------------
262 // ------------------------------------------------------------------------
264 public ControlFlowView() {
266 fDisplayWidth
= Display
.getDefault().getBounds().width
;
269 // ------------------------------------------------------------------------
271 // ------------------------------------------------------------------------
274 * @see org.eclipse.linuxtools.tmf.ui.views.TmfView#createPartControl(org.eclipse.swt.widgets.Composite)
277 public void createPartControl(Composite parent
) {
278 fTimeGraphCombo
= new TimeGraphCombo(parent
, SWT
.NONE
);
280 fTimeGraphCombo
.setTreeContentProvider(new TreeContentProvider());
282 fTimeGraphCombo
.setTreeLabelProvider(new TreeLabelProvider());
284 fTimeGraphCombo
.setTimeGraphProvider(new ControlFlowPresentationProvider());
286 fTimeGraphCombo
.setTreeColumns(COLUMN_NAMES
);
288 fTimeGraphCombo
.getTimeGraphViewer().addRangeListener(new ITimeGraphRangeListener() {
290 public void timeRangeUpdated(TimeGraphRangeUpdateEvent event
) {
291 final long startTime
= event
.getStartTime();
292 final long endTime
= event
.getEndTime();
293 TmfTimeRange range
= new TmfTimeRange(new CtfTmfTimestamp(startTime
), new CtfTmfTimestamp(endTime
));
294 TmfTimestamp time
= new CtfTmfTimestamp(fTimeGraphCombo
.getTimeGraphViewer().getSelectedTime());
295 broadcast(new TmfRangeSynchSignal(ControlFlowView
.this, range
, time
));
296 if (fZoomThread
!= null) {
297 fZoomThread
.cancel();
299 startZoomThread(startTime
, endTime
);
303 fTimeGraphCombo
.getTimeGraphViewer().addTimeListener(new ITimeGraphTimeListener() {
305 public void timeSelected(TimeGraphTimeEvent event
) {
306 long time
= event
.getTime();
307 broadcast(new TmfTimeSynchSignal(ControlFlowView
.this, new CtfTmfTimestamp(time
)));
311 fTimeGraphCombo
.addSelectionListener(new ITimeGraphSelectionListener() {
313 public void selectionChanged(TimeGraphSelectionEvent event
) {
314 //ITimeGraphEntry selection = event.getSelection();
318 fTimeGraphCombo
.getTimeGraphViewer().setTimeCalendarFormat(true);
320 final Thread thread
= new Thread("ControlFlowView build") { //$NON-NLS-1$
323 if (TmfExperiment
.getCurrentExperiment() != null) {
324 selectExperiment(TmfExperiment
.getCurrentExperiment());
330 // View Action Handling
332 contributeToActionBars();
336 * @see org.eclipse.ui.part.WorkbenchPart#setFocus()
339 public void setFocus() {
340 fTimeGraphCombo
.setFocus();
343 // ------------------------------------------------------------------------
345 // ------------------------------------------------------------------------
348 public void experimentSelected(final TmfExperimentSelectedSignal
<?
extends ITmfEvent
> signal
) {
349 if (signal
.getExperiment().equals(fSelectedExperiment
)) {
353 final Thread thread
= new Thread("ControlFlowView build") { //$NON-NLS-1$
356 selectExperiment(signal
.getExperiment());
363 public void synchToTime(final TmfTimeSynchSignal signal
) {
364 if (signal
.getSource() == this) {
367 final long time
= signal
.getCurrentTime().normalize(0, -9).getValue();
370 for (ITmfTrace
<?
> trace
: fSelectedExperiment
.getTraces()) {
374 if (trace
instanceof CtfKernelTrace
) {
375 CtfKernelTrace ctfKernelTrace
= (CtfKernelTrace
) trace
;
376 IStateSystemQuerier ssq
= ctfKernelTrace
.getStateSystem();
377 if (time
>= ssq
.getStartTime() && time
<= ssq
.getCurrentEndTime()) {
378 List
<Integer
> currentThreadQuarks
= ssq
.getQuarks(Attributes
.CPUS
, "*", Attributes
.CURRENT_THREAD
); //$NON-NLS-1$
379 for (int currentThreadQuark
: currentThreadQuarks
) {
381 ITmfStateInterval currentThreadInterval
= ssq
.querySingleState(time
, currentThreadQuark
);
382 int currentThread
= currentThreadInterval
.getStateValue().unboxInt();
383 if (currentThread
> 0) {
384 int statusQuark
= ssq
.getQuarkAbsolute(Attributes
.THREADS
, Integer
.toString(currentThread
), Attributes
.STATUS
);
385 ITmfStateInterval statusInterval
= ssq
.querySingleState(time
, statusQuark
);
386 if (statusInterval
.getStartTime() == time
) {
387 thread
= currentThread
;
391 } catch (AttributeNotFoundException e
) {
393 } catch (TimeRangeException e
) {
395 } catch (StateValueTypeException e
) {
402 final int selectedThread
= thread
;
404 Display
.getDefault().asyncExec(new Runnable() {
407 if (fTimeGraphCombo
.isDisposed()) {
410 fTimeGraphCombo
.getTimeGraphViewer().setSelectedTime(time
, true);
411 startZoomThread(fTimeGraphCombo
.getTimeGraphViewer().getTime0(), fTimeGraphCombo
.getTimeGraphViewer().getTime1());
413 if (selectedThread
> 0) {
414 for (Object element
: fTimeGraphCombo
.getTimeGraphViewer().getExpandedElements()) {
415 if (element
instanceof ControlFlowEntry
) {
416 ControlFlowEntry entry
= (ControlFlowEntry
) element
;
417 if (entry
.getThreadId() == selectedThread
) {
418 fTimeGraphCombo
.setSelection(entry
);
428 public void synchToRange(final TmfRangeSynchSignal signal
) {
429 if (signal
.getSource() == this) {
432 final long startTime
= signal
.getCurrentRange().getStartTime().normalize(0, -9).getValue();
433 final long endTime
= signal
.getCurrentRange().getEndTime().normalize(0, -9).getValue();
434 final long time
= signal
.getCurrentTime().normalize(0, -9).getValue();
435 Display
.getDefault().asyncExec(new Runnable() {
438 if (fTimeGraphCombo
.isDisposed()) {
441 fTimeGraphCombo
.getTimeGraphViewer().setStartFinishTime(startTime
, endTime
);
442 fTimeGraphCombo
.getTimeGraphViewer().setSelectedTime(time
, false);
443 startZoomThread(startTime
, endTime
);
448 // ------------------------------------------------------------------------
450 // ------------------------------------------------------------------------
452 @SuppressWarnings("unchecked")
453 private void selectExperiment(TmfExperiment
<?
> experiment
) {
454 fStartTime
= Long
.MAX_VALUE
;
455 fEndTime
= Long
.MIN_VALUE
;
456 fSelectedExperiment
= (TmfExperiment
<ITmfEvent
>) experiment
;
457 ArrayList
<ControlFlowEntry
> entryList
= new ArrayList
<ControlFlowEntry
>();
458 for (ITmfTrace
<?
> trace
: experiment
.getTraces()) {
459 if (trace
instanceof CtfKernelTrace
) {
460 CtfKernelTrace ctfKernelTrace
= (CtfKernelTrace
) trace
;
461 IStateSystemQuerier ssq
= ctfKernelTrace
.getStateSystem();
462 long start
= ssq
.getStartTime();
463 long end
= ssq
.getCurrentEndTime();
464 fStartTime
= Math
.min(fStartTime
, start
);
465 fEndTime
= Math
.max(fEndTime
, end
);
466 List
<Integer
> threadQuarks
= ssq
.getQuarks(Attributes
.THREADS
, "*"); //$NON-NLS-1$
467 for (int threadQuark
: threadQuarks
) {
468 String threadName
= ssq
.getAttributeName(threadQuark
);
471 threadId
= Integer
.parseInt(threadName
);
472 } catch (NumberFormatException e1
) {
475 if (threadId
== 0) { // ignore the swapper thread
478 int execNameQuark
= -1;
481 execNameQuark
= ssq
.getQuarkRelative(threadQuark
, Attributes
.EXEC_NAME
);
482 } catch (AttributeNotFoundException e
) {
485 int ppidQuark
= ssq
.getQuarkRelative(threadQuark
, Attributes
.PPID
);
486 List
<ITmfStateInterval
> execNameIntervals
= ssq
.queryHistoryRange(execNameQuark
, start
, end
);
488 for (ITmfStateInterval execNameInterval
: execNameIntervals
) {
489 if (!execNameInterval
.getStateValue().isNull() && execNameInterval
.getStateValue().getType() == 1) {
490 String execName
= execNameInterval
.getStateValue().unboxStr();
491 long startTime
= execNameInterval
.getStartTime();
492 long endTime
= execNameInterval
.getEndTime() + 1;
493 if (birthTime
== -1) {
494 birthTime
= startTime
;
497 if (ppidQuark
!= -1) {
498 ITmfStateInterval ppidInterval
= ssq
.querySingleState(startTime
, ppidQuark
);
499 ppid
= ppidInterval
.getStateValue().unboxInt();
501 ControlFlowEntry entry
= new ControlFlowEntry(threadQuark
, ctfKernelTrace
, execName
, threadId
, ppid
, birthTime
, startTime
, endTime
);
502 entryList
.add(entry
);
503 entry
.addEvent(new TimeEvent(entry
, startTime
, endTime
- startTime
));
508 } catch (AttributeNotFoundException e
) {
510 } catch (TimeRangeException e
) {
512 } catch (StateValueTypeException e
) {
517 buildTree(entryList
);
518 refresh(INITIAL_WINDOW_OFFSET
);
519 ControlFlowEntry
[] entries
= fEntryList
.toArray(new ControlFlowEntry
[0]);
520 Arrays
.sort(entries
);
521 for (ControlFlowEntry entry
: entries
) {
522 buildStatusEvents(entry
);
527 private void buildTree(ArrayList
<ControlFlowEntry
> entryList
) {
528 ArrayList
<ControlFlowEntry
> rootList
= new ArrayList
<ControlFlowEntry
>();
529 for (ControlFlowEntry entry
: entryList
) {
531 if (entry
.getPPID() > 0) {
532 for (ControlFlowEntry parent
: entryList
) {
533 if (parent
.getThreadId() == entry
.getPPID() &&
534 entry
.getStartTime() >= parent
.getStartTime() &&
535 entry
.getStartTime() <= parent
.getEndTime()) {
536 parent
.addChild(entry
);
546 fEntryList
= rootList
;
549 private void buildStatusEvents(ControlFlowEntry entry
) {
550 IStateSystemQuerier ssq
= entry
.getTrace().getStateSystem();
551 long start
= ssq
.getStartTime();
552 long end
= ssq
.getCurrentEndTime();
553 long resolution
= Math
.max(1, (end
- start
) / fDisplayWidth
);
554 List
<ITimeEvent
> eventList
= getEventList(entry
, entry
.getStartTime(), entry
.getEndTime(), resolution
, new NullProgressMonitor());
555 entry
.setEventList(eventList
);
557 for (ITimeGraphEntry child
: entry
.getChildren()) {
558 buildStatusEvents((ControlFlowEntry
) child
);
562 private List
<ITimeEvent
> getEventList(ControlFlowEntry entry
, long startTime
, long endTime
, long resolution
, IProgressMonitor monitor
) {
563 startTime
= Math
.max(startTime
, entry
.getStartTime());
564 endTime
= Math
.min(endTime
, entry
.getEndTime());
565 if (endTime
<= startTime
) {
568 IStateSystemQuerier ssq
= entry
.getTrace().getStateSystem();
569 List
<ITimeEvent
> eventList
= null;
571 int statusQuark
= ssq
.getQuarkRelative(entry
.getThreadQuark(), Attributes
.STATUS
);
572 List
<ITmfStateInterval
> statusIntervals
= ssq
.queryHistoryRange(statusQuark
, startTime
, endTime
- 1, resolution
);
573 eventList
= new ArrayList
<ITimeEvent
>(statusIntervals
.size());
574 long lastEndTime
= -1;
575 for (ITmfStateInterval statusInterval
: statusIntervals
) {
576 if (monitor
.isCanceled()) {
579 long time
= statusInterval
.getStartTime();
580 long duration
= statusInterval
.getEndTime() - time
+ 1;
583 status
= statusInterval
.getStateValue().unboxInt();
584 } catch (StateValueTypeException e
) {
587 if (lastEndTime
!= time
&& lastEndTime
!= -1) {
588 eventList
.add(new ControlFlowEvent(entry
, lastEndTime
, time
- lastEndTime
, 0));
590 eventList
.add(new ControlFlowEvent(entry
, time
, duration
, status
));
591 lastEndTime
= time
+ duration
;
593 } catch (AttributeNotFoundException e
) {
595 } catch (TimeRangeException e
) {
601 private void refresh(final long windowRange
) {
602 Display
.getDefault().asyncExec(new Runnable() {
605 if (fTimeGraphCombo
.isDisposed()) {
608 ITimeGraphEntry
[] entries
= fEntryList
.toArray(new ITimeGraphEntry
[0]);
609 Arrays
.sort(entries
);
610 fTimeGraphCombo
.setInput(entries
);
611 fTimeGraphCombo
.getTimeGraphViewer().setTimeBounds(fStartTime
, fEndTime
);
613 long endTime
= fStartTime
+ windowRange
;
615 if (fEndTime
< endTime
) {
618 fTimeGraphCombo
.getTimeGraphViewer().setStartFinishTime(fStartTime
, endTime
);
619 for (TreeColumn column
: fTimeGraphCombo
.getTreeViewer().getTree().getColumns()) {
623 startZoomThread(fStartTime
, endTime
);
628 private void redraw() {
629 Display
.getDefault().asyncExec(new Runnable() {
632 if (fTimeGraphCombo
.isDisposed()) {
635 fTimeGraphCombo
.redraw();
636 fTimeGraphCombo
.update();
641 private void startZoomThread(long startTime
, long endTime
) {
642 if (fZoomThread
!= null) {
643 fZoomThread
.cancel();
645 fZoomThread
= new ZoomThread(startTime
, endTime
);
649 private void makeActions() {
650 fPreviousResourceAction
= fTimeGraphCombo
.getTimeGraphViewer().getPreviousItemAction();
651 fPreviousResourceAction
.setText(Messages
.ControlFlowView_previousProcessActionNameText
);
652 fPreviousResourceAction
.setToolTipText(Messages
.ControlFlowView_previousProcessActionToolTipText
);
653 fNextResourceAction
= fTimeGraphCombo
.getTimeGraphViewer().getNextItemAction();
654 fNextResourceAction
.setText(Messages
.ControlFlowView_nextProcessActionNameText
);
655 fNextResourceAction
.setToolTipText(Messages
.ControlFlowView_nextProcessActionToolTipText
);
658 private void contributeToActionBars() {
659 IActionBars bars
= getViewSite().getActionBars();
660 fillLocalToolBar(bars
.getToolBarManager());
663 private void fillLocalToolBar(IToolBarManager manager
) {
664 manager
.add(fTimeGraphCombo
.getTimeGraphViewer().getShowLegendAction());
665 manager
.add(new Separator());
666 manager
.add(fTimeGraphCombo
.getTimeGraphViewer().getResetScaleAction());
667 manager
.add(fTimeGraphCombo
.getTimeGraphViewer().getPreviousEventAction());
668 manager
.add(fTimeGraphCombo
.getTimeGraphViewer().getNextEventAction());
669 manager
.add(fPreviousResourceAction
);
670 manager
.add(fNextResourceAction
);
671 manager
.add(fTimeGraphCombo
.getTimeGraphViewer().getZoomInAction());
672 manager
.add(fTimeGraphCombo
.getTimeGraphViewer().getZoomOutAction());
673 manager
.add(new Separator());