Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Open, close and editing events
Open, close and editing events [message #461576] Fri, 12 January 2007 13:49 Go to next message
Eclipse UserFriend
Hi,

I'm new to developing Eclipse plugins and I'm trying to figure out how I can
hook in and listen for "open" and "close" events of editors. What I want to
know is simply when a file (any file) gets opened into a editor (any editor)
and when it gets closed. I would also wanna know when the user starts
editing the file (modifying text).

Q1:
Which listeners are appropriate to use for this and where do I hook them in?

Q2:
Is IPartListener the way to go for the open and close events and is the
ModifyListener the way to go for the editing?

I know that there exists a IResourceChangeListener but that event only
triggers on save, I want to know "live" when a modification is done to a
file.


Thanks in advance
Andr
Re: Open, close and editing events [message #461775 is a reply to message #461576] Tue, 16 January 2007 12:45 Go to previous message
Eclipse UserFriend
IWorkbenchPage.addPartListener(IPartListener2)
IWorkbenchPart.addPropertyListener(IPropertyListener),
IWorkbenchPartConstants.PROP_DIRTY

"Andr
Previous Topic:ContentAssist: additional Info
Next Topic:Unable to find feature.xml in directory...
Goto Forum:
  


Current Time: Tue Mar 25 19:06:00 EDT 2025

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

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

Back to the top