Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Is it really possible to use draw2d without GEF?
Is it really possible to use draw2d without GEF? [message #216122] Mon, 15 May 2006 14:30 Go to next message
Paul E. Keyser is currently offline Paul E. KeyserFriend
Messages: 878
Registered: July 2009
Senior Member
R3.1.1

I've installed GEF (the correct version for my Eclipse-version), and the Help -> Contents sort of
says that draw2d is indep. of GEF, by giving docco on draw2d that preceeds GEF, and which does not
mention GEF. But there is only one article about draw2d-without-GEF (useful as far as it goes, but
it doesn't go very far), and all the examples are full-bore GEF ... and most of the newsgroup
questions that start about being about draw2d get answered with a GEF-based solution ...

thanks,
Paul
Re: Is it really possible to use draw2d without GEF? [message #216247 is a reply to message #216122] Tue, 16 May 2006 15:23 Go to previous messageGo to next message
Steven R. Shaw is currently offline Steven R. ShawFriend
Messages: 128
Registered: July 2009
Senior Member
If you attach to GEF using CVS you can see a bunch of draw2d based examples
in
the org.eclipse.draw2d.examples plugin.

To check-out via CVS:
http://wiki.eclipse.org/index.php/GEF_Developer_FAQ#How_do_I _checkout_GEF_via_CVS.3F

Plugin location:
/cvsroot/tools/org.eclipse.draw2d.examples

-Steve

"Paul Keyser" <rolarenfan@earthlink.net> wrote in message
news:e4a39q$125$1@utils.eclipse.org...
> R3.1.1
>
> I've installed GEF (the correct version for my Eclipse-version), and the
Help -> Contents sort of
> says that draw2d is indep. of GEF, by giving docco on draw2d that preceeds
GEF, and which does not
> mention GEF. But there is only one article about draw2d-without-GEF
(useful as far as it goes, but
> it doesn't go very far), and all the examples are full-bore GEF ... and
most of the newsgroup
> questions that start about being about draw2d get answered with a
GEF-based solution ...
>
> thanks,
> Paul
Re: Is it really possible to use draw2d without GEF? [message #216287 is a reply to message #216247] Tue, 16 May 2006 21:28 Go to previous message
Paul E. Keyser is currently offline Paul E. KeyserFriend
Messages: 878
Registered: July 2009
Senior Member
Hmm -- did that, thanks, and I can see the code, but I get this error in the MANFEST.MF file:

Invalid value for bundle-version attribute for org.eclipse.draw2d (there is no available bundle
compatible with this bundle-version range).

In MANIFEST.MF, I see:
Bundle-Version: 3.2.0.qualifier
Require-Bundle: org.eclipse.draw2d;bundle-version="[3.2.0,4.0.0)"

I'm guessing that I need to change that to:

Bundle-Version: 3.1.1.qualifier
Require-Bundle: org.eclipse.draw2d;bundle-version="[3.1.1,4.0.0)"

But the syntax is unclear to me -- are [ and ) range-indicators, closed and open intervals
respectively? --, and I'm not sure I've done the correct thing; anyway, then I get more ordinary
compiler errors:

The method setSourceOffset(int) is undefined for the type Edge GraphTests.java
org.eclipse.draw2d.examples/src/org/eclipse/draw2d/examples/ graph line 46
(and other places)

The method getPoints() is undefined for the type Edge AbstractGraphDemo.java
org.eclipse.draw2d.examples/src/org/eclipse/draw2d/examples/ graph line 103

Now, I guess this is because the examples are on HEAD, and target Eclipse/GEF 3.2.0 RCNNN; but I can
still read the code.

Thanks -- this looks like it could be quite helpful! Am I right in thinking that SWT is to JFace as
draw2d is to GEF? And will these examples some day be more readily available?

Paul
Previous Topic:GEF - GMF functionality
Next Topic:save as image
Goto Forum:
  


Current Time: Fri Mar 29 00:24:57 GMT 2024

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

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

Back to the top