plugin.xml

Add a Maven dependency to a Eclipse Plugin project

孤者浪人 提交于 2019-12-21 23:27:59
问题 just a simple question: I need to add a Maven dependency to a Eclipse Plugin project. The project has not a POM file, so I converted it to a Maven one. Now I have plugin.xml file and pom.xml file. POM contains the dependency I need to satisfy, but it's ignored; I mean, I can't resolve an import in source code referring to that import. Can you help me? ty I read about Tycho plugin, but online configurations don't work. 回答1: If I'm reading this correctly, you've just started by adding a Maven

JFace/SWT: What is the best way to add a toolbar with Commands to a Section?

我的未来我决定 提交于 2019-12-11 13:39:39
问题 I have a Section and want to add a toolbar to it. I'm able to do it programmatically using the Actions but the requirement is to do it as much declaratively (in plugin.xml) as I can. So I'd like to define a Command and a Handler for each toolbar button but I don't know how to add them to the section's toolbar. Is there any way to do it declaratively in plugin.xml? If not, how can I do it programmatically? Thanks! 回答1: I think you would have to write your own extension point to define what

Eclipse RCP menus & actions: Configure or code?

心不动则不痛 提交于 2019-11-30 03:52:11
This is a general question but my current problem revolves around menu handling. In a normal plugin with contributes menu actions you would configure ActionSets etc in the plugin.xml configuration. This is obviously sensible. I am working on a RCP application (actually RAP) and I'm wondering if it's worth the effort to configure everything via plugin.xml. My plugin does not have to interact with an other unknown plugins so, theoretically, I have control. I can add menus and actions programmatically. I have been trying to configure a menu which contains a submenu. I have tried defining

Eclipse RCP menus & actions: Configure or code?

天涯浪子 提交于 2019-11-29 01:25:19
问题 This is a general question but my current problem revolves around menu handling. In a normal plugin with contributes menu actions you would configure ActionSets etc in the plugin.xml configuration. This is obviously sensible. I am working on a RCP application (actually RAP) and I'm wondering if it's worth the effort to configure everything via plugin.xml. My plugin does not have to interact with an other unknown plugins so, theoretically, I have control. I can add menus and actions

How to remove a Category from Import wizard in Eclipse-RCP?

試著忘記壹切 提交于 2019-11-28 12:47:49
I need to add an import wizard into my eclipse-rcp app. For that I would like to use existing wizard with only my categories. I found couple of examples in the Internet, but they didn't help much. My problem is that I have not only my category, but also the General category. I would like to remove it, if possible. Actually I have found one solution here , but it seems, that it is not working. I've tried to put provided code snippet in WorkbrenchWindowAdvisor and in ActionBarAdvisor and even execute it before my wizard is created, but General category with 5 possible wizards is still there. Any

How to remove a Category from Import wizard in Eclipse-RCP?

家住魔仙堡 提交于 2019-11-27 19:27:36
问题 I need to add an import wizard into my eclipse-rcp app. For that I would like to use existing wizard with only my categories. I found couple of examples in the Internet, but they didn't help much. My problem is that I have not only my category, but also the General category. I would like to remove it, if possible. Actually I have found one solution here, but it seems, that it is not working. I've tried to put provided code snippet in WorkbrenchWindowAdvisor and in ActionBarAdvisor and even