+ if ( _control_panel.isShowTaxonomyScientificNames() && _control_panel.isShowTaxonomyCommonNames() ) {
+ if ( !ForesterUtil.isEmpty( taxonomy.getScientificName() )
+ && !ForesterUtil.isEmpty( taxonomy.getCommonName() ) ) {
+ if ( getOptions().isAbbreviateScientificTaxonNames()
+ && ( taxonomy.getScientificName().indexOf( ' ' ) > 0 ) ) {
+ abbreviateScientificName( taxonomy.getScientificName(), sb );
+ }
+ else {
+ sb.append( taxonomy.getScientificName() );
+ }
+ sb.append( " (" );
+ sb.append( taxonomy.getCommonName() );
+ sb.append( ") " );
+ }
+ else if ( !ForesterUtil.isEmpty( taxonomy.getScientificName() ) ) {
+ if ( getOptions().isAbbreviateScientificTaxonNames()
+ && ( taxonomy.getScientificName().indexOf( ' ' ) > 0 ) ) {
+ abbreviateScientificName( taxonomy.getScientificName(), sb );
+ }
+ else {
+ sb.append( taxonomy.getScientificName() );
+ }
+ sb.append( " " );
+ }
+ else if ( !ForesterUtil.isEmpty( taxonomy.getCommonName() ) ) {
+ sb.append( taxonomy.getCommonName() );
+ sb.append( " " );
+ }
+ }
+ else if ( _control_panel.isShowTaxonomyScientificNames() ) {
+ if ( !ForesterUtil.isEmpty( taxonomy.getScientificName() ) ) {
+ if ( getOptions().isAbbreviateScientificTaxonNames()
+ && ( taxonomy.getScientificName().indexOf( ' ' ) > 0 ) ) {
+ abbreviateScientificName( taxonomy.getScientificName(), sb );
+ }
+ else {
+ sb.append( taxonomy.getScientificName() );
+ }
+ sb.append( " " );
+ }
+ }
+ else if ( _control_panel.isShowTaxonomyCommonNames() ) {
+ if ( !ForesterUtil.isEmpty( taxonomy.getCommonName() ) ) {
+ sb.append( taxonomy.getCommonName() );
+ sb.append( " " );
+ }
+ }
+ }
+
+ private final String obtainTitleForExtDescNodeData() {
+ return getOptions().getExtDescNodeDataToReturn().toString();
+ }
+
+ final private void openPdbWeb( final PhylogenyNode node ) {
+ final List<Accession> pdb_ids = getPdbAccs( node );
+ if ( ForesterUtil.isEmpty( pdb_ids ) ) {
+ cannotOpenBrowserWarningMessage( "PDB" );
+ return;
+ }
+ final List<String> uri_strs = TreePanelUtil.createUrisForPdbWeb( node, pdb_ids, getConfiguration(), this );
+ if ( !ForesterUtil.isEmpty( uri_strs ) ) {
+ for( final String uri_str : uri_strs ) {
+ try {
+ AptxUtil.launchWebBrowser( new URI( uri_str ),
+ isApplet(),