Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » org.eclipse.ui.preferencePages example
org.eclipse.ui.preferencePages example [message #685791] Mon, 20 June 2011 01:48 Go to next message
Eclipse UserFriend
Hello, where i can find an example of how to use the org.eclipse.ui.preferencePages extension.

Thanks.
Re: org.eclipse.ui.preferencePages example [message #688334 is a reply to message #685791] Fri, 24 June 2011 09:16 Go to previous message
Eclipse UserFriend
There are a few things from org.eclipse.ui.* that haven't been ported to e4, including opening a preference dialog. I've attached a simple handler I use within Kizby to open a basic preferences dialog. This dialog doesn't include the search filter that's seen in the Eclipse UI as that's also under org.eclipse.ui.*. You'll also need to copy out org.eclipse.ui.preferences.ScopedPreferenceStore.

To use it, create a handler and bind it to your preferences command. Ideally you should continue to use the Eclipse 3.x command IDs when possible ("org.eclipse.ui.window.preferences") as it will be automatically wired up by platform-specific mapping code (e.g., org.eclipse.e4.ui.workbench.renderers.swt.cocoa will automatically bind the command to the "⌘-," keybinding on MacOS X).

Brian.
Previous Topic:Problem with command handlers
Next Topic:XWT - ATL
Goto Forum:
  


Current Time: Sun Jul 13 11:52:32 EDT 2025

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

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

Back to the top