Thomas Maier

Show:

What's happening?

  • Followup: RE: Image export for TreeViewers possible?

    While I was digging on http://www.eclipse.org/swt/snippets/#gc and seeing your code snippet there ;) and after having thought about it for another minute, I guess my idea cannot work, because SWT uses native widgets instead of painting them itself. Which is the whole point of SWT of course :). So copying the bitmap is probably the only way to go if you don't want to use a screenshot utility or...

    2009-11-02 20:01:01 UTC in Janus - Java'n'UML Simultanously

  • Followup: RE: Image export for TreeViewers possible?

    Sorry for the late reply, I had to hack other projects. Plus I preferred to get at least a _bit_ social on the weekend :). Good to know it works on 3.5.1, thanks! If you use copyArea, however, of course all you get is a bitmap. I was hoping for something like "tell some SWT paint method to use some sort of Graphics2D adapter and paint the editor contents" to get at least some...

    2009-11-02 19:41:46 UTC in Janus - Java'n'UML Simultanously

  • Followup: RE: Image export for TreeViewers possible?

    Hi Thomas, good question. Thinking about it for a minute, my first answer is "probably not". I'd guess the tree views use SWT (or JFace, for that matter) tree widgets. The Image Export Plugin, however, uses org.eclipse.draw2d.Graphics objects to redirect the (Draw2D) standard IFigure painting. However, I haven't really hacked a TreeView-like editor, yet, so I'll dive into the GEF...

    2009-10-30 14:09:02 UTC in Janus - Java'n'UML Simultanously

About Me

  • 2004-03-09 (6 years ago)
  • 993750
  • thomas-m (My Site)
  • Thomas Maier

Send me a message