Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » IPartListener2 question
IPartListener2 question [message #452777] Fri, 14 July 2006 12:11 Go to next message
VS is currently offline VSFriend
Messages: 10
Registered: July 2009
Junior Member
Hi guys,

I need to have a communication editor-view in a way that view refreshes
every change in editor's input (that is, before SAVING the editor).
What's the way to do this with RCP?
Can IPartListener2.partInputChanged(IWorkbenchPartReference partRef)
help me with this?

Any hint is greatly appreciated.
Re: IPartListener2 question [message #452821 is a reply to message #452777] Mon, 17 July 2006 12:56 Go to previous message
Ilya Shinkarenko is currently offline Ilya ShinkarenkoFriend
Messages: 56
Registered: July 2009
Member
Make your editor implement ISelectionProvider and your view
ISelectionListener. Then add your view to the selection service.

PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getSelectionService().addSelectionListener("your.editor.id ", yourView)



VS wrote:
> Hi guys,
>
> I need to have a communication editor-view in a way that view refreshes
> every change in editor's input (that is, before SAVING the editor).
> What's the way to do this with RCP?
> Can IPartListener2.partInputChanged(IWorkbenchPartReference partRef)
> help me with this?
>
> Any hint is greatly appreciated.


Ilya Shinkarenko
--
www.imedic.de
www.rcp-training.com
Previous Topic:How to change view's size?
Next Topic:How to contribute a view programatically?
Goto Forum:
  


Current Time: Wed Oct 09 18:27:19 GMT 2024

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

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

Back to the top