Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problem with Navigator
Problem with Navigator [message #335435] Wed, 08 April 2009 11:36 Go to next message
Mario Cervera is currently offline Mario CerveraFriend
Messages: 66
Registered: July 2009
Member
Hi,

I've got a problem in my navigator. I'd like to make the Undo action work
even if I don't have an element selected but the Navigator Action Service is
prepared to work only when something is selected. I've thought of
subclassing NavigatorActionService but I don't know which extension point I
can use to specify that I prefer to use my subclass rather than
NavigatorActionService. Does anyone know which extension point allow me to
do that? ...or any other solution to my problem??

Thanks in advance

Mario
Re: Problem with Navigator [message #335749 is a reply to message #335435] Mon, 27 April 2009 03:39 Go to previous message
Eclipse UserFriend
Originally posted by: francis.oaklandsoftware.com

Instead of using the CNF actionProviders, I would consider the use of
commands instead. They are easier to use and give you much more
flexibility.

This will get you started:

http://help.eclipse.org/stable/topic/org.eclipse.platform.do c.isv/guide/workbench_cmd.htm

You can simply add your command to the popup menu associated with your
navigator under whatever conditions you like.

I think you can use the UndoActionHandler to actually run the undo.

HTH,

Francis

On Wed, 08 Apr 2009 04:36:20 -0700, Mario Cervera <mcervera@prodevelop.es>
wrote:

> Hi,
>
> I've got a problem in my navigator. I'd like to make the Undo action work
> even if I don't have an element selected but the Navigator Action
> Service is
> prepared to work only when something is selected. I've thought of
> subclassing NavigatorActionService but I don't know which extension
> point I
> can use to specify that I prefer to use my subclass rather than
> NavigatorActionService. Does anyone know which extension point allow me
> to
> do that? ...or any other solution to my problem??
>
> Thanks in advance
>
> Mario
>
>



--
Common Navigator Framework section in Platform Plugin Developer Guide
(Programmer's Guide)
http://help.eclipse.org/ganymede/topic/org.eclipse.platform. doc.isv/guide/cnf.htm

http://dev.eclipse.org/blogs/francis
http://wiki.eclipse.org/Common_Navigator_Framework
http://wiki.eclipse.org/Common_Navigator_Framework_Use_Cases


You have brains in your head.
You have feet in your shoes.
- Dr Seuss, Oh the Places You'll Go
Previous Topic:Querying for plugin location
Next Topic:Function to insert oder update @date in javadoc
Goto Forum:
  


Current Time: Tue Apr 16 10:10:32 GMT 2024

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

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

Back to the top