use of org.eclipse.zest.core.viewers.GraphViewer in project hale by halestudio.
the class TypeCellSelectionDialog method createViewer.
/**
* @see eu.esdihumboldt.hale.ui.util.selector.AbstractViewerSelectionDialog#createViewer(org.eclipse.swt.widgets.Composite)
*/
@Override
protected GraphViewer createViewer(Composite parent) {
GraphViewer viewer = new GraphViewer(parent, SWT.BORDER);
// disable node movement
viewer.getGraphControl().getLightweightSystem().setEventDispatcher(new SWTEventDispatcher() {
/**
* @see org.eclipse.draw2d.SWTEventDispatcher#dispatchMouseMoved(org.eclipse.swt.events.MouseEvent)
*/
@Override
public void dispatchMouseMoved(MouseEvent me) {
// ignore
}
});
return viewer;
}
Aggregations