I`m inside of an Wizard and I want to calculate the width and the height
of the whole diagram.
I already found out, that I can calculate the size with this method:
org.eclipse.gmf.runtime.diagram.ui.render.clipboard.DiagramGenerator.calculateImageRectangle(java.util.List
editparts)
But for this method I need the list of all editparts. And for that List
I need somehow the instance of the diagram.
The only thing what I have in the wizard is the workbench. I tried
something like
workbench.getActiveWorkbenchWindow().getActivePage().getActiveEditor()
but that led nowhere.
I also tried ShapesDiagram.eINSTANCE, but this don`t work.
EditorPackage.eINSTANCE.getShapesDiagram() doesn`t return the right
thing...