drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/editors/ZoomOutAction2.java
public void setZoomManager(ZoomManager manager) {

        if ( zoomManager != null ) {
            zoomManager.removeZoomListener( this );
        }

        zoomManager = manager;

        if ( zoomManager != null ) {
            zoomManager.addZoomListener( this );
        }

    }
public void setZoomManager(ZoomManager manager) {

        if ( zoomManager != null ) {
            zoomManager.removeZoomListener( this );
        }

        zoomManager = manager;

        if ( zoomManager != null ) {
            zoomManager.addZoomListener( this );
        }

    }
public void setZoomManager ( ZoomManager manager ) { if ( zoomManager != null ) { zoomManager . removeZoomListener ( this ) ; } zoomManager = manager ; if ( zoomManager != null ) { zoomManager . addZoomListener ( this ) ; } }
Replaces existing zoomManager with the new one.

Implementation is null-safe.

@param newManager new zoom manager
Replaces existing zoomManager with the new one .