JButton selectButton = new JButton(Constant.messages.getString("all.button.select"));
selectButton.setIcon(new ImageIcon(View.class.getResource("/resource/icon/16/094.png"))); // Globe icon
selectButton.addActionListener(new java.awt.event.ActionListener() {
@Override
public void actionPerformed(java.awt.event.ActionEvent e) {
NodeSelectDialog nsd = new NodeSelectDialog(View.getSingleton().getMainFrame());
SiteNode node = null;
try {
node = Model.getSingleton().getSession().getSiteTree().findNode(new URI(getUrlField().getText(), false));
} catch (Exception e2) {
// Ignore
}
node = nsd.showDialog(node);
if (node != null && node.getHistoryReference() != null) {
try {
getUrlField().setText(node.getHistoryReference().getURI().toString());
} catch (Exception e1) {
// Ignore