Bug 213041 - org.eclipse.draw2d.examples is not packaged
Summary: org.eclipse.draw2d.examples is not packaged
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Draw2d (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-14 11:33 EST by Anthony Hunter CLA
Modified: 2011-01-21 04:33 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 Anthony Hunter CLA 2007-12-14 11:33:50 EST
org.eclipse.draw2d.examples has a bunch of good example snippets, but they are not packaged and are not available as a download.

We should look at creating something like the SWT Examples.
Comment 1 Alexander Nyßen CLA 2010-12-28 05:09:51 EST
Anthony, I would tend to not "package" the examples, as they are indeed all snippets that can be easily executed as standalone applications. 

Instead, I would propose to move all the snippets from org.eclipse.draw2d.examples to a new Java project (which I would call org.eclipse.draw2d.snippets) in order to isolate them from the sandbox and bug demo code that is bundled in org.eclipse.draw2d.examples as well (the package hierarchies could also be adopted a bit, to better group snippets that are topic-related). I would then document all snippets (in the GEF wiki) in the same manner as it is done for the SWT snippets, i.e. by referencing the code via cvs web browser. This way, one could easily browse the snippets and copy/paste interesting ones directly into the local workspace to execute them (if they got packaged as part of the GEF SDK, this would be more complicated, I think).

I would further propose to introduce a sandbox folder to the GEF cvs, and to move the (remaining) org.eclipse.draw2d.examples project to it. The eDiagram and digraph examples (which are no officially maintained reference examples) could also be moved there.
Comment 2 Alexander Nyßen CLA 2011-01-21 04:33:40 EST
CaretExample, TestBorder, and TextSurroundingFigureExample, which are bundled by the draw2d examples, are still provided under the terms of the CPL and should probably be updated to EPL. According to ohloh statistics, these are the only source files that still provide a license different to the EPL.