TMF: Have IAnalysisModule#setTrace return boolean instead of throw exception
[deliverable/tracecompass.git] / org.eclipse.tracecompass.lttng2.ust.ui / src / org / eclipse / tracecompass / lttng2 / ust / ui / analysis / callstack / LttngUstCallStackAnalysis.java
index 0f1ad72d463e1315df10220094f9200c91bcd707..e8335031dd8690e0acfacdf0b7c1fd88a9a6e053 100644 (file)
@@ -29,12 +29,15 @@ import org.eclipse.tracecompass.tmf.ui.views.callstack.AbstractCallStackAnalysis
  */
 public class LttngUstCallStackAnalysis extends AbstractCallStackAnalysis {
 
+    /**
+     * @since 1.0
+     */
     @Override
-    public void setTrace(ITmfTrace trace) throws TmfAnalysisException {
+    public boolean setTrace(ITmfTrace trace) throws TmfAnalysisException {
         if (!(trace instanceof LttngUstTrace)) {
-            throw new IllegalArgumentException("Trace should be of type LttngUstTrace"); //$NON-NLS-1$
+            return false;
         }
-        super.setTrace(trace);
+        return super.setTrace(trace);
     }
 
     @Override
This page took 0.023853 seconds and 5 git commands to generate.