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

Bug 341518

Summary: [diagram] Sample needed for diagram drop and default node actions
Product: z_Archived Reporter: Konstantin Komissarchik <konstantin>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: shenxue.zhou
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 348673    
Bug Blocks:    

Description Konstantin Komissarchik CLA 2011-03-31 12:07:51 EDT
Please extend the existing map sample to show how to implement Diagram.Drop and Diagram.Node.Default actions. 

Maybe...

Destination has a description and on default action, it opens a message box with description.

Maybe...

You can drop a text file of destination names and have the destinations created for you.
Comment 1 Konstantin Komissarchik CLA 2011-06-07 19:28:40 EDT
Let me help you with this one...
Comment 2 Konstantin Komissarchik CLA 2011-06-07 23:26:21 EDT
I implemented "show in wikipedia" as both a separate action visible in the node context menu and as implementation of the default node action. Activating this action opens a browser with wikipedia article on the destination. Works well if you use common city names as destinations.

I had partial success implementing an example of a drop action handler. I'd like to be able to drop a file with a list of city names and create corresponding destinations on the map. I was not able to do that due to API limitations described in Bug 348673. For now, the drop action handler adds just the first city to the map.

Leaving this open and blocked on Bug 348673.
Comment 3 Shenxue Zhou CLA 2011-06-16 18:30:17 EDT
Bug 348673 has been resolved. The map drop sample has been modified to support multiple destinations.
Comment 4 Konstantin Komissarchik CLA 2011-06-17 14:27:42 EDT
Looks good. Closing.