Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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