public void openExample ( Object o ) { if ( o instanceof PathLabel ) { PathLabel p = ( PathLabel ) o ; if ( p . path . length == 1 ) openFile ( new File ( p . path [ 0 ] ) ) ; else { // openFile(new File(p.path[0])); openImageSet ( p . path ) ; } } else if ( o instanceof String ) { openFile ( new File ( ( String ) o ) ) ; } else { throw new IllegalArgumentException ( "Unknown example object type. Please override openExample()" ) ; } }
Function that is invoked when an example has been selected