menuItemSpider.setText("Spider...");
menuItemSpider.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
JTree siteTree = getView().getSiteTreePanel().getTreeSite();
SiteNode node = (SiteNode) siteTree.getLastSelectedPathComponent();
HttpMessage msg = null;
if (node == null) {
getView().showWarningDialog("You need to visit the website via a browser first and select a URL/folder/node in the 'Sites' panel displayed.");
return;
}
setStartNode(node);
if (node.isRoot()) {
showDialog("All sites will be crawled");
} else {
try {
msg = node.getHistoryReference().getHttpMessage();
} catch (Exception e1) {
return;
}
String tmp = msg.getRequestHeader().getURI().toString();
showDialog(tmp);