Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Open, close and editing events
Open, close and editing events [message #461576] Fri, 12 January 2007 18:49 Go to next message
Andre is currently offline AndreFriend
Messages: 1
Registered: July 2009
Junior Member
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 17:45 Go to previous message
Boris Bokowski is currently offline Boris BokowskiFriend
Messages: 272
Registered: July 2009
Senior Member
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: Thu Apr 25 01:09:20 GMT 2024

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

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

Back to the top