Exemple #1
0
 private void updateSystemLists() {
   if (systems != null) {
     DefaultListModel<String> model = (DefaultListModel<String>) systemList.getModel();
     model.clear();
     for (SoftwareSystem ss : systems) {
       model.addElement(ss.getName());
     }
   }
 }
Exemple #2
0
 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());
   }
 }