Community
Participate
Working Groups
import org.eclipse.swt.dnd.FileTransfer;
import org.eclipse.swt.dnd.TextTransfer;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
/**
* Not API.
NewAttachmentWizard naw = new NewAttachmentWizard(this.AbstractTaskEditor.repository, task, new File(
files[0]));
openDialog(naw);
// TODO bug 205238 show dialog if attempted more than one file to drop
if (files.length > 1) {
StringBuilder sb = new StringBuilder();
sb.append("Only the first file has been attached:\n");
sb.append(files[0]);
sb.append("\n\nPlease attach the remaining files one by one.");
MessageDialog.openWarning(Display.getCurrent().getActiveShell(),
"Problem attaching more than one file",
sb.toString());
}