[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform] Re: newWizard categories
|
I am having similar issues (working with Eclipse 3.3.0); it is a bit
frustrating. On my end, I'm actually unable to get any categories past the
first level of indirection to show up. Thus, working from your example,
I've found attempts to achieve
category 1
category 2
category 3
wizard 1
wizard 2
via the newWizard extension point to be impossible.
It appears, however, that there is quite a bit of discussion on handling
categories, nested categories and category referencing in bug reports that
have already by filed:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=84170
https://bugs.eclipse.org/bugs/show_bug.cgi?id=225949
Can anyone else confirm/deny that category nesting issues like this still
exist in the current Eclipse release?
-Pete
> Hi All,
>
> I am trying to add a new wizard two levels deep in the category hierarchy.
> Something like this:
>
> category 1
> category 2
> wizard 1
> wizard 2
>
> To achieve the above, I use this in my plugin.xml
>
> <extension point="org.eclipse.ui.newWizards">
> <category name="category 1" id="cat1"/>
> <category name="category 2" id="cat2" parentCategory="cat1"/>
> <wizard
> name="wizard 1"
> category="cat1/cat2"
> class="com.test.Wizard1"
> project="false"
> icon="icons/1.gif"
> id="com.test.Wizard1">
> </wizard>
> <wizard
> name="wizard 2"
> category="cat1/cat2"
> class="com.test.Wizard2"
> project="false"
> icon="icons/2.gif"
> id="com.test.Wizard2">
> </wizard>
> </extension>
>
> However, this leads to a tree like this:
>
> category 1
> wizard 1
> wizard 2
>
> Instead if I put "wizard 1" directly under "cat 1", it works as expected.
> So for this plugin.xml
>
> <extension point="org.eclipse.ui.newWizards">
> <category name="category 1" id="cat1"/>
> <category name="category 2" id="cat2" parentCategory="cat1"/>
> <wizard
> name="wizard 1"
> category="cat1" <--------------- This is changed
> class="com.test.Wizard1"
> project="false"
> icon="icons/1.gif"
> id="com.test.Wizard1">
> </wizard>
> <wizard
> name="wizard 2"
> category="cat1/cat2"
> class="com.test.Wizard2"
> project="false"
> icon="icons/2.gif"
> id="com.test.Wizard2">
> </wizard>
> </extension>
>
> I get:
>
> category 1
> wizard 1
> category 2
> wizard 2
>
> Is there a workaround to get both the wizards under "category 2"?
>
> Thanks,
> Kiran