use of org.tigris.subversion.subclipse.ui.conflicts.EditPropertyConflictsWizard in project subclipse by subclipse.
the class EditPropertyConflictsAction method execute.
protected void execute(final IAction action) throws InvocationTargetException, InterruptedException {
error = null;
BusyIndicator.showWhile(Display.getDefault(), new Runnable() {
public void run() {
IResource resource = getSelectedResources()[0];
svnResource = SVNWorkspaceRoot.getSVNResourceFor(resource);
ISVNClientAdapter client = null;
try {
conflictSummary = PropertyConflict.getConflictSummary(svnResource);
propertyConflicts = PropertyConflict.getPropertyConflicts(svnResource);
client = svnResource.getRepository().getSVNClient();
remoteProperties = client.getProperties(svnResource.getUrl(), svnResource.getRevision(), svnResource.getRevision());
} catch (Exception e) {
error = e;
} finally {
svnResource.getRepository().returnSVNClient(client);
}
}
});
if (error != null) {
handle(error);
return;
}
EditPropertyConflictsWizard wizard = new EditPropertyConflictsWizard(svnResource, conflictSummary, propertyConflicts, remoteProperties, getTargetPart());
WizardDialog dialog = new SizePersistedWizardDialog(Display.getDefault().getActiveShell(), wizard, // $NON-NLS-1$
"EditPropertyConflicts");
dialog.open();
}
Aggregations