@Override public void createPartControl(final Composite parent) { exportAction = new ExportToggle(); Action updateToggleAction = new UpdateToggle().action(this); Action loadFileAction = new LoadFile().action(this); add(updateToggleAction, ISharedImages.IMG_ELCL_SYNCED); add(loadFileAction, ISharedImages.IMG_OBJ_FILE); add(exportAction.action(this), ISharedImages.IMG_ETOOL_PRINT_EDIT); parent.setLayout(new GridLayout(1, true)); initResourceLabel(parent, loadFileAction, updateToggleAction); super.createPartControl(parent); getCanvas().setLayoutData(new GridData(GridData.FILL_BOTH)); Scene scene = getViewer().getScene(); // specify stylesheet scene.getStylesheets().add(STYLES_CSS_FILE); }
@Override public void setGraph(Graph graph) { super.setGraph(new DotToZestGraphConverter(graph).convert()); }