Why DiagramPrinter does not take existing DiagramEditPart instance? [message #162149] |
Thu, 22 November 2007 15:19  |
Eclipse User |
|
|
|
Hi,
When printing a diagram, DiagramPrinter calls PrinterHelper to create a
new DiagramEditPart. This is good for headless mode without opening an
editor. However, if editor does open already, why DiagramPrinter can not
simply take existing DiagramEditPart from the editor ? To me, creating a
new DiagramEditPart, its children EditParts and Figures adds lots of
overhead. More than that,the states set in existing editPart instances in
editor will be lost in the newly created editparts for printing.
I want to extend DiagramPrinter to take existing DiagramEditPart if it
exists but DiagramPrinter is internal. I am also afraid GMF runtime does
this way ( create new editparts ) with specific reason.
Any explanation for this will be appreciated.
Li
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04586 seconds