*
* @param newGraph used to replace existing graph. if null then existing graph is simply redrawn.
*/
public void drawGraph(ReteGraph newGraph) {
LayerManager manager = (LayerManager) getGraphicalViewer().getEditPartRegistry().get( LayerManager.ID );
ConnectionLayer connLayer = (ConnectionLayer) manager.getLayer( LayerConstants.CONNECTION_LAYER );
// Lazy-init model initialization
if ( getGraphicalViewer().getContents() == null ) {
getGraphicalViewer().setContents( getModel() );
}