Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Editor part listener
Editor part listener [message #463075] Tue, 06 February 2007 01:46 Go to next message
Eclipse UserFriend
Originally posted by: jelgolfnut.gmail.com

Any suggestions on how to add a listener to an editor that reacts to the
open event....I don't want to use the general PartService to add the
listener because I don't want my listener to be populated with an if
instanceof for each type of editor I have.....I try to minimize the use of
instanceof....
thanks
Re: Editor part listener [message #463282 is a reply to message #463075] Wed, 07 February 2007 18:32 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

you would use IPartListener2 and IWorkbenchPartReference#getId() to
check against your editors ID

PW


Previous Topic:Questions to MasterDetailsBlock
Next Topic:Link Views and Editors
Goto Forum:
  


Current Time: Sat Sep 07 12:27:13 GMT 2024

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

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

Back to the top