public Context getContext() { String selected = (String) contextComboBox.getSelectedItem(); for (Context _con : contexts) { if (_con.getName().equals(selected)) return _con; } return null; }
public FilterPackage getPackage() { String selected = (String) packageComboBox.getSelectedItem(); for (FilterPackage _pkg : packages) { if (_pkg.getName().equals(selected)) return _pkg; } return null; }