Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Dialogs in org.eclipse.ui.workbench JAR
Dialogs in org.eclipse.ui.workbench JAR [message #326844] Wed, 02 April 2008 05:09 Go to next message
Mark Dexter is currently offline Mark DexterFriend
Messages: 324
Registered: July 2009
Senior Member
Hi. I'm not sure if this is the right forum to post this. If not, please
let me know what is.

There was a recent article by Suresh Krishna in Eclipse Zone called
"Discover Eclipse's JFace Dialogs"
( http://eclipse.dzone.com/news/discover-eclipses-jface-dialog ?page=0%2C2),
about some very handy JFace Dialog classes.

Several of these (CheckedTreeSelectionDialog,
ElementListSelectionDialog, ElementTreeSelectionDialog, ListDialog,
ListSelectionDialog, and TwoPaneElementSelector) appear to be found in
the org.eclipse.ui.dialogs package of the org.eclipse.ui.workbench*.jar
file (including in 3.4M6).

I would have thought they would be in the JFace JAR file. Because they
are not, in order to use these in a stand-alone package, one has to
include this extra JAR file, which isn't too bad (once you have figured
out where they are!).

However, to further complicate matters, if you look at the plug-in
dependencies of the org.eclipse.ui.workbench, you get a long list of
over 25. Yet, at least based on some quick tests, it appears you can use
these Dialog classes without all of these other JAR files.

I find this confusing. Are these dialogs intended to be able to be used
in a non-plug-in Java project? If so, would it make sense to move them
either into the JFace JAR or somewhere that didn't have all of these
other org.eclipse.ui.workbench depencencies?

I apologize if I'm missing something basic here. Thanks.
Re: Dialogs in org.eclipse.ui.workbench JAR [message #326943 is a reply to message #326844] Thu, 03 April 2008 13:46 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Mark Dexter wrote:
>
> I would have thought they would be in the JFace JAR file. Because they
> are not, in order to use these in a stand-alone package, one has to
> include this extra JAR file, which isn't too bad (once you have figured
> out where they are!).
>
> [...snip...]
> I find this confusing. Are these dialogs intended to be able to be used
> in a non-plug-in Java project? If so, would it make sense to move them
> either into the JFace JAR or somewhere that didn't have all of these
> other org.eclipse.ui.workbench depencencies?

They ended up in the org.eclipse.ui.workbench project as part of the
org.eclipse.ui split. Maybe they weren't considered general enough to
be added to JFace ... also, they're API, which means that their package
can't change (but jface dialogs are org.eclipse.jface, not org.eclipse.ui).

It's not that some of them couldn't be pushed down to JFace. But they
would need to have workbench level classes/dependencies removed, and it
would probably be for the most general dialog support (distilled to
their most useful essence). Patches are always welcome :-) but would
not be considered now until 3.5.

PW


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


Previous Topic:Questions about Sections and Forms and how to delegate actions to them
Next Topic:"Enum cannot be resolved", "Enum is not generic" compiler errors
Goto Forum:
  


Current Time: Thu Jun 27 20:21:01 GMT 2024

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

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

Back to the top