eclipse-rcp

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

Selection and hover overrides Cell background color in an SWT Table component

笑着哭i 提交于 2019-11-30 03:29:30
问题 I'm using SWT (and Eclipse RCP) to render a table. My problem is that if I change the background of a cell (a ViewerCell in fact) I can see that it has the new color. My problem is that if I select a row in my Table or if I hover over the row containing my cell in question then the selection/hover background overrides my cell color. How can I override this? 回答1: Problem solved with StyledCellLabelProvider. Tell me if you want to see some code. Edit: We use it do display validation errors so

Tycho and Eclipse: How to resolve OSGI dependencies to my own bundles at development time within Eclipse, without opening all of them in the IDE

白昼怎懂夜的黑 提交于 2019-11-30 00:47:35
Background My Eclipse RCP application is built using Tycho. It consists of multiple components (in the form of OSGi bundles/Eclipse plug-ins). One of these component contains the product file and materializes the product. There is a reactor POM at the application root, which builds all components in order, but I also want to build other components independently (using mvn deploy ) . Building such a single component works as follows: Retrieve the latest versions of all the component's dependencies from our company (p2) repository. Build the component. Deploy the component to our company

Is it currently possible to build Eclipse Plugins by Maven AND have nice IDE Integration?

☆樱花仙子☆ 提交于 2019-11-30 00:27:56
I'm currently evaluating maven to improve our build process. The building and creating of normal jar files works so far, although I'm not entirely happy with the Maven IDE. I'm now at that point, where all libs I need for our project are built, and I'm moving on to the Eclipse RCP projects. And now I'm not sure how to go on. There are some plugins I need to build first, before moving on to the actual RCP part. Therefore I have actually 3 problems. I want to build those plugins, the only real solution for that seems to be the maven-bundle-plugin: http://felix.apache.org/site/apache-felix-maven

Eclipse RCP: Right aligned search field in toolbar

走远了吗. 提交于 2019-11-29 22:30:42
问题 I would like to have a right aligned search field in the toolbar of an Eclipse RCP application. I already created the text field as ControlContribution and the respective search action in the ActionBarAdvisor class: protected void fillCoolBar(ICoolBarManager coolBar) { IToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.RIGHT); //... toolbar.add(new ControlContribution("searchText") { //... This works and I have the search field in the toolbar. But how can I align the search text (or

Delete rows from Nattable

一世执手 提交于 2019-11-29 18:36:53
I want to implement a row deletion logic in a Nebula Nattable. This is what I plan to do: Add context menu to the Nattable which is described in http://blog.vogella.com/2015/02/03/nattable-context-menus-with-eclipse-menus/ Add an SWT Action to the menu which will implement the delete my question is, which is the best way to accomplish this: Should I delete the corresponding value from my data model and the table view is refreshed when I execute this.natview.refresh(); ? OR Should I get the rows from SelectionLayer and delete them (if so how do I do ?)? OR is there any default support for this

How to remove views from Windows-->Show View list?

女生的网名这么多〃 提交于 2019-11-29 18:00:24
I have view which I am setting permanently on my perspective. This view can not be closed and can not be opened from Windows --> show views I struct to remove View from Windows --> view list. How would I achieve this? I tried your solution it is doing the things but it is also removing the view from perspective. Below are the steps I followed.. I have added the following view in plugin.XML <view allowMultiple="false" category="org.view.ui.IDECategory" class="org.view.ui.BannerInformationView" id="org.view.ui.BannerInformationView" name="BannerInfo" restorable="true"> </view> After this I have

How to add Perspective Bar Switcher to pure eclipse 4 rcp application

柔情痞子 提交于 2019-11-29 15:45:17
I have created a pure Eclipse e4 rich client platform application application model. I created multiple perspectives using perspective stack, but I am unable to switch other perspective because there is no default perspective bar or switcher icon present in Eclipse e4. How to implement a perspective switcher in pure Eclipse e4? EPartService.switchPerspective will do the actual switch, but you will have to design and implement the UI. You could use a ToolBar in the window Trim Bar with buttons for each perspective. Alternatively a Combo as a Tool Control with a list of the perspectives, it is

Eclipse RCP: How to order perspective buttons belonging to different plugins?

安稳与你 提交于 2019-11-29 15:35:34
问题 My application has 5 plugins. Each plugin has a perspective of it's own and hence each perspective extension definition is under individual plugin's plugin.xml. Now, I want to control the order in which these perspectives appear in my application. How to do it? There is one main plugin that holds "ApplicationWorkBenchAdvisor.java". This has initialize() method in which I am iterating through the perspective registry using PlatformUI.getWorkbench().getPerspectiveRegistry().getPerspectives();

hotkey/shortcut for: “Which plugin is this?”

末鹿安然 提交于 2019-11-29 12:42:02
问题 Please forgive such a simple question, I've been away from RCP for about a year: What shortcut/hot-key combination can I use in Eclipse to discover the plugin that contributed/owns the current view? I remember it bringing up the plugin.xml of the plugin currently under the mouse. I should be very grateful for your clues .. M. 回答1: The Plug-in Spy is mapped to Shift+Alt+F1 ( Shift+Option+F1 on Mac) by default. It shows information for whatever is currently selected. 回答2: Best keyboard shortcut