use of org.eclipse.tracecompass.tmf.ui.analysis.TmfAnalysisViewOutput in project tracecompass by tracecompass.
the class TmfAnalysisOutputElement method getIcon.
@Override
public Image getIcon() {
if (fOutput instanceof TmfAnalysisViewOutput) {
IViewDescriptor descr = PlatformUI.getWorkbench().getViewRegistry().find(((TmfAnalysisViewOutput) fOutput).getViewId());
if (descr != null) {
Activator bundle = Activator.getDefault();
String key = descr.getId();
Image icon = bundle.getImageRegistry().get(key);
if (icon == null) {
icon = descr.getImageDescriptor().createImage();
bundle.getImageRegistry().put(key, icon);
}
if (icon != null) {
return icon;
}
}
}
return TmfProjectModelIcons.DEFAULT_VIEW_ICON;
}
use of org.eclipse.tracecompass.tmf.ui.analysis.TmfAnalysisViewOutput in project tracecompass by tracecompass.
the class TmfAnalysisOutputElement method getOutpuProperties.
private Map<String, String> getOutpuProperties() {
Map<String, String> properties = new HashMap<>();
IAnalysisOutput output = fOutput;
if (output instanceof TmfAnalysisViewOutput) {
properties.put(Messages.TmfAnalysisOutputElement_ViewIdProperty, ((TmfAnalysisViewOutput) output).getViewId());
}
return properties;
}
use of org.eclipse.tracecompass.tmf.ui.analysis.TmfAnalysisViewOutput in project tracecompass by tracecompass.
the class CallStackAnalysisListener method moduleCreated.
@Override
public void moduleCreated(@Nullable IAnalysisModule module) {
if (module instanceof CallStackAnalysis) {
module.registerOutput(new TmfAnalysisViewOutput(FlameChartView.ID));
module.registerOutput(new TmfAnalysisViewOutput(FlameGraphView.ID));
module.registerOutput(new TmfAnalysisViewOutput(CallGraphDensityView.ID));
module.registerOutput(new TmfAnalysisViewOutput(CallGraphStatisticsView.ID));
}
}
Aggregations