Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » usage of dropAssistant for org.eclipse.ui.navigator.navigatorContent
usage of dropAssistant for org.eclipse.ui.navigator.navigatorContent [message #336996] Mon, 20 July 2009 13:03 Go to next message
Jonathan is currently offline JonathanFriend
Messages: 4
Registered: July 2009
Junior Member
The org.eclipse.ui.navigator.navigatorContent can have a drop assistant
however it is only triggered when attempting to drop something
corresponding to possibleChildren. I want to be able to slurp a file and
import everything from it into the database represented by on tree
element. That tree element will not get a file as a children after this
operation. In fact my database element will NEVER EVER have files as
children. So it feels very wrong to add that as a possibleChildren. Is
that what I am supposed to do anyway? What other strange effects will that
have? I don't want my tree to be able to contain files in some strange
corner case...
Re: usage of dropAssistant for org.eclipse.ui.navigator.navigatorContent [message #486792 is a reply to message #336996] Sat, 19 September 2009 04:54 Go to previous message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
Jonathan wrote on Mon, 20 July 2009 09:03
The org.eclipse.ui.navigator.navigatorContent can have a drop assistant
however it is only triggered when attempting to drop something
corresponding to possibleChildren. I want to be able to slurp a file and
import everything from it into the database represented by on tree
element. That tree element will not get a file as a children after this
operation. In fact my database element will NEVER EVER have files as
children. So it feels very wrong to add that as a possibleChildren. Is
that what I am supposed to do anyway? What other strange effects will that
have? I don't want my tree to be able to contain files in some strange
corner case...


Don't get too hung up on the name possibleChildren. This is what triggers the drop assistant, so that's the property way to do it. If there are no actual children provided, then there will be no side effects.


Previous Topic:Common Navigator fails to refresh on addition/deletion
Next Topic:Referenced class not on plugin classpath
Goto Forum:
  


Current Time: Thu Jun 27 19:17:31 GMT 2024

Powered by FUDForum. Page generated in 0.03037 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top