public static HelpViewBase createView ( HelpViewer viewer , HelpViewType viewType ) { Class < ? extends HelpViewBase > viewClass = viewType == null ? null : getViewClass ( viewType ) ; if ( viewClass == null ) { return null ; } try { return viewClass . getConstructor ( HelpViewer . class , HelpViewType . class ) . newInstance ( viewer , viewType ) ; } catch ( Exception e ) { throw MiscUtil . toUnchecked ( e ) ; } }
Creates a new tab for the specified view type .