Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » popup help
popup help [message #300081] Wed, 01 March 2006 11:29 Go to next message
Eclipse UserFriend
Hi All,

I extended org.eclipse.ui.popupMenus but I want to know how I can
determine the object over which the user has clicked (in my case it is
file) and how I can determine if the file was saved after last
modifications in it.

Thank in advanced

Fred
Re: popup help [message #300343 is a reply to message #300081] Tue, 07 March 2006 16:19 Go to previous message
Eclipse UserFriend
Originally posted by: douglas.pollock.magma.ca

Fred Garcia wrote:
> I extended org.eclipse.ui.popupMenus but I want to know how I can
> determine the object over which the user has clicked (in my case it is
> file) and how I can determine if the file was saved after last
> modifications in it.

You should receive a selectionChanged callback on your IActionDelegate.
This should enable you to determine the object over which the user has
clicked.

The only way to find pending changes (that I know of) is from getting at an
instance of ISaveablePart somehow -- usually by reaching out for an editor.
I don't know of a quick way of finding an editor corresponding to an IFile,
but it should be possible using the methods on IWorkbenchPage.



cheers,
d.
Previous Topic:Customized editor very slow, what's wrong
Next Topic:How are menu contributions sorted
Goto Forum:
  


Current Time: Thu May 08 08:21:06 EDT 2025

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

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

Back to the top