rcp

Eclipse e4 RCP: Core Expressions - Something less XML-hell?

吃可爱长大的小学妹 提交于 2019-12-19 09:03:25
问题 I'm working on an E4 RCP application, and have a context menu which has menu items visible or not depending on the selection. The way I've found to do this is with core expressions defined in the plugin.xml like so: <extension point="org.eclipse.core.expressions.definitions"> <definition id="com.foo.bar.test.core.expression"> <with variable="org.eclipse.ui.selection"> <iterate ifEmpty="false"> <or> <instanceof value="com.foo.bar.Class1"> </instanceof> <instanceof value="com.foo.bar.Class2"> <

Netbeans RCP vs Eclipse RCP

放肆的年华 提交于 2019-12-18 15:11:27
问题 I would like to start a new project which will make extensive use of plugins. I know that both Eclipse and Netbeans have their respective Rich Client Platforms, both with their respective strengths and weaknesses. I would like some comments on which the Stack Overflow community prefers. Also, and most importantly, how easy it is with the respective platforms to write plugins for already existing applications. For example, if I finish my application, and would like to enable 3rd parties to

How to extend the source menu in Eclipse? (or: What is its locationURI?)

孤街醉人 提交于 2019-12-18 07:04:26
问题 I am developing an eclipse plugin and trying to extend the source menu (mainMenubar/Source - visible when editing in the java-editor) in Eclipse 3.7. The documentation says to rely on the org.eclipse.ui.menus -extension point since the older extension points are deprecated. It is a complete secret to me where to obtain reliable locationURIs, but I finally managed to find some plausible URI with the Plugin Spy (following an advice here). So the following should be the extension snippet for the

Eclipse RCP: Actions VS Commands

那年仲夏 提交于 2019-12-17 08:48:30
问题 What are differences between Actions and Commands in the context of Eclipse RCP? I know that they both contribute to the menu entries, but which one is better? And why? Of all the online resources I read, I could not get a firm understanding of the differences between both. I have not actually tried to use them, but just wanted to understand them to start with from higher level point of view. Thanks 回答1: Did you read the eclipse wiki FAQ What is the difference between a command and an action?

Eclipse E4 - Menu contribution and PersistedState

本秂侑毒 提交于 2019-12-13 20:35:03
问题 I have got ditched in a problem with Menu Contribution and PersistedState. I had no problem before removing the -clearPersistedState flag from the VM args. Now, the app has a weird behaviour, the menu contribution starts to pile up a menu entry every time the code is executed. Here it's the guilty snippet enclosed in a Processor: MDirectMenuItem menuItem = MMenuFactory.INSTANCE.createDirectMenuItem(); menuItem.setLabel("Another Exit"); menuItem.setContributionURI("bundleclass://" + "com

Resize Eclipse RCP Part

人走茶凉 提交于 2019-12-13 15:25:42
问题 I'm creating an application using eclipse RCP, I have many Part and I want to resize them. Some of these parts don't need many space. I've checked in Application.4xmi but I didn't found anything helpful. Any ideas? 回答1: You can set the size of a Trimmed Window in the Application.e4xmi by setting the Bounds width and height values. Usually you then use PartSashContainer to divide up the window. You specify a percentage used for each child in the Container Data for the child. 来源: https:/

What is the preferred way to load a DLL on an Eclipse RCP plugin?

僤鯓⒐⒋嵵緔 提交于 2019-12-13 13:44:12
问题 I have an Eclipse RCP plugin that requires a DLL. What is the recommended best practice to add the DLL reference to the MANIFEST? Where should the DLL be located, what is the recommended directory name? I have read conflicting practices. Some ask you to create a folder with the architecture and processor type, some ask to set some platform filters on the Manifest.... 回答1: The best way in an eclipse application is to use plug-in fragments. A standard eclipse project (with dlls) will have

RCP application cannot find ModelCleanupAddon class

删除回忆录丶 提交于 2019-12-13 07:25:04
问题 I have RCP application based on Luna release. After migrating to Luna 4.4.2 relase, I observe the following error !ENTRY org.eclipse.e4.ui.workbench 4 0 2015-08-27 16:59:58.081 !MESSAGE Unable to load class 'org.eclipse.ui.internal.ide.application.addons.ModelCleanupAddon' from bundle '85' !STACK 0 java.lang.ClassNotFoundException: org.eclipse.ui.internal.ide.application.addons.ModelCleanupAddon cannot be found by org.eclipse.ui.ide.application_1.0.501.v20141111-1238 at org.eclipse.osgi

Eclipse RCP config.ini

烂漫一生 提交于 2019-12-13 06:22:19
问题 Is it possible to call and use the confi.ini file generated by RCP product in RCP plugin project ? In the Configuration tab i've added two properies that i want to call and use in my RCP plugin project . The two properties are an URL adress and a KEY . I've added them in the config.ini so when I export my RCP product and deploy it later, other users could modify the KEY or the URL . I hope that my post is clear enough ! Thanks in advance. Ismail 回答1: Properties you define in the config.ini

How to make HandledMenuItem unselected when the application is started

℡╲_俬逩灬. 提交于 2019-12-13 05:37:32
问题 I have HandledMenuItem in my Application.e4xmi. But if I check this item, close my application and start it again, this item stay selected. I can suspect that this item should be tagged or something like this, but I can't find any information about tags for MenuItems. Thanks in advance. 回答1: The e4 RCP normally persists the state of the application model when the app terminates. If you don't want to restore the persisted state of the application use the -clearPersistedState flag. You can also