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));