Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 226214
Collapse All | Expand All

(-)src/org/eclipse/mylyn/internal/tasks/ui/util/TaskDragSourceListener.java (-1 / +10 lines)
Lines 96-102 Link Here
96
			}
96
			}
97
97
98
			for (AbstractTask task : tasks) {
98
			for (AbstractTask task : tasks) {
99
				String encodedName = URLEncoder.encode(task.getHandleIdentifier(), ITasksUiConstants.FILENAME_ENCODING);
99
				String encodedName = encodeName(task);
100
				File file = File.createTempFile(encodedName, ITasksUiConstants.FILE_EXTENSION, tempDir);
100
				File file = File.createTempFile(encodedName, ITasksUiConstants.FILE_EXTENSION, tempDir);
101
				file.deleteOnExit();
101
				file.deleteOnExit();
102
102
Lines 153-156 Link Here
153
		}
153
		}
154
	}
154
	}
155
155
156
	private String encodeName(AbstractTask task) {
157
		String fileName = task.getSummary();
158
		if (fileName.length() > 50) {
159
			fileName = fileName.substring(0, 50);
160
		}
161
		fileName = task.getTaskId() + " - " + fileName; // + ITasksUiConstants.FILE_EXTENSION;
162
		return fileName;
163
	}
164
156
}
165
}

Return to bug 226214