Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove "General Project" option: eclipse RCP3

I am developing a GUI in eclipse with RCP3. Included in the new project options is a "General Project" option that has no relevance to the purpose of my application, and I would like to remove it. However, I can't find it anywhere in the code of the project. I suspect that it is included in the core functionality of my imported packages, specifically org.eclipse.ui, but I am not sure. If anyone would like more information on files such as the manifest or plugin.xml let me know please.

like image 414
abgordon Avatar asked Aug 07 '26 09:08

abgordon


1 Answers

The New menu options are filtered by the org.eclipse.ui.activities extension point activities. So you can suppress entries by defining a suitable activity.

The New General Project entry is defined in the org.eclipse.ui.ide plugin and has the id org.eclipse.ui.wizards.new.project, so an activity to suppress it would be:

<extension
      point="org.eclipse.ui.activities">
    <activity
         id="test.disable"
         name="Disable New Project">
   </activity>
   <activityPatternBinding
         activityId="test.disable"
         isEqualityPattern="true"
         pattern="org.eclipse.ui.ide/org.eclipse.ui.wizards.new.project">
   </activityPatternBinding>
</extension>

Note that the pattern value includes the plugin id and the item id. This is an equality pattern so it is not a regular expression.

Some more information on activities here

like image 191
greg-449 Avatar answered Aug 08 '26 21:08

greg-449



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!