X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.tmf.core%2Fsrc%2Forg%2Feclipse%2Flinuxtools%2Ftmf%2Fcore%2Fcallstack%2FCallStackStateProvider.java;h=cb9a2d419ba5f7aadf028a922da0cf0c93d5bd46;hb=bcec0116448fab84a99a822ea9912cabb5c983f4;hp=7284635fc9649310c4010402162ad02db719a92f;hpb=ff21f40f463a2aabba651226d1807c8bf0f904ea;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/callstack/CallStackStateProvider.java b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/callstack/CallStackStateProvider.java index 7284635fc9..cb9a2d419b 100644 --- a/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/callstack/CallStackStateProvider.java +++ b/org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/callstack/CallStackStateProvider.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2013 Ericsson + * Copyright (c) 2013, 2014 Ericsson * * All rights reserved. This program and the accompanying materials are * made available under the terms of the Eclipse Public License v1.0 which @@ -13,13 +13,13 @@ package org.eclipse.linuxtools.tmf.core.callstack; import org.eclipse.linuxtools.internal.tmf.core.Activator; +import org.eclipse.linuxtools.statesystem.core.exceptions.AttributeNotFoundException; +import org.eclipse.linuxtools.statesystem.core.exceptions.StateValueTypeException; +import org.eclipse.linuxtools.statesystem.core.exceptions.TimeRangeException; +import org.eclipse.linuxtools.statesystem.core.statevalue.ITmfStateValue; +import org.eclipse.linuxtools.statesystem.core.statevalue.TmfStateValue; import org.eclipse.linuxtools.tmf.core.event.ITmfEvent; -import org.eclipse.linuxtools.tmf.core.exceptions.AttributeNotFoundException; -import org.eclipse.linuxtools.tmf.core.exceptions.StateValueTypeException; -import org.eclipse.linuxtools.tmf.core.exceptions.TimeRangeException; import org.eclipse.linuxtools.tmf.core.statesystem.AbstractTmfStateProvider; -import org.eclipse.linuxtools.tmf.core.statevalue.ITmfStateValue; -import org.eclipse.linuxtools.tmf.core.statevalue.TmfStateValue; import org.eclipse.linuxtools.tmf.core.timestamp.ITmfTimestamp; import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace; import org.eclipse.osgi.util.NLS; @@ -64,8 +64,6 @@ import org.eclipse.osgi.util.NLS; */ public abstract class CallStackStateProvider extends AbstractTmfStateProvider { - /** CallStack state system ID */ - public static final String ID = "org.eclipse.linuxtools.tmf.callstack"; //$NON-NLS-1$ /** Thread attribute */ public static final String THREADS = "Threads"; //$NON-NLS-1$ /** CallStack stack-attribute */ @@ -73,15 +71,11 @@ public abstract class CallStackStateProvider extends AbstractTmfStateProvider { /** Undefined function exit name */ public static final String UNDEFINED = "UNDEFINED"; //$NON-NLS-1$ + /** CallStack state system ID */ + private static final String ID = "org.eclipse.linuxtools.tmf.callstack"; //$NON-NLS-1$ /** Dummy function name for when no function is expected */ private static final String NO_FUNCTION = "no function"; //$NON-NLS-1$ - /** - * Version number of this state provider. Please bump this if you modify - * the contents of the generated state history in some way. - */ - private static final int VERSION = 0; - /** * Default constructor * @@ -92,11 +86,6 @@ public abstract class CallStackStateProvider extends AbstractTmfStateProvider { super(trace, ITmfEvent.class, ID); } - @Override - public int getVersion() { - return VERSION; - } - @Override protected void eventHandle(ITmfEvent event) { if (!considerEvent(event)) { @@ -155,6 +144,7 @@ public abstract class CallStackStateProvider extends AbstractTmfStateProvider { * The event to check * @return If false, the event will be ignored by the state provider. If * true processing will continue. + * @since 3.0 */ protected abstract boolean considerEvent(ITmfEvent event); @@ -184,6 +174,7 @@ public abstract class CallStackStateProvider extends AbstractTmfStateProvider { * @param event * The event * @return The thread name (as will be shown in the view) + * @since 3.0 */ protected abstract String getThreadName(ITmfEvent event); }