private void updateSIFTypeButtonText() {
   if (selectedTypes.isEmpty()) {
     sifTypeButton.setText("Select interaction type");
   } else {
     sifTypeButton.setText(
         selectedTypes.size() + " type" + (selectedTypes.size() > 1 ? "s" : "") + " selected");
   }
 }
  protected void setComboBoxes() {
    // Something was changed in the row.
    //
    final Map<String, Integer> fields = new HashMap<String, Integer>();

    // Add the currentMeta fields...
    fields.putAll(inputFields);

    Set<String> keySet = fields.keySet();
    java.util.List<String> entries = new ArrayList<String>(keySet);

    String[] fieldNames = entries.toArray(new String[entries.size()]);

    Const.sortStrings(fieldNames);
    colinf[0].setComboValues(fieldNames);
  }
 protected IInstallableUnit getSelectedIU() {
   java.util.List<IInstallableUnit> units = ElementUtils.elementsToIUs(getSelectedElements());
   if (units.size() == 0) return null;
   return units.get(0);
 }