Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
ale  is currently offline ale
Messages: 1
Registered: June 2011
Junior Member
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
Brian de Alwis is currently offline Brian de Alwis
Messages: 242
Registered: July 2009
Senior Member
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:Dependency Injection - JSR-299?
Goto Forum:
  


Current Time: Mon Jul 28 22:50:42 EDT 2014

Powered by FUDForum. Page generated in 0.01659 seconds