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 160639 Details for
Bug 199036
[Repo View] Copying multiple repository locations doesn't work properly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch
patch.txt (text/plain), 1.74 KB, created by
Jacek Pospychala
on 2010-03-02 11:33:45 EST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Jacek Pospychala
Created:
2010-03-02 11:33:45 EST
Size:
1.74 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.team.cvs.ui >Index: src/org/eclipse/team/internal/ccvs/ui/repo/PasteConnectionStringAction.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/PasteConnectionStringAction.java,v >retrieving revision 1.1 >diff -u -r1.1 PasteConnectionStringAction.java >--- src/org/eclipse/team/internal/ccvs/ui/repo/PasteConnectionStringAction.java 14 Sep 2006 21:00:31 -0000 1.1 >+++ src/org/eclipse/team/internal/ccvs/ui/repo/PasteConnectionStringAction.java 2 Mar 2010 16:29:23 -0000 >@@ -19,6 +19,8 @@ > import org.eclipse.ui.actions.ActionDelegate; > import org.eclipse.ui.actions.ActionFactory; > >+import com.ibm.icu.util.StringTokenizer; >+ > /** > * Try to paste a CVS connection string from clipboard as a repository location > */ >@@ -33,12 +35,18 @@ > try { > Object contents = clipboard.getContents(TextTransfer.getInstance()); > if (contents != null && contents instanceof String) { >- String connectionString = (String) contents; >- CVSRepositoryLocation location = CVSRepositoryLocation >+ String connectionStrings = (String) contents; >+ >+ StringTokenizer st = new StringTokenizer(connectionStrings, "\n"); //$NON-NLS-1$ >+ while (st.hasMoreTokens()) { >+ String connectionString = st.nextToken(); >+ >+ CVSRepositoryLocation location = CVSRepositoryLocation > .fromString(connectionString); >- if (location != null) { >- KnownRepositories.getInstance().addRepository(location, >- true); >+ if (location != null) { >+ KnownRepositories.getInstance().addRepository(location, >+ true); >+ } > } > } > } catch (Exception e) {
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 199036
: 160639