call PreferencePage(s) from MultipageDialog [message #1724] |
Sat, 18 July 2009 06:25  |
Eclipse User |
|
|
|
Originally posted by: martin.zehetner.fh-hagenberg.at
Hello,
Short question:
Is it possible to call the PreferenceCommand, which is added
automatically to the Commands (when org.eclipse.ui.preferencePages
Extenision is added), programatically???
My Application "runs" in a MultipageDialog ... and i wand to add a
command which opens the preferences Dialog.
Thanks,
Martin
|
|
|
Re: call PreferencePage(s) from MultipageDialog [message #479011 is a reply to message #1724] |
Fri, 07 August 2009 21:01  |
Eclipse User |
|
|
|
Yes, it is possible to invoke the Preferences dialog programatically. There
is an API in the workbench. Try:
import org.eclipse.jface.preference.PreferenceDialog;
import org.eclipse.ui.dialogs.PreferencesUtil;
referenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(null,
currentPrefPage, null, null);
dialog.open();
where currentPrefPage is the id of the preference page you wan to display.
"Martin Zehetner" <martin.zehetner@fh-hagenberg.at> wrote in message
news:h3s7vj$6v3$1@build.eclipse.org...
> Hello,
>
> Short question:
> Is it possible to call the PreferenceCommand, which is added automatically
> to the Commands (when org.eclipse.ui.preferencePages Extenision is added),
> programatically???
>
> My Application "runs" in a MultipageDialog ... and i wand to add a command
> which opens the preferences Dialog.
>
> Thanks,
> Martin
|
|
|
Re: call PreferencePage(s) from MultipageDialog [message #563610 is a reply to message #1724] |
Fri, 07 August 2009 21:01  |
Eclipse User |
|
|
|
Yes, it is possible to invoke the Preferences dialog programatically. There
is an API in the workbench. Try:
import org.eclipse.jface.preference.PreferenceDialog;
import org.eclipse.ui.dialogs.PreferencesUtil;
referenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(null,
currentPrefPage, null, null);
dialog.open();
where currentPrefPage is the id of the preference page you wan to display.
"Martin Zehetner" <martin.zehetner@fh-hagenberg.at> wrote in message
news:h3s7vj$6v3$1@build.eclipse.org...
> Hello,
>
> Short question:
> Is it possible to call the PreferenceCommand, which is added automatically
> to the Commands (when org.eclipse.ui.preferencePages Extenision is added),
> programatically???
>
> My Application "runs" in a MultipageDialog ... and i wand to add a command
> which opens the preferences Dialog.
>
> Thanks,
> Martin
|
|
|
Powered by
FUDForum. Page generated in 0.06853 seconds