Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » ViewPart not listening to drop event on another ViewPart
ViewPart not listening to drop event on another ViewPart [message #464460] Wed, 07 March 2007 10:40
Eclipse UserFriend
Hello,

My question is: how can a drop event on a certain View be listened by
another View?

I'll explain with some more detail:

In the application GUI there are three Views (each of them has a
StructuredViewer). One viewer shows the available courses (CourseView),
other shows all the available trainers (TrainersView) and the other shows
which trainers are assigned to a specific course (CourseTrainerView). The
trainers are assigned to a course when they are dragged from the
TrainersView into the specific target Course element on the CourseView.
Then, according to the selected Course element, the corresponding Trainer
elements are shown on the CourseTrainerView.

My problem is that if the target Course is already selected when the drag
and drop is performed, then the CourseTrainerView's viewer is not
automatically refreshed.
Does anyone know how can the TableViewer on CourseTrainerView refresh when
a new element is "dropped" on the CoursesView?

I can't seem to find a way for the CourseTrainerView to listen to a Drop
event occurring other than on itself. I also looked for a way in which the
drop listener that handles the drop event on the CoursesView to notify the
viewer on CourseTrainer to refresh itself, but no success.

Could anyone please help me out with this one? Thanks in advance!
regards,
Pedro
Previous Topic:Manifest editor is unable to find referenced resource in plugin.xml
Next Topic:Solaris-Motif Support?
Goto Forum:
  


Current Time: Thu Mar 27 03:55:17 EDT 2025

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

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

Back to the top