use of org.jetbrains.idea.svn.dialogs.RepositoryTreeNode in project intellij-community by JetBrains.
the class CopyOptionsDialog method update.
private void update() {
RepositoryTreeNode baseNode = myBrowser.getSelectedNode();
if (baseNode == null) {
myTargetURL.setText("");
getOKAction().setEnabled(false);
return;
}
SVNURL baseURL = baseNode.getURL();
String name = myNameField.getText();
if (name == null || "".equals(name)) {
getOKAction().setEnabled(false);
return;
}
try {
baseURL = baseURL.appendPath(myNameField.getText(), false);
} catch (SVNException e) {
//
getOKAction().setEnabled(false);
return;
}
myTargetURL.setText(baseURL.toString());
getOKAction().setEnabled(!myURL.toString().equals(myTargetURL.getText()));
}
Aggregations