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 80604 Details for
Bug 203796
shortcut to copy attachment url to the 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]
Patch
clipboard.txt (text/plain), 2.18 KB, created by
Willian Mitsuda
on 2007-10-17 15:21:51 EDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Willian Mitsuda
Created:
2007-10-17 15:21:51 EDT
Size:
2.18 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.tasks.ui >Index: src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java,v >retrieving revision 1.236 >diff -u -r1.236 AbstractRepositoryTaskEditor.java >--- src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java 16 Oct 2007 18:57:22 -0000 1.236 >+++ src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java 17 Oct 2007 19:20:32 -0000 >@@ -121,6 +121,7 @@ > import org.eclipse.swt.custom.StackLayout; > import org.eclipse.swt.custom.StyledText; > import org.eclipse.swt.custom.VerifyKeyListener; >+import org.eclipse.swt.dnd.Clipboard; > import org.eclipse.swt.dnd.DND; > import org.eclipse.swt.dnd.DropTarget; > import org.eclipse.swt.dnd.FileTransfer; >@@ -245,6 +246,8 @@ > protected static final int SUMMARY_HEIGHT = 20; > > private static final String LABEL_BUTTON_SUBMIT = "Submit"; >+ >+ private static final String LABEL_COPY_URL_TO_CLIPBOARD = "Copy &URL to Clipboard"; > > private static final String LABEL_COPY_TO_CLIPBOARD = "Copy to Clipboard"; > >@@ -1445,6 +1448,15 @@ > job.schedule(); > } > }; >+ >+ final Action copyURLToClipAction = new Action(LABEL_COPY_URL_TO_CLIPBOARD) { >+ public void run() { >+ RepositoryAttachment attachment = (RepositoryAttachment) (((StructuredSelection) attachmentsTableViewer.getSelection()).getFirstElement()); >+ Clipboard clip = new Clipboard(PlatformUI.getWorkbench().getDisplay()); >+ clip.setContents(new Object[] { attachment.getUrl() }, new Transfer[] { TextTransfer.getInstance() }); >+ clip.dispose(); >+ } >+ }; > > final Action copyToClipAction = new Action(LABEL_COPY_TO_CLIPBOARD) { > public void run() { >@@ -1485,6 +1497,7 @@ > popupMenu.add(new Separator()); > popupMenu.add(saveAction); > >+ popupMenu.add(copyURLToClipAction); > if (att.getContentType().startsWith(CTYPE_TEXT) || att.getContentType().endsWith("xml")) { > popupMenu.add(copyToClipAction); > }
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 203796
: 80604 |
80605