*/
private void openPropertiesDialog() {
PreferenceManager manager = new PreferenceManager();
final String chartTitle = "Chart";
PreferenceNode chartNode = new PreferenceNode(chartTitle);
chartNode.setPage(new ChartPage(this, resources, chartTitle));
manager.addToRoot(chartNode);
final String legendTitle = "Legend";
PreferenceNode legendNode = new PreferenceNode(legendTitle);
legendNode.setPage(new LegendPage(this, resources, legendTitle));
manager.addTo(chartTitle, legendNode);
final String xAxisTitle = "X Axis";
PreferenceNode xAxisNode = new PreferenceNode(xAxisTitle);
xAxisNode
.setPage(new AxisPage(this, resources, Direction.X, xAxisTitle));
manager.addTo(chartTitle, xAxisNode);
final String gridTitle = "Grid";
PreferenceNode xGridNode = new PreferenceNode(gridTitle);
xGridNode
.setPage(new GridPage(this, resources, Direction.X, gridTitle));
manager.addTo(chartTitle + "." + xAxisTitle, xGridNode);
final String tickTitle = "Tick";
PreferenceNode xTickNode = new PreferenceNode(tickTitle);
xTickNode.setPage(new AxisTickPage(this, resources, Direction.X,
tickTitle));
manager.addTo(chartTitle + "." + xAxisTitle, xTickNode);
final String yAxisTitle = "Y Axis";
PreferenceNode yAxisNode = new PreferenceNode(yAxisTitle);
yAxisNode
.setPage(new AxisPage(this, resources, Direction.Y, yAxisTitle));
manager.addTo(chartTitle, yAxisNode);
PreferenceNode yGridNode = new PreferenceNode(gridTitle);
yGridNode
.setPage(new GridPage(this, resources, Direction.Y, gridTitle));
manager.addTo(chartTitle + "." + yAxisTitle, yGridNode);
PreferenceNode yTickNode = new PreferenceNode(tickTitle);
yTickNode.setPage(new AxisTickPage(this, resources, Direction.Y,
tickTitle));
manager.addTo(chartTitle + "." + yAxisTitle, yTickNode);
final String seriesTitle = "Series";
PreferenceNode plotNode = new PreferenceNode(seriesTitle);
plotNode.setPage(new SeriesPage(this, resources, seriesTitle));
manager.addTo(chartTitle, plotNode);
final String labelTitle = "Label";
PreferenceNode labelNode = new PreferenceNode(labelTitle);
labelNode.setPage(new SeriesLabelPage(this, resources, labelTitle));
manager.addTo(chartTitle + "." + seriesTitle, labelNode);
PreferenceDialog dialog = new PreferenceDialog(getShell(), manager);
dialog.create();
dialog.getShell().setText("Properties");