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 14:35 Go to next message
Eclipse User
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] Sun, 22 November 2009 20:01 Go to previous message
Francis Upton IV is currently offline Francis Upton IV
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: Thu Apr 24 15:03:30 EDT 2014

Powered by FUDForum. Page generated in 0.02486 seconds