Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 10223 Details for
Bug 41340
Support multi-select for Team>Create Patch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
NEw patch using CVS Team
multi-patch.diff (text/plain), 4.98 KB, created by
Matthew Conway
on 2004-05-03 12:51:05 EDT
(
hide
)
Description:
NEw patch using CVS Team
Filename:
MIME Type:
Creator:
Matthew Conway
Created:
2004-05-03 12:51:05 EDT
Size:
4.98 KB
patch
obsolete
>Index: src/org/eclipse/team/internal/ccvs/ui/actions/GenerateDiffFileAction.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/GenerateDiffFileAction.java,v >retrieving revision 1.15 >diff -u -r1.15 GenerateDiffFileAction.java >--- src/org/eclipse/team/internal/ccvs/ui/actions/GenerateDiffFileAction.java 10 Mar 2003 21:24:14 -0000 1.15 >+++ src/org/eclipse/team/internal/ccvs/ui/actions/GenerateDiffFileAction.java 28 Apr 2004 20:47:18 -0000 >@@ -31,7 +31,7 @@ > public void execute(IAction action) { > final String title = Policy.bind("GenerateCVSDiff.title"); //$NON-NLS-1$ > final IResource[] resources = getSelectedResources(); >- GenerateDiffFileWizard wizard = new GenerateDiffFileWizard(new StructuredSelection(resources), resources[0]); >+ GenerateDiffFileWizard wizard = new GenerateDiffFileWizard(new StructuredSelection(resources), resources); > wizard.setWindowTitle(title); > WizardDialog dialog = new WizardDialog(getShell(), wizard); > dialog.setMinimumPageSize(350, 250); >@@ -42,7 +42,7 @@ > * @see org.eclipse.team.internal.ccvs.ui.actions.WorkspaceAction#isEnabledForMultipleResources() > */ > protected boolean isEnabledForMultipleResources() { >- return false; >+ return true; > } > > /** >Index: src/org/eclipse/team/internal/ccvs/ui/wizards/GenerateDiffFileOperation.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/GenerateDiffFileOperation.java,v >retrieving revision 1.14 >diff -u -r1.14 GenerateDiffFileOperation.java >--- src/org/eclipse/team/internal/ccvs/ui/wizards/GenerateDiffFileOperation.java 3 Jul 2003 18:31:19 -0000 1.14 >+++ src/org/eclipse/team/internal/ccvs/ui/wizards/GenerateDiffFileOperation.java 28 Apr 2004 20:47:18 -0000 >@@ -44,13 +44,13 @@ > public class GenerateDiffFileOperation implements IRunnableWithProgress { > > private File outputFile; >- private IResource resource; >+ private IResource[] resources; > private Shell shell; > private LocalOption[] options; > private boolean toClipboard; > >- GenerateDiffFileOperation(IResource resource, File file, boolean toClipboard, LocalOption[] options, Shell shell) { >- this.resource = resource; >+ GenerateDiffFileOperation(IResource[] resources, File file, boolean toClipboard, LocalOption[] options, Shell shell) { >+ this.resources = resources; > this.outputFile = file; > this.shell = shell; > this.options = options; >@@ -73,8 +73,12 @@ > os = new FileOutputStream(outputFile); > } > try { >+ for (int i = 0; i < resources.length; i++) >+ { >+ IResource resource = resources[i]; > CVSTeamProvider provider = (CVSTeamProvider)RepositoryProvider.getProvider(resource.getProject(), CVSProviderPlugin.getTypeId()); > provider.diff(resource, options, new PrintStream(os), new SubProgressMonitor(monitor, 500)); >+ } > } finally { > os.close(); > } >Index: src/org/eclipse/team/internal/ccvs/ui/wizards/GenerateDiffFileWizard.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/GenerateDiffFileWizard.java,v >retrieving revision 1.23 >diff -u -r1.23 GenerateDiffFileWizard.java >--- src/org/eclipse/team/internal/ccvs/ui/wizards/GenerateDiffFileWizard.java 6 Nov 2003 19:20:42 -0000 1.23 >+++ src/org/eclipse/team/internal/ccvs/ui/wizards/GenerateDiffFileWizard.java 28 Apr 2004 20:47:18 -0000 >@@ -49,7 +49,7 @@ > private PatchFileCreationOptionsPage optionsPage; > > private IStructuredSelection selection; >- private IResource resource; >+ private IResource[] resources; > > /** > * Page to select a patch file. Overriding validatePage was necessary to allow >@@ -442,10 +442,10 @@ > } > // end of PatchFileCreationOptionsPage > >- public GenerateDiffFileWizard(IStructuredSelection selection, IResource resource) { >+ public GenerateDiffFileWizard(IStructuredSelection selection, IResource[] resources) { > super(); > this.selection = selection; >- this.resource = resource; >+ this.resources = resources; > setWindowTitle(Policy.bind("GenerateCVSDiff.title")); //$NON-NLS-1$ > initializeDefaultPageImageDescriptor(); > } >@@ -520,12 +520,12 @@ > return false; > } > } >- getContainer().run(true, true, new GenerateDiffFileOperation(resource, file, false, optionsPage.getOptions(), getShell())); >+ getContainer().run(true, true, new GenerateDiffFileOperation(resources, file, false, optionsPage.getOptions(), getShell())); > if(type==mainPage.WORKSPACE) { > ws.getParent().refreshLocal(IResource.DEPTH_ONE, null); > } > } else { >- getContainer().run(true, true, new GenerateDiffFileOperation(resource, null, true, optionsPage.getOptions(), getShell())); >+ getContainer().run(true, true, new GenerateDiffFileOperation(resources, null, true, optionsPage.getOptions(), getShell())); > } > return true; > } catch (InterruptedException e1) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 41340
:
9862
|
10223
|
27440
|
27441
|
27442
|
27444