Skip to main content



      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 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] Sun, 22 November 2009 20:01 Go to previous message
Eclipse UserFriend
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: Tue Jul 22 11:39:01 EDT 2025

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

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

Back to the top