Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to open programmatically my Preference Page?
How to open programmatically my Preference Page? [message #19886] Sat, 06 September 2008 16:02 Go to next message
Eclipse UserFriend
Hello!
I've developed plug-in and defined Preference Page for it. How to open it
programmatically?
Thanks.
Re: How to open programmatically my Preference Page? [message #20013 is a reply to message #19886] Sat, 06 September 2008 21:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark.hewett.gmail.com

Drug Vignera wrote:
> Hello!
> I've developed plug-in and defined Preference Page for it. How to open
> it programmatically?
> Thanks.
>

Perhaps
org.eclipse.ui.dialogs.PreferencesUtil.createPreferenceDialo gOn(Shell,
String, String[], Object) then .open() the returned dialog?
Thanks! But createPreferenceDialogOn, not createPropertyDialogOn [message #20330 is a reply to message #20013] Tue, 09 September 2008 08:57 Go to previous messageGo to next message
Eclipse UserFriend
This works:

PreferenceDialog pref =
PreferencesUtil.createPreferenceDialogOn(window.getShell(),
"myPreferencePage", null, null);
if (pref != null)
pref.open();
Of course, createPreferenceDialogOn [message #20341 is a reply to message #20330] Tue, 09 September 2008 09:03 Go to previous message
Eclipse UserFriend
Ops, it was my fault. createPreferenceDialogOn.
Re: How to open programmatically my Preference Page? [message #578980 is a reply to message #19886] Sat, 06 September 2008 21:01 Go to previous message
Eclipse UserFriend
Originally posted by: mark.hewett.gmail.com

Drug Vignera wrote:
> Hello!
> I've developed plug-in and defined Preference Page for it. How to open
> it programmatically?
> Thanks.
>

Perhaps
org.eclipse.ui.dialogs.PreferencesUtil.createPreferenceDialo gOn(Shell,
String, String[], Object) then .open() the returned dialog?
Thanks! But createPreferenceDialogOn, not createPropertyDialogOn [message #579287 is a reply to message #20013] Tue, 09 September 2008 08:57 Go to previous message
Eclipse UserFriend
This works:

PreferenceDialog pref =
PreferencesUtil.createPreferenceDialogOn(window.getShell(),
"myPreferencePage", null, null);
if (pref != null)
pref.open();
Of course, createPreferenceDialogOn [message #579308 is a reply to message #20330] Tue, 09 September 2008 09:03 Go to previous message
Eclipse UserFriend
Ops, it was my fault. createPreferenceDialogOn.
Previous Topic:Building an update site using PDE Build
Next Topic:Why can't a plug-in see a fragment's additions?
Goto Forum:
  


Current Time: Sat Jun 07 22:31:15 EDT 2025

Powered by FUDForum. Page generated in 0.04993 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top