use of org.tigris.subversion.subclipse.ui.compare.PropertyCompareInput in project subclipse by subclipse.
the class ComparePropertiesDialog method okPressed.
@Override
protected void okPressed() {
try {
if (fromWorkingCopyButton.getSelection()) {
left = new PropertyCompareLocalResourceNode(fromLocalResource, recursiveButton.getSelection(), null);
} else {
SVNRevision revision = null;
if (fromHeadButton.getSelection()) {
revision = SVNRevision.HEAD;
} else {
revision = new SVNRevision.Number(Long.parseLong(fromRevisionText.getText()));
}
RemoteFolder remoteFolder = new RemoteFolder(repository, new SVNUrl(fromRepositoryText.getText().trim()), revision);
left = new PropertyCompareRemoteResourceNode(remoteFolder, revision, recursiveButton.getSelection(), null);
}
if (toWorkingCopyButton.getSelection()) {
right = new PropertyCompareLocalResourceNode(toLocalResource, recursiveButton.getSelection(), null);
} else {
SVNRevision revision = null;
if (toHeadButton.getSelection()) {
revision = SVNRevision.HEAD;
} else {
revision = new SVNRevision.Number(Long.parseLong(toRevisionText.getText()));
}
RemoteFolder remoteFolder = new RemoteFolder(repository, new SVNUrl(toRepositoryText.getText().trim()), revision);
right = new PropertyCompareRemoteResourceNode(remoteFolder, revision, recursiveButton.getSelection(), null);
}
input = new PropertyCompareInput(left, right, recursiveButton.getSelection());
} catch (Exception e) {
MessageDialog.openError(getShell(), Policy.bind("ComparePropertiesDialog.1"), // $NON-NLS-1$
e.getMessage());
return;
}
super.okPressed();
}
Aggregations