use of org.jboss.tools.hibernate.ui.diagram.editors.DiagramViewer in project jbosstools-hibernate by jbosstools.
the class DiagramEditPart method refresh.
@Override
public void refresh() {
IFigure layer = getLayer(LayerConstants.PRIMARY_LAYER);
getOrmDiagram().updateWidthAndHeight(layer.getBounds().width, layer.getBounds().height);
double zoom = ((DiagramViewer) ((DefaultEditDomain) getViewer().getEditDomain()).getEditorPart()).getZoom();
getOrmDiagram().setZoom(zoom);
super.refresh();
}
Aggregations