Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tracecompass-dev] Fw: Problems updating plugin using Trace Compass to Eclipse Oxygen SR3

Sorry if this is a duplicate. My email client picked tracecompass-dev-bounces by mistake the first time.
----- Forwarded by David Wootton/Poughkeepsie/Contr/IBM on 02/28/2018 02:50 PM -----

From: David Wootton/Poughkeepsie/Contr/IBM
To: tracecompass-dev-bounces@xxxxxxxxxxx
Date: 02/28/2018 11:00 AM
Subject: Problems updating plugin using Trace Compass to Eclipse Oxygen SR3

I'm trying to update my plugin which uses Trace Compass from Eclipse Oxygen SR1 to Oxygen SR3. After the update it still builds cleanly but I ran into a couple problems.

After I load a trace, the trace table editor view is filled in and appears to work correctly. However, I have a class which extends CallStackView. The structure of the trace appears to be present since the time line and the stack for each timeline seem to be properly filled in. The problem is that the intervals in the trace are all invisible.

The second problem is that if I hover the mouse over random places in that view, the intervals seem to be present because I get a tooltip popup with some basic information about the interval, but the additional info by plugin generates is not there. I also get an exception at the same time, as pasted below.

I looked at my plugin source and at least part of the problem may be related to the CallStackEntry and CallStackEvent classes now being deprecated.

Not being sure how to fix this, I started by replacing my use of CallStackEntry with TimeEntry as comments in the st, able-3.3 branch source suggest, but then I run into another problem since I use the CallStackEvent getEntry() method to get an ITmfStateSystem object and that method in the superclass returns an ITimeGraphEntry so gets flagged in error.

Any suggestions how I resolve this are appreciated.

java.lang.ClassCastException: org.eclipse.tracecompass.tmf.ui.widgets.timegraph.model.TimeGraphEntry cannot be cast to org.eclipse.tracecompass.tmf.ui.views.callstack.CallStackEntry
at org.eclipse.tracecompass.tmf.ui.widgets.timegraph.TimeGraphPresentationProvider.getEventHoverToolTipInfo(
at org.eclipse.tracecompass.tmf.ui.widgets.timegraph.widgets.TimeGraphTooltipHandler.fillValues(
at org.eclipse.tracecompass.tmf.ui.widgets.timegraph.widgets.TimeGraphTooltipHandler.fill(
at org.eclipse.tracecompass.tmf.ui.viewers.TmfAbstractToolTipHandler$2.mouseHover(
at org.eclipse.swt.widgets.TypedListener.handleEvent(
at org.eclipse.swt.widgets.EventTable.sendEvent(
at org.eclipse.swt.widgets.Display.sendEvent(
at org.eclipse.swt.widgets.Widget.sendEvent(
at org.eclipse.swt.widgets.Display.runDeferredEvents(
at org.eclipse.swt.widgets.Display.readAndDispatch(
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(
at org.eclipse.ui.internal.Workbench.lambda$3(
at org.eclipse.core.databinding.observable.Realm.runWithDefault(
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.eclipse.equinox.launcher.Main.invokeFramework(
at org.eclipse.equinox.launcher.Main.basicRun(
at org.eclipse.equinox.launcher.Main.main(


Back to the top