Search in sources :

Example 1 with EditPropertyConflictsWizard

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();
}
Also used : SizePersistedWizardDialog(org.tigris.subversion.subclipse.ui.wizards.SizePersistedWizardDialog) WizardDialog(org.eclipse.jface.wizard.WizardDialog) SizePersistedWizardDialog(org.tigris.subversion.subclipse.ui.wizards.SizePersistedWizardDialog) IResource(org.eclipse.core.resources.IResource) InvocationTargetException(java.lang.reflect.InvocationTargetException) SVNException(org.tigris.subversion.subclipse.core.SVNException) ISVNClientAdapter(org.tigris.subversion.svnclientadapter.ISVNClientAdapter) EditPropertyConflictsWizard(org.tigris.subversion.subclipse.ui.conflicts.EditPropertyConflictsWizard)

Aggregations

InvocationTargetException (java.lang.reflect.InvocationTargetException)1 IResource (org.eclipse.core.resources.IResource)1 WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 SVNException (org.tigris.subversion.subclipse.core.SVNException)1 EditPropertyConflictsWizard (org.tigris.subversion.subclipse.ui.conflicts.EditPropertyConflictsWizard)1 SizePersistedWizardDialog (org.tigris.subversion.subclipse.ui.wizards.SizePersistedWizardDialog)1 ISVNClientAdapter (org.tigris.subversion.svnclientadapter.ISVNClientAdapter)1