eclipse-rcp

Eclipse RCP with project dependency

亡梦爱人 提交于 2020-01-10 20:05:11
问题 I have developed an RCP plug-in (not standalone), and a Java Project with library code that the plug-in needs to call. I have configured the Java Project in the same workspace. The plug-in has a project dependency on the Java Project. The code compiles (the plug-in does some stuff with the Java Project / library code). When I run the plug-in, I get a ClassNotFoundException: java.lang.ClassNotFoundException: com.mycode.ArgSet at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal

Eclipse RCP e4 + Tycho Maven + separate Target Platform

房东的猫 提交于 2020-01-07 03:08:14
问题 I have an e4 RCP project, built with Tycho My projects consist of: aggregator, parent, product, rcp, and target - as learnt in the vogella tutorials The target platform points to eclipse update sites, and it's also loaded into eclipse as the default platform. The app is PLUGIN BASED. I don't really want to add a feature for nothing. The catch is, the build of product fails because multi-platform plugins like org.eclipse.core.filesystem.hpux.ia64_32 org.eclipse.swt.carbon.macosx org.eclipse

Eclipse RCP — Open View in Editor folder

三世轮回 提交于 2020-01-06 13:02:07
问题 Is it possible to add placeholders in the editor folder stack? I can currently move my views (drag-n-drop) next to an editor, but I want them to be opened directly there. 回答1: If you are using eclipse 3.x, it is not possible. With 4.x should be possible (since Eclipse 4 no longer has an editor area, which must be defined for a perspective, so that you can also put editors in a ViewStack.). You may find something useful in Vogella's article. 来源: https://stackoverflow.com/questions/21382848

Problems opening file from command line in Eclipse

牧云@^-^@ 提交于 2020-01-06 12:53:25
问题 I want my RCP Eclipse application to open files from the command line when given the filename as an argument, so the OS can associate the RCP with some extensions. I found that the eclipse.ini file must specify the default action with --launcher.defaultAction openFile This is set in my .ini file, but when I call the executable followed by a filename, it doesn't open the file. Do I need something else? Some plugin? 回答1: I found the solution here: http://www.sigasi.com/content/make-eclipse-open

How to remove the 'File Search' dialog page

放肆的年华 提交于 2020-01-06 07:58:11
问题 Does anybody know how to disable the "File Search" page from the Search Dialog in an Eclipse. I've just implemented my own ISearchPage using the org.eclipse.search.searchPages extension. It works perfectly but I wasn't able to remove the "File Seach" dialog page which is shown by default in the Search Dialog. Any ideeas? 回答1: It seems like using the extension org.eclipse.ui.activities does the trick. 1.Add extension org.eclipse.ui.activities 2.Add a new activity to this extension with id (ex.

Virtual TableViewer sorting causes selection problems

若如初见. 提交于 2020-01-06 07:42:23
问题 Our application is an RCP appliction and needs to display table of several thousands items. For this reason, we're using SWT.VIRTUAL in our TableViewer . That works pretty well except for selection. We're having following issue : Our TableViewer support sorting and filtering. When we use a virtual tableviewer, changing the selection does not preserve the current selected item but the row currently selected.This leads to another item being selected. e.g: If Item 'A' present at the 5th row is

Accessing the timestamp after PDE build

天涯浪子 提交于 2020-01-06 04:23:10
问题 Am using ant to build my RCP application. The PDE headless build works well. However for some custom bundling of my artifacts, i need to access the timestamp that PDE uses while creating jars of my plugins and features. Ex: com.test.app.1.0.0.201404091703.jar I need to get the value 201404091703 from the PDE once the build is successful. Is this possible? I tried with forceContextQualifier from the build.properties, but the problem with this is, everytime before the build starts i need to

Custom message when closing a part in Eclipse RCP 4

时光怂恿深爱的人放手 提交于 2020-01-05 08:57:32
问题 we have the following problem: In our Eclipse RCP 4 application there are multiple parts and the parts are closable. When the user is closing a part there should be a custom pop-up (depending on some internal part state) which is asking the user if he really wants to close the part or not. It seems to be not that easy to implement in Eclipse RCP 4 or we have just totally overseen something. I'll just give you a short brieifing about the things we tried: Use dirtable with a @persist method in

RCP opening monitor

时光怂恿深爱的人放手 提交于 2020-01-05 06:32:21
问题 I just completed the export of my RCP application for Windows and I noticed some strange behavior when testing the app on computer with 2 monitors. The first time the application is launched, the splash screen and the main apllication windows are displayed on the primary monitor => it's ok !!! Then I move my application on the second monitor and close it. Relaunch the app displays the splash screen on the second monitor, it's perfect, but it then brings the application window on the first

eclipse rcp : how to block ui while running a job in background

大憨熊 提交于 2020-01-05 03:36:12
问题 I have a test button in a Dialog, when user click that button, my application will try to connect to a database via JDBC. For some testing cases this job will take a long while to give response to user, network connection timeout for instance. I do this by attaching a listener to that button and connect to database in that listener. when connecting, the user interface will not response until the connecting job is finished. Any user action ocurrs while connecting will take effect after