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 205238 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/mylyn/tasks/ui/editors/RepositoryTaskEditorDropListener.java (-1 / +11 lines)
Lines 21-26 Link Here
21
import org.eclipse.swt.dnd.FileTransfer;
21
import org.eclipse.swt.dnd.FileTransfer;
22
import org.eclipse.swt.dnd.TextTransfer;
22
import org.eclipse.swt.dnd.TextTransfer;
23
import org.eclipse.swt.widgets.Control;
23
import org.eclipse.swt.widgets.Control;
24
import org.eclipse.swt.widgets.Display;
24
25
25
/**
26
/**
26
 * Not API.
27
 * Not API.
Lines 125-131 Link Here
125
				NewAttachmentWizard naw = new NewAttachmentWizard(this.AbstractTaskEditor.repository, task, new File(
126
				NewAttachmentWizard naw = new NewAttachmentWizard(this.AbstractTaskEditor.repository, task, new File(
126
						files[0]));
127
						files[0]));
127
				openDialog(naw);
128
				openDialog(naw);
128
129
				// TODO bug 205238 show dialog if attempted more than one file to drop
130
				if (files.length > 1) {
131
					StringBuilder sb = new StringBuilder();
132
					sb.append("Only the first file has been attached:\n");
133
					sb.append(files[0]);
134
					sb.append("\n\nPlease attach the remaining files one by one.");
135
					MessageDialog.openWarning(Display.getCurrent().getActiveShell(), 
136
							"Problem attaching more than one file",
137
							sb.toString());
138
				}
129
			}
139
			}
130
		}
140
		}
131
	}
141
	}

Return to bug 205238