Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to detect drop target window (view?) when drag and drop common navigator item between windows?
How to detect drop target window (view?) when drag and drop common navigator item between windows? [message #494010] Wed, 28 October 2009 18:35 Go to next message
Eclipse UserFriend
Originally posted by: mklinchin.yahoo.com

Hi All,

How can I detect which window I drop into when I drag and drop an element
from common navigator to the common navigator in the other RCP window?

I extended PluginDropAdapter to catch the drop event and the object being
dropped but after drop I need to refresh the target Common Navigator tree.
PlatformUI.getWorkbench().getActiveWorkbenchWindow() gives me my source
window all the time.

Thank you,
Igor
Re: How to detect drop target window (view?) when drag and drop common navigator item between window [message #499490 is a reply to message #494010] Mon, 23 November 2009 01:01 Go to previous message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
You can call getNavigatorContentService() on the CommonDropAdapterAssistant subclass and from there you can get the viewer Id.

Previous Topic:Common Navigator "navigatorContent" fails
Next Topic:classpath problems
Goto Forum:
  


Current Time: Wed Apr 24 19:40:51 GMT 2024

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

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

Back to the top