Results 1 to 2 of 2
  1. #1
    thinwath is offline Member
    Join Date
    Oct 2009
    Posts
    2
    Rep Power
    0

    Unhappy TreeItem and Drag'n Drop

    Hello there,

    I've developing my fist SWT App which is an eclipse plugin. I created a TabFolder, with several TabItems etc pp. Works fine and good but - yes :( -I'm facing a problem, that I'm not able to get rid of it.

    My TreeItem has a dragListener on them, my stored data on the items is a map, to cut this down: What I want? - I just want to set the TransferDataType for the listener. Atm it seems to me that all dragged data is automaticlly mapped to the first supported Transfer type. If this one is TextTransfer, then the DragSourceEvent will be of type TextTransfer for other plugins, which I don't have under control at the workbench.

    Is there anyway to set the TransferData by content? Example:

    TreeItem is map, map has key "urls" so my TransferDataType should be FileTransfer, map hasn't key "urls" so my TransferDataType should be TextTranser.

    I hope I could show up my problem, thanks a lot for reading

    regards

    thinwath

  2. #2
    thinwath is offline Member
    Join Date
    Oct 2009
    Posts
    2
    Rep Power
    0

Similar Threads

  1. Dran and Drop
    By carderne in forum New To Java
    Replies: 1
    Last Post: 08-30-2009, 09:29 AM
  2. Replies: 1
    Last Post: 04-01-2009, 11:28 AM
  3. Drag and drop
    By thayalan in forum AWT / Swing
    Replies: 1
    Last Post: 02-16-2009, 04:04 PM
  4. drop down menu
    By mike eriksen in forum AWT / Swing
    Replies: 2
    Last Post: 06-19-2008, 08:33 AM
  5. How to use a drop-down box in Struts
    By piterskiy74 in forum Web Frameworks
    Replies: 1
    Last Post: 02-13-2008, 12:42 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •