[CommonNavigator] How to use wizards? [message #315736] |
Tue, 22 May 2007 14:01 |
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 12:36 |
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 12:16 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.03806 seconds