1 package org.simantics.charts.editor;
3 import org.eclipse.jface.action.Action;
4 import org.eclipse.jface.preference.PreferenceDialog;
5 import org.eclipse.jface.window.IShellProvider;
6 import org.eclipse.ui.dialogs.PreferencesUtil;
9 * @author Tuukka Lehtonen
11 public class ChartPreferencesAction extends Action {
13 private static final String CHART_DEFAULTS_PREF_PAGE_ID = "org.simantics.charts.defaults"; //$NON-NLS-1$
14 private static final String CHART_PREF_PAGE_ID = "org.simantics.charts.pref"; //$NON-NLS-1$
15 private static final String CSV_PREF_PAGE_ID = "org.simantics.modeling.csv.preferences"; //$NON-NLS-1$
17 private IShellProvider shell;
19 public ChartPreferencesAction(IShellProvider shell) {
20 super(Messages.ChartPreferencesAction_ChartPreferences);
26 PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(
31 CHART_DEFAULTS_PREF_PAGE_ID,