Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [CommonNavigator] How to use wizards?
[CommonNavigator] How to use wizards? [message #315736] Tue, 22 May 2007 10:01 Go to next message
Eclipse User
Originally posted by: tcmsimoes.criticalsoftware.com

I have tried to contribute with a import wizard to my own CNF based
navigator, through the commonWizard extension point. However the import
action does not appear in my navigator. Anyone knows how to make the import
action apear or as any examples on using this mechanism?

Thanks
Tiago
Re: [CommonNavigator] How to use wizards? [message #315914 is a reply to message #315736] Fri, 25 May 2007 08:36 Go to previous messageGo to next message
Eclipse User
Originally posted by: francois.malouin.polymtl.ca

Do you mean that the "Import..." doesn't appear in the context menu when
right-clicking?

If this is the case, I think I can help you.
When declaring your extension point to "org.eclipse.ui.navigator.viewer",
you have to manually add the desired actions, like the import action...I
think you can add the link manually, but the easiest way is simply to reuse
the actions already defined for you!

So something like (under your extension point)

<viewerActionBinding viewerId="org.eclipse.ui.examples.navigator.view">
<includes>
<actionExtension pattern="org.eclipse.ui.navigator.resources.*"/>
</includes>
</viewerActionBinding>

Should help...The actionExtension used contains 6 different actions, so you
could filter out those you don't need.

Hopes this help,
Fran
Re: [CommonNavigator] How to use wizards? [message #336098 is a reply to message #315914] Thu, 21 May 2009 08:16 Go to previous message
Andy Czerwonka is currently offline Andy Czerwonka
Messages: 42
Registered: July 2009
Member
Can you tell me how this works? I've been unsuccessfully trying to get
menu's New-> button to apprear, more specifically the New Wizards I
have in my commonWizards extension.

Your suggestion here works, but I don't want any resources at all, plus
I don't want any of the other contributions this brings in. I'm
assuming I can add the New menu another way?

On 2007-05-25 06:36:23 -0600, "Fran├žois" <francois.malouin@polymtl.ca> said:

> Do you mean that the "Import..." doesn't appear in the context menu when
> right-clicking?
>
> If this is the case, I think I can help you.
> When declaring your extension point to "org.eclipse.ui.navigator.viewer",
> you have to manually add the desired actions, like the import action...I
> think you can add the link manually, but the easiest way is simply to reuse
> the actions already defined for you!
>
> So something like (under your extension point)
>
> <viewerActionBinding viewerId="org.eclipse.ui.examples.navigator.view">
> <includes>
> <actionExtension pattern="org.eclipse.ui.navigator.resources.*"/>
> </includes>
> </viewerActionBinding>
>
> Should help...The actionExtension used contains 6 different actions, so you
> could filter out those you don't need.
>
> Hopes this help,
> Fran├žois
>
>
>> I have tried to contribute with a import wizard to my own CNF based
>> navigator, through the commonWizard extension point. However the import
>> action does not appear in my navigator. Anyone knows how to make the import
>> action apear or as any examples on using this mechanism?
>>
>> Thanks
>> Tiago
Previous Topic:Listening to Team events
Next Topic:specifying location of a new group to be added the file menu
Goto Forum:
  


Current Time: Mon Jul 28 16:46:15 EDT 2014

Powered by FUDForum. Page generated in 0.09798 seconds