analysis.lami: Replace OnDemandAnalysisException with CoreException
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / analysis / ondemand / IOnDemandAnalysis.java
index 58ef0fd49616602d8df9f08b59cd7da1fd0d20f7..24643f49386e99253885a75170e4debd3e32586c 100644 (file)
@@ -9,6 +9,7 @@
 
 package org.eclipse.tracecompass.tmf.core.analysis.ondemand;
 
+import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.tracecompass.tmf.core.timestamp.TmfTimeRange;
 import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
@@ -33,6 +34,14 @@ public interface IOnDemandAnalysis {
      */
     String getName();
 
+    /**
+     * Returns whether or not this analysis is defined by a user, as opposed to
+     * being built into Trace Compass (or an extension plugin).
+     *
+     * @return <code>true</code> if this analysis is defined by a user
+     */
+    boolean isUserDefined();
+
     /**
      * Determine if the current analysis can run on the given trace.
      *
@@ -85,10 +94,10 @@ public interface IOnDemandAnalysis {
      *            for a default monitor.
      * @return The results of this analysis. Exact object type is
      *         analysis-dependent, a more specific return type is encouraged.
-     * @throws OnDemandAnalysisException
+     * @throws CoreException
      *             If something went wrong with the execution, and expected
      *             results will not be returned
      */
     Object execute(ITmfTrace trace, TmfTimeRange range, String extraParams,
-            IProgressMonitor monitor) throws OnDemandAnalysisException;
+            IProgressMonitor monitor) throws CoreException;
 }
This page took 0.027696 seconds and 5 git commands to generate.