Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2012-02-24 22:42:03 +0000
committerSam Davis2012-02-24 22:42:03 +0000
commit43bc32732ce5e99708e087f13bb8fc2216d3f95d (patch)
tree9b9905f079b6b6ca76c0eb1d801dcad5e02cf35a
parentf20c92219ee68670c51ea757dada00dd9f056c60 (diff)
downloadorg.eclipse.mylyn.tasks-43bc32732ce5e99708e087f13bb8fc2216d3f95d.tar.gz
org.eclipse.mylyn.tasks-43bc32732ce5e99708e087f13bb8fc2216d3f95d.tar.xz
org.eclipse.mylyn.tasks-43bc32732ce5e99708e087f13bb8fc2216d3f95d.zip
NEW - bug 372169: [regression] Can't drag files to task editor from
package explorer to attach them https://bugs.eclipse.org/bugs/show_bug.cgi?id=372169
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskAttachmentDropListener.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskAttachmentDropListener.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskAttachmentDropListener.java
index ebe23fa4f..19549cdf6 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskAttachmentDropListener.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskAttachmentDropListener.java
@@ -120,16 +120,16 @@ public class TaskAttachmentDropListener implements DropTargetListener {
protected void attachFirstFile(String[] files) {
if (files != null && files.length > 0) {
- File file = new File(files[0]);
- NewAttachmentWizardDialog dialog = EditorUtil.openNewAttachmentWizard(page, null,
- new FileTaskAttachmentSource(file));
- if (files.length > 1) {
- dialog.setMessage(
- Messages.TaskAttachmentDropListener_Note_that_only_the_first_file_dragged_will_be_attached,
- IMessageProvider.WARNING);
- }
+ File file = new File(files[0]);
+ NewAttachmentWizardDialog dialog = EditorUtil.openNewAttachmentWizard(page, null,
+ new FileTaskAttachmentSource(file));
+ if (files.length > 1) {
+ dialog.setMessage(
+ Messages.TaskAttachmentDropListener_Note_that_only_the_first_file_dragged_will_be_attached,
+ IMessageProvider.WARNING);
}
}
+ }
public static String[] getFilesFromSelection(ISelection selection) {
List<String> files = new ArrayList<String>();

Back to the top