Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xprofiling/org.eclipse.linuxtools.dataviewers.charts/src/org/eclipse/linuxtools/internal/dataviewers/charts/view/ChartFactory.java1
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.graphing.ui/src/org/eclipse/linuxtools/internal/systemtap/graphing/ui/charts/LineChartBuilder.java26
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.graphing.ui/src/org/eclipse/linuxtools/systemtap/graphing/ui/charts/AbstractChartBuilder.java1
-rw-r--r--valgrind/org.eclipse.linuxtools.valgrind.massif/src/org/eclipse/linuxtools/internal/valgrind/massif/charting/ChartEditor.java1
4 files changed, 16 insertions, 13 deletions
diff --git a/profiling/org.eclipse.linuxtools.dataviewers.charts/src/org/eclipse/linuxtools/internal/dataviewers/charts/view/ChartFactory.java b/profiling/org.eclipse.linuxtools.dataviewers.charts/src/org/eclipse/linuxtools/internal/dataviewers/charts/view/ChartFactory.java
index 4680a9f2b7..028d507131 100755
--- a/profiling/org.eclipse.linuxtools.dataviewers.charts/src/org/eclipse/linuxtools/internal/dataviewers/charts/view/ChartFactory.java
+++ b/profiling/org.eclipse.linuxtools.dataviewers.charts/src/org/eclipse/linuxtools/internal/dataviewers/charts/view/ChartFactory.java
@@ -133,6 +133,7 @@ public final class ChartFactory {
chart.getTitle().setText(title);
chart.getTitle().setForeground(BLACK);
+ chart.setProposedSaveAsFilename(title.replace(' ', '_'));
// this is correct (refers to orientation of x-axis, not bars)
if (horizontal) {
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.graphing.ui/src/org/eclipse/linuxtools/internal/systemtap/graphing/ui/charts/LineChartBuilder.java b/systemtap/org.eclipse.linuxtools.systemtap.graphing.ui/src/org/eclipse/linuxtools/internal/systemtap/graphing/ui/charts/LineChartBuilder.java
index 69d1ffeeb5..2c88e0e322 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.graphing.ui/src/org/eclipse/linuxtools/internal/systemtap/graphing/ui/charts/LineChartBuilder.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.graphing.ui/src/org/eclipse/linuxtools/internal/systemtap/graphing/ui/charts/LineChartBuilder.java
@@ -25,19 +25,19 @@ import org.eclipse.swtchart.LineStyle;
public class LineChartBuilder extends AbstractChartWithAxisBuilder {
- public static final String ID = "org.eclipse.linuxtools.systemtap.graphing.ui.charts.linechartbuilder"; //$NON-NLS-1$
+ public static final String ID = "org.eclipse.linuxtools.systemtap.graphing.ui.charts.linechartbuilder"; //$NON-NLS-1$
- public LineChartBuilder(Composite parent, int style, String title,IAdapter adapter) {
- super(adapter, parent, style, title);
- }
+ public LineChartBuilder(Composite parent, int style, String title, IAdapter adapter) {
+ super(adapter, parent, style, title);
+ }
- @Override
- protected ISeries createChartISeries(int i) {
- ILineSeries series = (ILineSeries) chart.getSeriesSet().
- createSeries(SeriesType.LINE, adapter.getLabels()[i+1]);
- series.setSymbolColor(COLORS[i % COLORS.length]);
- series.setLineColor(COLORS[i % COLORS.length]);
- series.setLineStyle(LineStyle.SOLID);
- return series;
- }
+ @Override
+ protected ISeries createChartISeries(int i) {
+ ILineSeries series = (ILineSeries) chart.getSeriesSet().createSeries(SeriesType.LINE,
+ adapter.getLabels()[i + 1]);
+ series.setSymbolColor(COLORS[i % COLORS.length]);
+ series.setLineColor(COLORS[i % COLORS.length]);
+ series.setLineStyle(LineStyle.SOLID);
+ return series;
+ }
}
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.graphing.ui/src/org/eclipse/linuxtools/systemtap/graphing/ui/charts/AbstractChartBuilder.java b/systemtap/org.eclipse.linuxtools.systemtap.graphing.ui/src/org/eclipse/linuxtools/systemtap/graphing/ui/charts/AbstractChartBuilder.java
index b84751386f..4aa398e918 100644
--- a/systemtap/org.eclipse.linuxtools.systemtap.graphing.ui/src/org/eclipse/linuxtools/systemtap/graphing/ui/charts/AbstractChartBuilder.java
+++ b/systemtap/org.eclipse.linuxtools.systemtap.graphing.ui/src/org/eclipse/linuxtools/systemtap/graphing/ui/charts/AbstractChartBuilder.java
@@ -228,6 +228,7 @@ public abstract class AbstractChartBuilder extends Composite implements IUpdateL
ITitle ctitle = chart.getTitle();
ctitle.setForeground(BLACK);
ctitle.setText(this.title);
+ chart.setProposedSaveAsFilename(this.title);
}
/**
diff --git a/valgrind/org.eclipse.linuxtools.valgrind.massif/src/org/eclipse/linuxtools/internal/valgrind/massif/charting/ChartEditor.java b/valgrind/org.eclipse.linuxtools.valgrind.massif/src/org/eclipse/linuxtools/internal/valgrind/massif/charting/ChartEditor.java
index eee7732d59..2e01d1ba0f 100644
--- a/valgrind/org.eclipse.linuxtools.valgrind.massif/src/org/eclipse/linuxtools/internal/valgrind/massif/charting/ChartEditor.java
+++ b/valgrind/org.eclipse.linuxtools.valgrind.massif/src/org/eclipse/linuxtools/internal/valgrind/massif/charting/ChartEditor.java
@@ -98,6 +98,7 @@ public class ChartEditor extends EditorPart {
control.setBackground(WHITE);
control.getPlotArea().setBackground(LIGHTYELLOW);
+ control.setProposedSaveAsFilename(heapChart.title.substring(0, heapChart.title.indexOf(' ')));
FontData fd = JFaceResources.getDialogFont().getFontData()[0];
fd.setStyle(SWT.BOLD);

Back to the top