logError("Upload of " + uploadedArtifact + " failed.");
}
};
final Upload uploadArtifact = new Upload("Upload Artifact", uploadHandler);
uploadArtifact.addListener((SucceededListener) uploadHandler);
uploadArtifact.addListener((FailedListener) uploadHandler);
uploadArtifact.setImmediate(true);
final DragAndDropWrapper finalUploadedArtifacts = new DragAndDropWrapper(uploadedArtifacts);
finalUploadedArtifacts.setDropHandler(new ArtifactDropHandler(uploadHandler));