Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341518 - [diagram] Sample needed for diagram drop and default node actions
Summary: [diagram] Sample needed for diagram drop and default node actions
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 348673
Blocks:
  Show dependency tree
 
Reported: 2011-03-31 12:07 EDT by Konstantin Komissarchik CLA
Modified: 2021-11-19 09:21 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.