MCPcopy Create free account
hub / github.com/beanshell/beanshell / driveToClass

Method driveToClass

src/bsh/util/ClassBrowser.java:468–486  ·  view source on GitHub ↗
( String classname )

Source from the content-addressed store, hash-verified

466
467 // fully qualified classname
468 public void driveToClass( String classname ) {
469 String [] sa = BshClassPath.splitClassname( classname );
470 String packn = sa[0];
471 String classn = sa[1];
472
473 // Do we have the package?
474 if ( classPath.getClassesForPackage(packn).size()==0 )
475 return;
476
477 ptree.setSelectedPackage( packn );
478
479 for(int i=0; i< classesList.length; i++) {
480 if ( classesList[i].equals(classn) ) {
481 classlist.setSelectedIndex(i);
482 classlist.ensureIndexIsVisible(i);
483 break;
484 }
485 }
486 }
487
488 public void toFront() {
489 if ( frame != null )

Callers 1

valueChangedMethod · 0.95

Calls 5

splitClassnameMethod · 0.95
getClassesForPackageMethod · 0.80
setSelectedPackageMethod · 0.80
sizeMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected