use of com.exalttech.trex.ui.controllers.ImportPcapWizardController in project trex-stateless-gui by cisco-system-traffic-generator.
the class PacketTableView method hanldeImportPcap.
/**
* Handle import pcap
*/
private void hanldeImportPcap() {
try {
// open import dialog
setStreamEditingWindowOpen(true);
Stage owner = (Stage) streamPacketTableView.getScene().getWindow();
DialogWindow importPcapWindow = new DialogWindow("ImportPcapWizard.fxml", " Import Pcap", 60, 80, false, owner);
ImportPcapWizardController importController = (ImportPcapWizardController) importPcapWindow.getController();
importController.initWizard(tabledata.getProfiles(), tabledata.getYamlFileName());
importPcapWindow.show(true);
} catch (Exception ex) {
LOG.error("Error loading pcap file", ex);
}
}
Aggregations