Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » replace draw2d impossible?
replace draw2d impossible? [message #222000] Wed, 23 August 2006 17:22 Go to next message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 313
Registered: July 2009
Senior Member
Hi,

I'm trying to replace draw2d with my own implementation. I've already
managed to get a running application with an initial model, that is
some graphical representations (figures) are displayed, using the
original gef and a draw2d replacement. Currently, my draw2d replacement
is using the original draw2d and replaces "only" all figure related
stuff (i.e. I have a completely new implementation of the IFigure
interface), but when it comes to event handling, it seems impossible to
extend draw2d classes.

E.g. de.fernuni.draw3d.MouseEvent defines a constructor with parameters
and package visibility. Thus it is impossible to inherit from
MouseEvent as it is impossible to create MouseEvent instances from
outside draw2d.
Since I need to rewrite the EventDispatcher (since my figures are based
on some AWT stuff), I need to rewrite (or at least inherit from)
SWTEventDispatcher and DomainEventDistpatcher respectivley. I'm
wondering why there is an abstract class "EventDispatcher" when it
seems impossible to replace SWTEventDispatcher.

Does anybody ever has replaced or extended draw2d in such a way as I
described above? Or do I have to copy and paste all draw2d and gef
sources and build my own branch of gef?

Jens
Re: replace draw2d impossible? [message #222007 is a reply to message #222000] Wed, 23 August 2006 17:25 Go to previous message
Jens von Pilgrim is currently offline Jens von PilgrimFriend
Messages: 313
Registered: July 2009
Senior Member
Uups! "de.fernuni.draw3d" is actually my draw2d replacement.
org.eclipse.draw2d.MouseEvent is the original class.

Jens
Previous Topic:Problems in setInput
Next Topic:UNDO 2 times
Goto Forum:
  


Current Time: Fri Apr 26 03:06:42 GMT 2024

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

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

Back to the top