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 144020 Details for
Bug 77207
[Repo View] Keyboard shortcut for copying cvs repository location to clipboard
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]
Fix
patch.txt (text/plain), 2.50 KB, created by
Dani Megert
on 2009-08-11 07:18:29 EDT
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Dani Megert
Created:
2009-08-11 07:18:29 EDT
Size:
2.50 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.team.cvs.ui >Index: src/org/eclipse/team/internal/ccvs/ui/repo/CopyRepositoryNameAction.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/CopyRepositoryNameAction.java,v >retrieving revision 1.9 >diff -u -r1.9 CopyRepositoryNameAction.java >--- src/org/eclipse/team/internal/ccvs/ui/repo/CopyRepositoryNameAction.java 16 Mar 2007 21:04:04 -0000 1.9 >+++ src/org/eclipse/team/internal/ccvs/ui/repo/CopyRepositoryNameAction.java 11 Aug 2009 11:20:16 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2006 IBM Corporation and others. >+ * Copyright (c) 2000, 2009 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -22,10 +22,13 @@ > > public class CopyRepositoryNameAction extends CVSAction { > public boolean isEnabled() { >- return true; >+ return getSelectedRepositories().length > 0; > } > public void execute(IAction action) { > ICVSRepositoryLocation[] locations = getSelectedRepositories(); >+ if (locations.length == 0) >+ return; >+ > StringBuffer buffer = new StringBuffer(); > for (int i = 0; i < locations.length; i++) { > buffer.append(locations[i].getLocation(true)); >@@ -56,7 +59,7 @@ > } > private void copyToClipbard(Display display, String str) { > Clipboard clipboard = new Clipboard(display); >- clipboard.setContents(new String[] { str }, new Transfer[] { TextTransfer.getInstance()}); >+ clipboard.setContents(new String[] { str }, new Transfer[] { TextTransfer.getInstance()}); > clipboard.dispose(); > } > } >Index: plugin.xml >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.team.cvs.ui/plugin.xml,v >retrieving revision 1.284 >diff -u -r1.284 plugin.xml >--- plugin.xml 30 Apr 2009 05:17:12 -0000 1.284 >+++ plugin.xml 11 Aug 2009 11:20:16 -0000 >@@ -685,6 +685,7 @@ > tooltip="%CopyRepositoryNameAction.tooltip" > class="org.eclipse.team.internal.ccvs.ui.repo.CopyRepositoryNameAction" > menubarPath="miscGroup" >+ definitionId="org.eclipse.ui.edit.copy" > id="org.eclipse.team.ccvs.ui.copyNames"> > </action> > <action
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 77207
: 144020