diff options
Diffstat (limited to 'lttng/org.eclipse.linuxtools.tmf.ui.tests/widgetStubs/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/test/stub/adaption/TsfImplProvider.java')
-rw-r--r-- | lttng/org.eclipse.linuxtools.tmf.ui.tests/widgetStubs/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/test/stub/adaption/TsfImplProvider.java | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui.tests/widgetStubs/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/test/stub/adaption/TsfImplProvider.java b/lttng/org.eclipse.linuxtools.tmf.ui.tests/widgetStubs/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/test/stub/adaption/TsfImplProvider.java index 2672ec0feb..101e8f3f07 100644 --- a/lttng/org.eclipse.linuxtools.tmf.ui.tests/widgetStubs/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/test/stub/adaption/TsfImplProvider.java +++ b/lttng/org.eclipse.linuxtools.tmf.ui.tests/widgetStubs/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/test/stub/adaption/TsfImplProvider.java @@ -1,55 +1,55 @@ -/*******************************************************************************
- * Copyright (c) 2009, 2010 Ericsson
- *
- * All rights reserved. This program and the accompanying materials are
- * made available under the terms of the Eclipse Public License v1.0 which
- * accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation
- *******************************************************************************/
-package org.eclipse.linuxtools.tmf.ui.widgets.timegraph.test.stub.adaption;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.TimeGraphPresentationProvider;
-import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeEvent;
-import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.test.stub.model.EventImpl;
-
-/**
- * Time Graph Presentation Provider Stub.
- */
-@SuppressWarnings("nls")
-public class TsfImplProvider extends TimeGraphPresentationProvider {
-
- // ========================================================================
- // Methods
- // ========================================================================
- @Override
- public int getStateTableIndex(ITimeEvent event) {
- return 0;
- }
-
- @Override
- public Map<String, String> getEventHoverToolTipInfo(ITimeEvent revent) {
- Map<String, String> toolTipEventMsgs = new HashMap<String, String>();
- if (revent instanceof EventImpl) {
- toolTipEventMsgs.put("Test Tip1", "Test Value tip1");
- toolTipEventMsgs.put("Test Tip2", "Test Value tip2");
- }
-
- return toolTipEventMsgs;
- }
-
- @Override
- public String getEventName(ITimeEvent event) {
- String name = "Unknown";
- if (event instanceof EventImpl) {
- EventImpl devent = (EventImpl) event;
- name = devent.getType().toString();
- }
- return name;
- }
-}
+/******************************************************************************* + * Copyright (c) 2009, 2010 Ericsson + * + * All rights reserved. This program and the accompanying materials are + * made available under the terms of the Eclipse Public License v1.0 which + * accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation + *******************************************************************************/ +package org.eclipse.linuxtools.tmf.ui.widgets.timegraph.test.stub.adaption; + +import java.util.HashMap; +import java.util.Map; + +import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.TimeGraphPresentationProvider; +import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeEvent; +import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.test.stub.model.EventImpl; + +/** + * Time Graph Presentation Provider Stub. + */ +@SuppressWarnings("nls") +public class TsfImplProvider extends TimeGraphPresentationProvider { + + // ======================================================================== + // Methods + // ======================================================================== + @Override + public int getStateTableIndex(ITimeEvent event) { + return 0; + } + + @Override + public Map<String, String> getEventHoverToolTipInfo(ITimeEvent revent) { + Map<String, String> toolTipEventMsgs = new HashMap<String, String>(); + if (revent instanceof EventImpl) { + toolTipEventMsgs.put("Test Tip1", "Test Value tip1"); + toolTipEventMsgs.put("Test Tip2", "Test Value tip2"); + } + + return toolTipEventMsgs; + } + + @Override + public String getEventName(ITimeEvent event) { + String name = "Unknown"; + if (event instanceof EventImpl) { + EventImpl devent = (EventImpl) event; + name = devent.getType().toString(); + } + return name; + } +} |