Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Hide UI element (C/C++ category) via eclipse activities

The pattern is pluginId/elementId.  For example,

            
pattern="org.eclipse.cdt.ui/org.eclipse.cdt.ui.wizards.NewCWizard1"
            
pattern="org.eclipse.cdt.managedbuilder.ui/org.eclipse.cdt.managedbuilder.u
i.ConvertTargetAction"

You can also use wild cards, but as you found, you need to be careful not
to hide more than you intend.  Here¹s an example that works:



            pattern="org\.eclipse\.cdt.*/.*NewProjectDropDown"

I hope this helps.

Thanks,
Warren







On 5/7/15, 6:06 AM, "Rainer Poisel" <rainer.poisel@xxxxxxxxx> wrote:

>Hello,
>
>I'm trying to hide UI-elements via the eclipse activities. I
>implemented the activities successfully for the following issues:
>  * menu item
>  * context menu item
>  * toolbar icon
>
>Unfortunately I don't make it for the project wizards of the category
>C/C++ ("Data -> New -> OtherŠ).
>
>I tried the following pattern,<activityPatternBinding
>activityId="random" pattern="org.eclipse.cdt.ui.*"/> with success, but
>this pattern hides a lot of other things too. So I tried to hide the
>org.eclipse.cdt.ui.wizards.*, but that didn't work, probably the wrong
>pattern plugin id. So am I on the right way to hide the C/C++category
>with the activityPatternBinding or should I use the
>categoryActivityBinding? But therefore I need a valid categoryId. I
>tried the plugin-spy, I searched inside the jar files, I asked google
>for help, but I don't find the right pattern to hide the C/C++category
>in the project builder.
>
>Thanks a lot for your help,
>  Rainer
>_______________________________________________
>cdt-dev mailing list
>cdt-dev@xxxxxxxxxxx
>To change your delivery options, retrieve your password, or unsubscribe
>from this list, visit
>https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top