port.setHorizontalRangeModel( rModel ); port.setVerticalRangeModel( rModel );
port.setHorizontalRangeModel( new RulerDefaultRangeModel(rModel) ); port.setVerticalRangeModel( new RulerDefaultRangeModel(rModel) );
	private void disposeRulerViewer( GraphicalViewer viewer )	{		if ( viewer == null )			return;		/*		 * There's a tie from the editor's range model to the RulerViewport (via		 * a listener) to the RulerRootEditPart to the RulerViewer. Break this		 * tie so that the viewer doesn't leak and can be garbage collected.		 */		RangeModel rModel = new DefaultRangeModel( );		Viewport port = ( (FigureCanvas) viewer.getControl( ) ).getViewport( );		port.setHorizontalRangeModel( rModel );		port.setVerticalRangeModel( rModel );		rulerEditDomain.removeViewer( viewer );		viewer.getControl( ).dispose( );	}