Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » IPartListener(questionabout ipartlistener lifecycle)
IPartListener [message #524872] Sat, 03 April 2010 04:37 Go to next message
Eclipse UserFriend
Hi guys. I have one problem. I have one editor in my application and one view which is open in placeholder after some button is clicked. Data in this view depends on actually visible editor instantion. When i only change editors by clicking on tabs everything is ok, but when i click on view area and after change aditor no action of ipartlistener is fired no more.

If its possible i need help quickly.Thanks a lot!
Re: IPartListener [message #524907 is a reply to message #524872] Sat, 03 April 2010 14:26 Go to previous messageGo to next message
Eclipse UserFriend
Hi Matej,

> When i only
> change editors by clicking on tabs everything is ok, but when i click on
> view area and after change aditor no action of ipartlistener is fired no
> more.

try to implement the setFocus method in all your view and editor classes and give focus a
control in the view/editor. The workbench requires this (see IWorkbenchPart#setFocus) and
you might see problems like you've described when you don't implement this method.

Greetings,

Ralf


--
http://www.ralfebert.de/blog/
http://twitter.com/ralfebert/
Re: IPartListener [message #524991 is a reply to message #524907] Mon, 05 April 2010 03:08 Go to previous message
Eclipse UserFriend
Thank you Ralf for yout reply. I try it.
Previous Topic:Help view not restored after resetting perspective
Next Topic:Widget is disposed
Goto Forum:
  


Current Time: Fri Jun 13 18:25:34 EDT 2025

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

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

Back to the top