Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336160

Summary: user should be able to share solution listing
Product: [Technology] MPC Reporter: Benjamin Muskalla <b.muskalla>
Component: wizardAssignee: Benjamin Muskalla <b.muskalla>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: ian.skerrett
Version: unspecified   
Target Milestone: 1.1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
patch
greensopinion: iplog+
mylyn/context/zip
none
mylyn/context/zip none

Description Benjamin Muskalla CLA 2011-02-02 16:06:51 EST
This should be done trough twitter or email. But it should only be possible to share *one* listing at the time, but not prevent sharing multiple listings. 
Integration should be done trough the web browser, clipboard, and Java 1.6 Desktop API; 
native Twitter integration should not be part of this.
Comment 1 Benjamin Muskalla CLA 2011-03-10 18:33:53 EST
Created attachment 190941 [details]
patch

David, here is the patch to support this feature. It adds a new share button to the solutions which in turn makes it possible to
* open a predefined mail with description and link to the solution
* open the browser, loading twitter and prepolulating the tweet
Comment 2 Benjamin Muskalla CLA 2011-03-10 18:35:12 EST
Created attachment 190942 [details]
mylyn/context/zip
Comment 3 David Green CLA 2011-03-10 20:13:06 EST
Great work Benjamin!  Patch applied with minor modifications:
* HTML tags are stripped from description for email messages
* description is placed after URL in email message body, since some mail clients will truncate the message if it's too long
* tweet message was changed to @Just trying out "{0}" {1}@ since most solutions ended up with tweets that exceed the 140 character limit
* added copyright header to ShareSolutionLink
Comment 4 David Green CLA 2011-03-10 20:13:09 EST
Created attachment 190947 [details]
mylyn/context/zip