Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Register a PreferencePage at runtime?
Register a PreferencePage at runtime? [message #639106] Mon, 15 November 2010 10:37 Go to next message
Jan Kohnert is currently offline Jan KohnertFriend
Messages: 196
Registered: July 2009
Senior Member
Hello,

I want to register and create preference pages at runtime, wthout use of the 'org.eclipse.ui.preferencePages.page' Extensionpoint.
Is this possible? and if yes, how?

Thanks,
Jan
Re: Register a PreferencePage at runtime? [message #639238 is a reply to message #639106] Mon, 15 November 2010 17:42 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You can instantiate your own
org.eclipse.jface.preference.PreferenceDialog.PreferenceDial og(Shell,
PreferenceManager) with your own preference pages.

it won't be hooked up to the standard workbench preference system,
though, which is controlled by a subclass. See
org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.cr eateDialogOn(Shell,
String)

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Register a PreferencePage at runtime? [message #734597 is a reply to message #639238] Sat, 08 October 2011 20:18 Go to previous message
Marco Lopes is currently offline Marco LopesFriend
Messages: 61
Registered: September 2010
Member
Paul Webster wrote on Mon, 15 November 2010 12:42
You can instantiate your own
org.eclipse.jface.preference.PreferenceDialog.PreferenceDial og(Shell,
PreferenceManager) with your own preference pages.

it won't be hooked up to the standard workbench preference system,
though, which is controlled by a subclass. See
org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.cr eateDialogOn(Shell,
String)

PW

--
Paul Webster


Paul,

Can you take a look at this "related" post?
http://www.eclipse.org/forums/index.php/t/237702/

Maybe you can explain that behavior.

Thanks.
Previous Topic:Adding a predefined popup menu to a TreeViewer without an id
Next Topic:JFace PreferenceDialog: Widget Disposed exception the second time
Goto Forum:
  


Current Time: Fri Apr 26 14:42:55 GMT 2024

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

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

Back to the top