if(sls != null) { levelMax = Math.max(levelMax, sls.getStartLevel()); }
  void updateLevelItems() {    StartLevel sls =       (StartLevel)slTracker.getService();    levelItems = new String[levelMax - levelMin + 1];         Bundle[] bundles = Activator.getTargetBC().getBundles();        Object selObj = null;    for(int i = levelMin; i <= levelMax; i++) {      StringBuffer sb = new StringBuffer();      int level = i;      boolean bOverflow = false;      for(int j = 0; j < bundles.length; j++) {	try {	  if(sls != null && sls.getBundleStartLevel(bundles[j]) == level) {	    if(sb.length() > 0) {	      sb.append(", ");	    }	    String name = Util.getBundleName(bundles[j]);	    //	      Text.replace(Util.shortLocation(bundles[j].getLocation()), ".jar", "");	    sb.append(name);	  }	} catch (IllegalArgumentException e) {	}      }      String txt = sb.toString();      int maxLen = 50;      if(txt.length() > maxLen) {	txt = txt.substring(0, maxLen) + "...";      }      levelItems[i - levelMin] = i + " " + txt;      if(i == sls.getStartLevel()) {	selObj = levelItems[i - levelMin];      }    }    if(levelBox != null) {      DefaultComboBoxModel model = new DefaultComboBoxModel(levelItems);      /*      if(selObj != null) {	System.out.println("model with selected " + selObj);	model.setSelectedItem(selObj);      }      */      levelBox.setModel(model);    }  }