如何从RCP应用程序中删除Java

时间:2023-01-21 15:28:35

I am making an Eclipse product which contains the Xtext plugin.I followed this tutorial https://kthoms.wordpress.com/2010/11/12/setting-up-a-rcp-product-for-a-dsl/ and I made a running product.

我正在制作一个包含Xtext插件的Eclipse产品。我按照本教程https://kthoms.wordpress.com/2010/11/12/setting-up-a-rcp-product-for-a-dsl/和我制作了一个正在运行

I created a platform runtime feature with the "needed" plugins. Most plugins are useless and I remove them one by one. But I can't remove Java from the RCP application and some others useless plugins.

我使用“所需”插件创建了一个平台运行时功能。大多数插件都没用,我逐个删除它们。但我不能从RCP应用程序和其他一些无用的插件中删除Java。

When I tried to remove jdt, for example, Xtext doesn't work anymore.

例如,当我试图删除jdt时,Xtext不再起作用了。

How can I remove Java from the application? Is it implement by a plugin?

如何从应用程序中删除Java?它是由插件实现的吗?

Thank you for your help guys :)

谢谢你们的帮助:)

1 个解决方案

#1


1  

If you want to remove something from platform, you can use "activities".

如果要从平台中删除某些内容,可以使用“活动”。

Open your plugin.xml, Extensions tab then add the extension org.eclipse.ui.activities

打开plugin.xml,Extensions选项卡,然后添加扩展名org.eclipse.ui.activities

Create an activitypatternbinding child as the extension, give it an ID of your choice, then fill the pattern attribute with the eclipse id of the element you want to hide. If you want to hide java perspective, this should be something like org.eclipse.jdt.ui.JavaPerspective.

创建一个activitypatternbinding子作为扩展名,为其指定一个ID,然后使用要隐藏的元素的eclipse id填充pattern属性。如果你想隐藏java透视图,这应该像org.eclipse.jdt.ui.JavaPerspective。

More infos here and here

这里和这里有更多的信息

#1


1  

If you want to remove something from platform, you can use "activities".

如果要从平台中删除某些内容,可以使用“活动”。

Open your plugin.xml, Extensions tab then add the extension org.eclipse.ui.activities

打开plugin.xml,Extensions选项卡,然后添加扩展名org.eclipse.ui.activities

Create an activitypatternbinding child as the extension, give it an ID of your choice, then fill the pattern attribute with the eclipse id of the element you want to hide. If you want to hide java perspective, this should be something like org.eclipse.jdt.ui.JavaPerspective.

创建一个activitypatternbinding子作为扩展名,为其指定一个ID,然后使用要隐藏的元素的eclipse id填充pattern属性。如果你想隐藏java透视图,这应该像org.eclipse.jdt.ui.JavaPerspective。

More infos here and here

这里和这里有更多的信息