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 95420 Details for
Bug 226214
exported file name differs from file name when dragged from task list
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
patch226214.txt (text/plain), 1.26 KB, created by
Frank Becker
on 2008-04-09 16:31:56 EDT
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Frank Becker
Created:
2008-04-09 16:31:56 EDT
Size:
1.26 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.mylyn.tasks.ui >Index: src/org/eclipse/mylyn/internal/tasks/ui/util/TaskDragSourceListener.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.mylyn/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/util/TaskDragSourceListener.java,v >retrieving revision 1.4 >diff -u -r1.4 TaskDragSourceListener.java >--- src/org/eclipse/mylyn/internal/tasks/ui/util/TaskDragSourceListener.java 7 Apr 2008 22:57:28 -0000 1.4 >+++ src/org/eclipse/mylyn/internal/tasks/ui/util/TaskDragSourceListener.java 9 Apr 2008 20:28:07 -0000 >@@ -96,7 +96,7 @@ > } > > for (AbstractTask task : tasks) { >- String encodedName = URLEncoder.encode(task.getHandleIdentifier(), ITasksUiConstants.FILENAME_ENCODING); >+ String encodedName = encodeName(task); > File file = File.createTempFile(encodedName, ITasksUiConstants.FILE_EXTENSION, tempDir); > file.deleteOnExit(); > >@@ -153,4 +153,13 @@ > } > } > >+ private String encodeName(AbstractTask task) { >+ String fileName = task.getSummary(); >+ if (fileName.length() > 50) { >+ fileName = fileName.substring(0, 50); >+ } >+ fileName = task.getTaskId() + " - " + fileName; // + ITasksUiConstants.FILE_EXTENSION; >+ return fileName; >+ } >+ > }
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 226214
: 95420 |
95421