private void browsePerformed() {
String path = url.getValue();
if (path.startsWith("./~")) {
path = path.substring(3);
}
final NodeBrowserWindow nodeBrowserWindow = new NodeBrowserWindow(
Nodes.getByPath(path));
nodeBrowserWindow.setTitle(I18N.get("Browser"));
nodeBrowserWindow.addCloseListener(new ActionListener() {
public void actionPerformed(Event event) {
if (nodeBrowserWindow.getSelectedNode() != null) {
url.setText("./~"
+ nodeBrowserWindow.getSelectedNode().getPath());
}
}
});
getRoot().appendChild(nodeBrowserWindow);
}