use of org.whole.lang.e4.ui.editparts.RootEditPart in project whole by wholeplatform.
the class E4GraphicalViewer method invalidateTree.
protected void invalidateTree() {
RootEditPart rootPart = (RootEditPart) super.getRootEditPart();
rootPart.getFigure().invalidateTree();
rootPart.getFigure().validate();
getFigureCanvas().getViewport().invalidateTree();
getFigureCanvas().getViewport().validate();
}
use of org.whole.lang.e4.ui.editparts.RootEditPart in project whole by wholeplatform.
the class E4GraphicalViewer method createRootEditPart.
protected RootEditPart createRootEditPart() {
RootEditPart rootEditPart = new RootEditPart();
List<String> levels = new ArrayList<String>(3);
levels.add(ZoomManager.FIT_ALL);
levels.add(ZoomManager.FIT_WIDTH);
levels.add(ZoomManager.FIT_HEIGHT);
ZoomManager zoomManager = rootEditPart.getZoomManager();
zoomManager.setZoomLevelContributions(levels);
zoomManager.setZoomAnimationStyle(ZoomManager.ANIMATE_ZOOM_IN_OUT);
return rootEditPart;
}
Aggregations