Bug 261662 - interface IEntityStyleProvider pulls in dependency on org.eclipse.ui.workbench
Summary: interface IEntityStyleProvider pulls in dependency on org.eclipse.ui.workbench
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Zest (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-20 10:57 EST by Wolfgang Schell CLA
Modified: 2009-01-29 20:22 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Schell CLA 2009-01-20 10:57:43 EST
Build ID: GEF-zest-sdk-3.5.0M4

Steps To Reproduce:
Download Zest examples, disable dependency to org.eclipse.ui.workbench and run any of the JFace snippets. They will fail with a NoClassDefFoundError, because of missing dependency to IDisposable:

java.lang.NoClassDefFoundError: org/eclipse/ui/services/IDisposable

IEntityStyleProvider is used e.g. in class GraphItemStyler, which in turn is used in class AbstractStylingModelFactory.

More information:
I would like to use Zest in a pure SWT/JFace or even Swing application, which should be possible, as there are working examples even in Zest source code (ok, the SimpleSWTExample needs org.eclipse.core.commands and org.eclipse.equinox.common, but that is just the example). When using JFace viewers, IEntityStyleProvider pulls in a dependency on org.eclipse.ui.services.IDisposable, which is contained in plugin/jar org.eclipse.ui.workbench_<version>.jar. Requiring 4MB of code for a single interface qualifies as a bug in may opinion...
Comment 1 Ian Bull CLA 2009-01-29 20:22:18 EST
Great Catch!!!

Zest is supposed to work in a pure SWT/JFace app, so this is a bug.  Let me see what I can do here.