lttng.ust: Use correct Activator in MemoryUsageViewer
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Wed, 6 Jul 2016 20:38:24 +0000 (16:38 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Wed, 13 Jul 2016 20:08:57 +0000 (16:08 -0400)
It was importing tmf.core's Activator! :O

Change-Id: I9b7edce8c59f9638292bf20b2f3ecc4253b8c4c4
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/76783
Reviewed-by: Hudson CI
lttng/org.eclipse.tracecompass.lttng2.ust.ui/src/org/eclipse/tracecompass/internal/lttng2/ust/ui/views/memusage/MemoryUsageViewer.java

index 80eee6a91c0d9249cecaa0f6842bd53de0b2c581..72e186ada7a7a4caba4e8d6c18c9afed019d7d49 100644 (file)
@@ -24,7 +24,7 @@ import org.eclipse.swt.SWT;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.tracecompass.common.core.format.DataSizeWithUnitFormat;
 import org.eclipse.tracecompass.internal.lttng2.ust.core.analysis.memory.UstMemoryStrings;
-import org.eclipse.tracecompass.internal.tmf.core.Activator;
+import org.eclipse.tracecompass.internal.lttng2.ust.ui.Activator;
 import org.eclipse.tracecompass.lttng2.ust.core.analysis.memory.UstMemoryAnalysisModule;
 import org.eclipse.tracecompass.statesystem.core.ITmfStateSystem;
 import org.eclipse.tracecompass.statesystem.core.exceptions.AttributeNotFoundException;
@@ -44,7 +44,6 @@ import org.swtchart.Chart;
  *
  * @author Matthew Khouzam
  */
-@SuppressWarnings("restriction")
 public class MemoryUsageViewer extends TmfCommonXLineChartViewer {
 
     private TmfStateSystemAnalysisModule fModule = null;
@@ -177,7 +176,7 @@ public class MemoryUsageViewer extends TmfCommonXLineChartViewer {
                 updateDisplay();
             }
         } catch (AttributeNotFoundException | StateValueTypeException e) {
-            Activator.logError("Error updating the data of the Memory usage view", e); //$NON-NLS-1$
+            Activator.getDefault().logError("Error updating the data of the Memory usage view", e); //$NON-NLS-1$
         } catch (StateSystemDisposedException e) {
             /* State system is closing down, no point continuing */
         }
This page took 0.025817 seconds and 5 git commands to generate.