1 /*******************************************************************************
2 * Copyright (c) 2009, 2010 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 * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
11 *******************************************************************************/
12 package org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.test
.stub
.adaption
;
14 import java
.util
.HashMap
;
17 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.TimeGraphPresentationProvider
;
18 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.model
.ITimeEvent
;
19 import org
.eclipse
.linuxtools
.tmf
.ui
.widgets
.timegraph
.test
.stub
.model
.EventImpl
;
22 * Time Graph Presentation Provider Stub.
24 @SuppressWarnings("nls")
25 public class TsfImplProvider
extends TimeGraphPresentationProvider
{
27 // ========================================================================
29 // ========================================================================
31 public int getStateTableIndex(ITimeEvent event
) {
36 public Map
<String
, String
> getEventHoverToolTipInfo(ITimeEvent revent
) {
37 Map
<String
, String
> toolTipEventMsgs
= new HashMap
<String
, String
>();
38 if (revent
instanceof EventImpl
) {
39 toolTipEventMsgs
.put("Test Tip1", "Test Value tip1");
40 toolTipEventMsgs
.put("Test Tip2", "Test Value tip2");
43 return toolTipEventMsgs
;
47 public String
getEventName(ITimeEvent event
) {
48 String name
= "Unknown";
49 if (event
instanceof EventImpl
) {
50 EventImpl devent
= (EventImpl
) event
;
51 name
= devent
.getType().toString();