Lines 49-55
Link Here
|
49 |
private PatchFileCreationOptionsPage optionsPage; |
49 |
private PatchFileCreationOptionsPage optionsPage; |
50 |
|
50 |
|
51 |
private IStructuredSelection selection; |
51 |
private IStructuredSelection selection; |
52 |
private IResource resource; |
52 |
private IResource[] resources; |
53 |
|
53 |
|
54 |
/** |
54 |
/** |
55 |
* Page to select a patch file. Overriding validatePage was necessary to allow |
55 |
* Page to select a patch file. Overriding validatePage was necessary to allow |
Lines 442-451
Link Here
|
442 |
} |
442 |
} |
443 |
// end of PatchFileCreationOptionsPage |
443 |
// end of PatchFileCreationOptionsPage |
444 |
|
444 |
|
445 |
public GenerateDiffFileWizard(IStructuredSelection selection, IResource resource) { |
445 |
public GenerateDiffFileWizard(IStructuredSelection selection, IResource[] resources) { |
446 |
super(); |
446 |
super(); |
447 |
this.selection = selection; |
447 |
this.selection = selection; |
448 |
this.resource = resource; |
448 |
this.resources = resources; |
449 |
setWindowTitle(Policy.bind("GenerateCVSDiff.title")); //$NON-NLS-1$ |
449 |
setWindowTitle(Policy.bind("GenerateCVSDiff.title")); //$NON-NLS-1$ |
450 |
initializeDefaultPageImageDescriptor(); |
450 |
initializeDefaultPageImageDescriptor(); |
451 |
} |
451 |
} |
Lines 520-531
Link Here
|
520 |
return false; |
520 |
return false; |
521 |
} |
521 |
} |
522 |
} |
522 |
} |
523 |
getContainer().run(true, true, new GenerateDiffFileOperation(resource, file, false, optionsPage.getOptions(), getShell())); |
523 |
getContainer().run(true, true, new GenerateDiffFileOperation(resources, file, false, optionsPage.getOptions(), getShell())); |
524 |
if(type==mainPage.WORKSPACE) { |
524 |
if(type==mainPage.WORKSPACE) { |
525 |
ws.getParent().refreshLocal(IResource.DEPTH_ONE, null); |
525 |
ws.getParent().refreshLocal(IResource.DEPTH_ONE, null); |
526 |
} |
526 |
} |
527 |
} else { |
527 |
} else { |
528 |
getContainer().run(true, true, new GenerateDiffFileOperation(resource, null, true, optionsPage.getOptions(), getShell())); |
528 |
getContainer().run(true, true, new GenerateDiffFileOperation(resources, null, true, optionsPage.getOptions(), getShell())); |
529 |
} |
529 |
} |
530 |
return true; |
530 |
return true; |
531 |
} catch (InterruptedException e1) { |
531 |
} catch (InterruptedException e1) { |