tmf/ust: deprecate AbstractCallStackAnalysis and move the UST module to core
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.ui / src / org / eclipse / tracecompass / tmf / ui / views / callstack / AbstractCallStackAnalysis.java
index f09701736399b5b03a34b7b219916dacda1488d4..665162d7d2be84dcab12472e10684c4f85c1d4aa 100644 (file)
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2014 Ericsson
+ * Copyright (c) 2014, 2016 Ericsson
  *
  * All rights reserved. This program and the accompanying materials are
  * made available under the terms of the Eclipse Public License v1.0 which
 
 package org.eclipse.tracecompass.tmf.ui.views.callstack;
 
-import org.eclipse.tracecompass.tmf.core.callstack.CallStackStateProvider;
-import org.eclipse.tracecompass.tmf.core.statesystem.TmfStateSystemAnalysisModule;
+import org.eclipse.jdt.annotation.NonNullByDefault;
+import org.eclipse.tracecompass.tmf.core.callstack.CallStackAnalysis;
 import org.eclipse.tracecompass.tmf.ui.analysis.TmfAnalysisViewOutput;
 
 /**
  * The base classes for analyses who want to populate the CallStack View.
  *
  * @author Alexandre Montplaisir
+ * @deprecated Use the {@link CallStackAnalysis} from the core plugins instead
+ *             of this class which was there only to register the view as output
  */
-public abstract class AbstractCallStackAnalysis extends TmfStateSystemAnalysisModule {
-
-    private static final String[] DEFAULT_THREADS_PATTERN =
-            new String[] { CallStackStateProvider.THREADS, "*" }; //$NON-NLS-1$;
-
-    private static final String[] DEFAULT_CALL_STACK_PATH =
-            new String[] { CallStackStateProvider.CALL_STACK };
+@Deprecated
+@NonNullByDefault
+public abstract class AbstractCallStackAnalysis extends CallStackAnalysis {
 
     /**
      * Abstract constructor (should only be called via the sub-classes'
      * constructors.
      */
-    public AbstractCallStackAnalysis() {
+    protected AbstractCallStackAnalysis() {
         super();
         registerOutput(new TmfAnalysisViewOutput(CallStackView.ID));
     }
-
-    /**
-     * Get the pattern of thread attributes. Override this method if the state
-     * system attributes do not match the default pattern defined by
-     * {@link CallStackStateProvider}.
-     *
-     * @return the absolute pattern of the thread attributes
-     */
-    public String[] getThreadsPattern() {
-        return DEFAULT_THREADS_PATTERN;
-    }
-
-    /**
-     * Get the call stack attribute path relative to a thread attribute found by
-     * {@link #getThreadsPattern()}. Override this method if the state system
-     * attributes do not match the default pattern defined by
-     * {@link CallStackStateProvider}.
-     *
-     * @return the relative path of the call stack attribute
-     */
-    public String[] getCallStackPath() {
-        return DEFAULT_CALL_STACK_PATH;
-    }
 }
This page took 0.028001 seconds and 5 git commands to generate.