private void updateSystemLists() { if (systems != null) { DefaultListModel<String> model = (DefaultListModel<String>) systemList.getModel(); model.clear(); for (SoftwareSystem ss : systems) { model.addElement(ss.getName()); } } }
private void edit(SoftwareSystem ss) { SystemCreationDialog scd = new SystemCreationDialog(ss, this, true); scd.run(); SoftwareSystem created = scd.getCreated(); if (created != null) { Client.getInstance().editSoftwareSystem(ss.getName(), created); setSystems(Client.getInstance().getSoftwareSystems()); } }