Hi Daryle,

Burnside, Daryle wrote:

The company that I work for is interested in creating a WYSIWYG style of editor for Eclipse 3.0.*
We currently have an internal Java Web start application based on Batik/Swing and are looking to move this to a Batik/SWT-Eclipse Framework (still to be delivered over Web start....)


Is anyone aware of any such attempts at this sort of Eclipse editor?

There were some rumblings a while ago but I haven't heard anything recently. It's possible Dirk's plugin has filled the need.

or is this impractical / impossible?

Well, it is certainly possible. I don't even think it would be particularly impractical. There would be two major pieces as I see it. First an SWT version of the JSVGCanvas, and second what ever WYSIWYG stuff you need on top of it.

   I'll only talk about the first since I don't know anything
about your WYSIWYG stuff.  Internally the JSVGCanvas draws everything
to an offscreen BufferedImage, the offscreen image is then used to
refresh the display as needed (like when another window passes over
the top).  So you would need an "efficient" way to get a BufferedImage
displayed in the SWT widget.

   The rest of it would be essentially cut/paste and modify the
current canvas code (that handles updates, user events, etc) so it
is plugged into the SWT facilities for these things.  These aren't
small classes so this isn't trivial but you do have a good working
model to use as your basis.

   You might have to give up some display flexibility for example
the 'paintingTransform' which is how we implement the interactive
pan/zoom/rotate as it is likely that SWT wouldn't support it.

   BTW if you are hoping to get a significant speed bump by doing
this I wouldn't hold my breath as currently getting the image on
the screen is one of the smaller pieces of work, when Batik slows
down it is because it is rendering lots of content and that wouldn't
change one lick between Swing/SWT.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to