]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/winterwell.markdown/src/winterwell/markdown/commands/Preferences.java
migrated to svn revision 33108
[simantics/platform.git] / bundles / winterwell.markdown / src / winterwell / markdown / commands / Preferences.java
1 package winterwell.markdown.commands;
2
3 import org.eclipse.core.commands.AbstractHandler;
4 import org.eclipse.core.commands.ExecutionEvent;
5 import org.eclipse.core.commands.ExecutionException;
6 import org.eclipse.jface.preference.PreferenceDialog;
7 import org.eclipse.ui.PlatformUI;
8 import org.eclipse.ui.dialogs.PreferencesUtil;
9
10 public class Preferences extends AbstractHandler {
11
12         @Override
13         public Object execute(final ExecutionEvent event) throws ExecutionException {
14                 PreferenceDialog pref = PreferencesUtil.createPreferenceDialogOn(
15                                 PlatformUI.getWorkbench().getDisplay().getActiveShell(),
16                                 "winterwell.markdown.preferences.MarkdownPreferencePage", null, null);
17                 pref.open();
18                 return null;
19         }
20 }