X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tmf%2Forg.eclipse.tracecompass.tmf.analysis.xml.ui%2Fsrc%2Forg%2Feclipse%2Ftracecompass%2Finternal%2Ftmf%2Fanalysis%2Fxml%2Fui%2Fviews%2Fxychart%2FXmlXYView.java;h=17a805a91b31921e16c19afa9bbe11339fb3e15b;hb=e23402bbd6ac78c9d5097a198d974813b300eca2;hp=8487aaf119ddcd1194359d48728a6f2566458ddc;hpb=91ab82f84e477aa95c2b4761d187994d525e5c5f;p=deliverable%2Ftracecompass.git diff --git a/tmf/org.eclipse.tracecompass.tmf.analysis.xml.ui/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/ui/views/xychart/XmlXYView.java b/tmf/org.eclipse.tracecompass.tmf.analysis.xml.ui/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/ui/views/xychart/XmlXYView.java index 8487aaf119..17a805a91b 100644 --- a/tmf/org.eclipse.tracecompass.tmf.analysis.xml.ui/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/ui/views/xychart/XmlXYView.java +++ b/tmf/org.eclipse.tracecompass.tmf.analysis.xml.ui/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/ui/views/xychart/XmlXYView.java @@ -17,6 +17,7 @@ import org.eclipse.jface.util.IPropertyChangeListener; import org.eclipse.jface.util.PropertyChangeEvent; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Display; +import org.eclipse.tracecompass.common.core.NonNullUtils; import org.eclipse.tracecompass.internal.tmf.analysis.xml.ui.TmfXmlUiStrings; import org.eclipse.tracecompass.internal.tmf.analysis.xml.ui.views.XmlViewInfo; import org.eclipse.tracecompass.tmf.ui.viewers.xycharts.TmfXYChartViewer; @@ -65,7 +66,6 @@ public class XmlXYView extends TmfChartView { } }); - setViewTitle(); } private void setViewTitle() { @@ -91,6 +91,13 @@ public class XmlXYView extends TmfChartView { }); } + @Override + public void createPartControl(@Nullable Composite parent) { + super.createPartControl(parent); + fViewInfo.setName(NonNullUtils.checkNotNull(getViewSite().getSecondaryId())); + setViewTitle(); + } + @Override protected TmfXYChartViewer createChartViewer(@Nullable Composite parent) { return new XmlXYViewer(parent, fViewInfo);