|
@@ -140,7 +140,7 @@ public class EditPacketSniffer extends JDialog implements Observer {
|
|
|
* Set as new PacketAlgorithm
|
|
|
*/
|
|
|
that.collector.setPacketAlgorithm(p);
|
|
|
- update(null);
|
|
|
+ update(null,null);
|
|
|
} catch (InstantiationException | IllegalAccessException e1) {
|
|
|
JOptionPane.showMessageDialog(that, "Instance creation failed: " + e1.getMessage());
|
|
|
}
|
|
@@ -178,7 +178,7 @@ public class EditPacketSniffer extends JDialog implements Observer {
|
|
|
if(it.hasNext()){
|
|
|
Link linkToBeRemoved = it.next();
|
|
|
captureController.removeLinkFromCollector(collector, linkToBeRemoved);
|
|
|
- update(null);
|
|
|
+ update(null,null);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
@@ -202,12 +202,12 @@ public class EditPacketSniffer extends JDialog implements Observer {
|
|
|
if(it.hasNext()){
|
|
|
SmartDevice deviceToBeRemoved = it.next();
|
|
|
captureController.removeDeviceFromCollector(collector, deviceToBeRemoved);
|
|
|
- update(null);
|
|
|
+ update(null,null);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- JButton btnCreatePacketCollector = new JButton("Create Packet Collector");
|
|
|
+ JButton btnCreatePacketCollector = new JButton("Create/Edit Packet Collector");
|
|
|
btnCreatePacketCollector.addActionListener(new ActionListener() {
|
|
|
public void actionPerformed(ActionEvent e) {
|
|
|
if(mutex)return;
|