Results 1 to 2 of 2
  1. #1
    orl132 is offline Member
    Join Date
    Jul 2008
    Posts
    2
    Rep Power
    0

    Question Drag&Drop of a file in an editor

    Hello everybody !

    Files drag&drop in an editor usually open them. What I'd like to do is to create another drag&drop (for example hitting ALT when making the drag&drop movement) that, instead of open the file, would retrieve the file contents, or at least its path, to insert a part of these contents in the editor...

    I tried to add an extension : org.eclipse.ui.dropActions. It generated a dropActionDelegate class. But this class seems not to be called when I make drag&drops.

    Is there a link to add between the editor and this dropActionDelegate class ?

    Do you have an idea how to do this particular drag&drop ???

    Thanks !!!

  2. #2
    orl132 is offline Member
    Join Date
    Jul 2008
    Posts
    2
    Rep Power
    0

    Unhappy

    Does anybody has an idea please ?

    If you didn't understand my problem I can better explain you...

Similar Threads

  1. help with drag and drop on JList
    By ysl530 in forum AWT / Swing
    Replies: 4
    Last Post: 01-22-2011, 04:58 PM
  2. Mouse drag and drop to draw
    By Java Tip in forum java.awt
    Replies: 0
    Last Post: 06-23-2008, 11:16 PM
  3. Undo Folder Drag and Drop
    By natel in forum Eclipse
    Replies: 0
    Last Post: 04-08-2008, 11:01 PM
  4. Drag and drop
    By abhivenugopal in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 01-30-2008, 02:10 PM
  5. help drag and drop in JTabbedPane
    By RO86 in forum AWT / Swing
    Replies: 0
    Last Post: 08-14-2007, 01:22 PM

Posting Permissions

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