public SessionIDPanel(SessionIDAnalysis sa) { _sa = sa;
public SessionIDPanel(Framework framework) { _sa = new SessionIDAnalysis(framework); framework.addPlugin(_sa);
    public SessionIDPanel(SessionIDAnalysis sa) {        _sa = sa;        initComponents();                mainTabbedPane.getModel().addChangeListener(new ChangeListener() {            public void stateChanged(ChangeEvent e) {                int selected = mainTabbedPane.getSelectedIndex();                if(mainTabbedPane.getTitleAt(selected).equals("Visualisation")) {                    String name = (String) nameComboBox.getSelectedItem();                    if (_chart == null) {                        _chart = createChart(null);                        visualisationPanel.add(new ChartPanel(_chart));                    }                    if (name == null) {                        return;                    }                    SessionIDDataset sidd = (SessionIDDataset) _idDatasetCache.get(name);                    if (sidd == null) {                        ListModel lm = _sa.getSessionIDList(name);                        sidd = new SessionIDDataset(lm);                        _idDatasetCache.put(name, sidd);                    }                    _chart.getXYPlot().setDataset(sidd);                } else {                    if (_chart != null) {                        _chart.getXYPlot().setDataset(null);                    }                }            }        });        _requestTextPanel = new TextPanel();        _requestTextPanel.setEditable(true);        _requestTextPanel.setBorder(new javax.swing.border.TitledBorder("Request"));        _requestTextPanel.setBytes("GET http://localhost:8080/index.jsp HTTP/1.0".getBytes());                _responsePanel = new ResponsePanel();        _responsePanel.setBorder(new javax.swing.border.TitledBorder("Response"));        _responsePanel.setEditable(false);                conversationSplitPane.setTopComponent(_requestTextPanel);        conversationSplitPane.setBottomComponent(_responsePanel);        nameComboBox.setModel(new ListComboBoxModel(_sa.getSessionIDNames()));        idTable.setModel(new IDTableModel(null));            }