drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/editors/DRLRuleEditor2.java
public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
        if ( adapter == ZoomManager.class ) {

            if ( getActiveEditor() instanceof ReteViewer ) {
                return reteViewer.getAdapter( adapter );
            } else if ( getActiveEditor() instanceof DRLRuleEditor ) {
                return null;
            }

        } else if ( adapter == ZoomInAction2.class ) {
            return zoomIn;
        } else if ( adapter == ZoomOutAction2.class ) {
            return zoomOut;
        } else if ( adapter == ZoomComboContributionItem.class ) {
            return zitem;
        }

        return textEditor.getAdapter( adapter );
    }
public Object getAdapter(@SuppressWarnings("rawtypes") Class adapter) {
        if ( adapter == ZoomManager.class ) {

            if ( getActiveEditor() instanceof ReteViewer ) {
                return reteViewer.getAdapter( adapter );
            } else if ( getActiveEditor() instanceof DRLRuleEditor ) {
                return null;
            }

        } else if ( adapter == ZoomInAction2.class ) {
            return zoomIn;
        } else if ( adapter == ZoomOutAction2.class ) {
            return zoomOut;
        } else if ( adapter == ZoomComboContributionItem.class ) {
            return zitem;
        }

        return textEditor.getAdapter( adapter );
    }
public Object getAdapter ( @ SuppressWarnings ( "rawtypes" ) Class adapter ) { if ( adapter == ZoomManager . class ) { if ( getActiveEditor ( ) instanceof ReteViewer ) { return reteViewer . getAdapter ( adapter ) ; } else if ( getActiveEditor ( ) instanceof DRLRuleEditor ) { return null ; } } else if ( adapter == ZoomInAction2 . class ) { return zoomIn ; } else if ( adapter == ZoomOutAction2 . class ) { return zoomOut ; } else if ( adapter == ZoomComboContributionItem . class ) { return zitem ; } return textEditor . getAdapter ( adapter ) ; }
/* (non-Javadoc)
@see org.eclipse.ui.part.MultiPageEditorPart#getAdapter(java.lang.Class)
/ * ( non - Javadoc )