eclipse-rcp

Build Eclipse cross-platform with Maven Tycho

梦想与她 提交于 2019-12-04 07:58:50
I try to compile an Eclipse Indigo RCP application with Maven and Tycho . It works fine if I just build it for one platform but if I try to build it for more the build stops working. The Problem is that I have platform specific plugins in my product file I want to build. Dependencies like org.eclipse.swt.win32.win32.x86 which are fragment plugins for org.eclipse.swt . When I add no platform specific fragments to my product the application wouldn't start because there are no platform libraries like org.eclipse.swt.win32.win32.x86. As Tycho repository we use a clone of the eclipse indigo update

Simple “check for update” library in java

送分小仙女□ 提交于 2019-12-04 07:31:44
I'm using Eclipse RCP, but, mainly because i have total control of the UI (removed all contributions, made Preferences from scratch, etc) i just cannot accept the complexity and demand of the included UPDATE MANAGER (also, i use PLUGINS not features, and the app Plugin must be EXTRACTED - though i could get arround this last issue). Anyway, on a first approach i just want to check IF there is a newer version of the app available. The logical way would be to check against a file (xml?) on a server. Is there a good library and example out there? Thanks. Eclipse now supports p2, a much more

eclipse RCP 2018-09 + OpenJDK 11 + tycho: how to package an application with the JRE?

好久不见. 提交于 2019-12-04 05:32:53
Currently I'm using tycho to build and package my eclipse RCP app with java 8 and eclipse 4.8, ( JMSToolBox ) For windows distributions, the tycho build process "copies" the JRE v8 (Oracle) into the distribution package in the "jre" directory via an ant task I'm in the process of upgrading to eclipse RCP 2018-09 and Java 11 (OpenJDK) 2 problems arise: OpenJDK 11 does not provide a JRE OOTB. As I do not want to bundle the 300MB of the full JDK in the distribution, is there a way to embed only the equivalent of the JRE for java 11. With tycho itself? by building a specific JRE by using some JDK

Enable/disable menu item in Eclipse plugin

青春壹個敷衍的年華 提交于 2019-12-04 05:24:05
I've made a pop-up menu with one menu item, I want to enable it only when I do a right click on a tree item of a certain class type otherwise disable it. How can I achieve this? You can add a handler that uses activeWhen and associate it with that menu's command id. Here is a handler that makes a command active only when the current selection is not empty, and the selection is an item that can be adapted to an object of type Widget : <extension point="org.eclipse.ui.handlers"> <handler class="com.myproject.handlers.ExportWidgetHandler" commandId="com.myproject.commands.exportWidget">

When to choose “Generate an activator…” when creating a new Eclipse plugin project

笑着哭i 提交于 2019-12-04 04:43:37
There are lots of Eclipse RCP tutorials that begin with the obvious first step: "Create a new plugin project..." It seems that approx. 70% of them specify checking the "Generate an activator, a Java class that controls the plug-in life cycle" . The others specifically say don't check that toggle. alt text http://img179.imageshack.us/img179/6710/newpluginoptions.png Its not clear to me, what generating an activator class does for you, when you need one, and when you don't. For being a prominent option you get every time you create a new plugin project (it seems to be set on by default) this

org.eclipse.swt.SWTException: “Widget is disposed” from table refresh

别来无恙 提交于 2019-12-04 04:27:51
The app is an Eclipse 3.6 based RCP (so jface version 3.5.2) running on windows 7. I have a custom View class that contains a TableViewer and calls refresh() on it. Sometimes, but not very often it results in the stack trace below. It's called from within the UI thread. I suspected the problem was with other code that changes the backing list to the table, but that any code that does this is also run in either a syncExec or asyncExec method so I don't understand how it could be a synchronisation issue between the changing of table items and the refresh of the viewer. Any ideas what i can do to

How is eclipse line number status line contribution item implemented?

[亡魂溺海] 提交于 2019-12-04 04:21:12
问题 I need to update status line editor-specific information. I already have my own implementation, but I would like to take a look how is eclipse contribution item, which shows line number/column position in status line is implemented. Can anyone point me, where could I find the source code? Thanks in advance, AlexG. 回答1: I've been looking into it, it's quite involved, and I'm not sure I got the complete picture, but in case this helps someone... The declarative way of binding an Editor with the

Passing parameters to the view

给你一囗甜甜゛ 提交于 2019-12-04 04:00:00
问题 In my RCP application, I have a View with a TreeViewer for Navigation on the left side and a Folder for my views on the right side. The Perspective looks like this: public void createInitialLayout(IPageLayout layout) { layout.setEditorAreaVisible(false); layout.setFixed(false); layout.addStandaloneView(NavigationView.ID, false, IPageLayout.LEFT, 0.7f, layout.getEditorArea()); right = layout.createFolder("right", IPageLayout.RIGHT, 0.3f, "com.my.app.views.browser.navigation"); layout

Unable locate installable unit in target definition

白昼怎懂夜的黑 提交于 2019-12-04 03:59:30
I created my own target definition. It worked perfectly until now. Today I opened this target definition and got following error for all software sites I have there: Unable to locate installable unit <unit name> The target definition file looks like this: <?xml version="1.0" encoding="UTF-8" standalone="no"?> <?pde version="3.6"?> <target name="indigo" sequenceNumber="20"> <locations> <location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit"> <unit id="org.eclipse.zest.feature.group" version="1.3.0.v20110425-2050-67A18yF6F18CBD5A7N54242"/> <unit id

multiple slf4j bindings in Eclipse RCP Plugin

爱⌒轻易说出口 提交于 2019-12-04 03:20:34
I have a simple Eclipse Plugin which gives me following error on activation: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [bundleresource://103.fwk8918249:1/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [bundleresource://103.fwk8918249:4/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. both URLs resolve to the exact same jar in the bundle libs/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class How can i solve the problem? How come that the bundle loads the jar