protected void fetchPrjFiles(){
 
	  File f = new File("./bin/dbmscontrol");
	  File[] fileArray = f.listFiles();
 
	  controlDialog.setjCombo_ControlDiaServerTypeSel("kein");
 
	  for(int i = 0; i < fileArray.length; i++) {
	    if(!fileArray[i].getName().endsWith(".class"))
	      continue;
 
	    try  {
	      String className = fileArray[i].getName();
	      className = className.substring(0, className.indexOf('.'));
 
	      Class superclass = Class.forName("dbmscontrol." + className).getSuperclass();
	      if(superclass.getName().contains("DBHandler")) {
	        controlDialog.setjCombo_ControlDiaServerTypeSel(className);
	      }
	    }
	    catch(Exception ex) {
	    }
	  }
 
	}
java/klassen_die_von_x_erben.txt · Zuletzt geändert: 2011/08/16 14:36 von blutgerinsel
 
Falls nicht anders bezeichnet, ist der Inhalt dieses Wikis unter der folgenden Lizenz veröffentlicht: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki