eclipse-rcp

Eclipse RCP: Only one Job runs at a time?

给你一囗甜甜゛ 提交于 2019-12-04 13:20:31
The Jobs API in Eclipse RCP apparently works much differently than I expected. I thought that creating and scheduling multiple Jobs would actually cause multiple worker threads to be created, executing the Jobs in parallel unless there was an ISchedulingRule conflict. I went back and read the documentation more closely, and also discovered this comment in the JobManager class: /** * Returns a running or blocked job whose scheduling rule conflicts with the * scheduling rule of the given waiting job. Returns null if there are no * conflicting jobs. A job can only run if there are no running jobs

can I combine SWT GridLayout and FillLayout

泪湿孤枕 提交于 2019-12-04 12:50:27
问题 I have an RCP/SWT application in which I'm trying to construct a view out of existing composites. One is a FillLayout composite, the other uses GridLayout. I'd to like to end up with a view in which the GridLayout composite is lined up to the left of the FillLayout composite (think vertical banner) and is about 10 percent the width of the entire view, with the existing FillLayout composite comprising the other 90 percent. I'm not sure if it is possible in SWT to combine layouts, but I'm

Eclipse RCP: programmatically associate file type with Editor?

江枫思渺然 提交于 2019-12-04 12:13:45
How programmatically associate file type with Editor? That is what Eclipse-RCP Java code can do what is archived with the following UI interaction: Window -> Preferences General -> Editors -> File Associations Add... > File type: *.json Select *.json file type Add... (Associated editors) > JavaScript Editor Make it default Ralated to Q https://stackoverflow.com/questions/12429221/eclipse-file-associations-determine-which-editor-in-list-of-associated-editors Eclipse: associate an editor with a content type Get associated file extensions for an Eclipse editor Opening a default editor, on a

How to create an Eclipse RCP application re-using some “Eclipse IDE plugins”?

自古美人都是妖i 提交于 2019-12-04 11:50:25
问题 How can I create a RCP application, which looks exactly like the Eclipse IDE with all menus, views, dialogs...? Here is one example: http://richclientplatform.blogspot.com/2007/12/oil-and-gas-industry-using-eclipse.html I followed Lars Vogel's tutorial to create a simple RCP application: http://www.vogella.de/articles/EclipseRCP/article.html. ... what are the next steps? 回答1: The ide bundle provides you with classes and extension points that allow you to use the workspace metaphor but it does

How can I embed Clojure in an RCP application

情到浓时终转凉″ 提交于 2019-12-04 11:46:26
I am currently using javascript to add scripting to an Eclipse RCP application, but I would prefer to be able to use Clojure. However, I have run into classpath difficulties because while Eclipse can find the Clojure classes, Clojure itself can't. The plugin activator's start method: public void start(BundleContext context) throws Exception { super.start(context); plugin = this ; Class.forName("clojure.lang.RT") ; JSController.startup() ; } doesn't raise a class not found exception for clojure.lang.RT , but for clojure/core__init which is in the same place. java.io.FileNotFoundException: Could

Using Eclipse with large workspaces

隐身守侯 提交于 2019-12-04 11:31:20
Our current product is based on Eclipse RCP. We are starting to have problems when we try to have our whole code base inside one eclipse workspace and we were wondering what others were doing. Here's our setup: ~225 eclipse projects (all in trunk/project) ~30 eclipse features (all in trunk/features) ~900k lines of code We are finding a few different bottlenecks: SVN on Windows is dreadfully slow (tried TortoiseSVN, SmartSVN, command line svn), an update can take in the upwards of 5-8 minutes and it is only updating 10 small files. The only reasonable client is subclipse/subversive, however

How do I change the background selection color for a jface table

这一生的挚爱 提交于 2019-12-04 09:46:07
In a elipse-rcp application I am setting the background color for a row in a jface table but I don't want the selection to change this color. I want to be able to specify the color change for a selected row. VonC According to this thread , for JFace Viewers ( ListViewer , Table , Tree ) by means of using EraseItem and MeasureItem events General principle detailed in the article " Custom Drawing Table and Tree Items " SWT.EraseItem : allows a client to custom draw a cell's background and/or selection, and to influence whether the cell's foreground should be drawn ks. table.addListener(SWT

Maven Tycho: How to Exclude eclipsec.exe in a product build?

雨燕双飞 提交于 2019-12-04 09:43:06
I switched the build of our Eclipse RCP product from PDE-build to Maven Tycho. In addition to the main (branded) launcher executable, the product now includes the "eclipsec.exe" file. We would like to omit this console-based launcher from our product as it might confuse our customers. Is there a way to do that with Tycho? I got this answer on the tycho-users list : In your eclipse-repository project, assuming that you have a .product file, you can place another file in the same directory called .p2.inf For the contents of your p2.inf file you can put a p2 touchpoint to remove the file:

how to build eclipse rcp application from .product with ant on jenkins

喜夏-厌秋 提交于 2019-12-04 09:30:11
I'd like to build an Eclipse RCP application. I have a Product configuration file and a target platform with lots of third party plugins. The export from the Eclipse IDE works flawlessly. But that is hardly professional. So I'd like to get it to work on Jenkins, too. The build server gets the files from SVN, doesn't have Eclipse and should do it all headlessly anyway. I do not want to use Maven/Tycho or Buckminster. I'd like to do it a simple as possible. Since I know a bit about ant already, I would like to do it all with ant. I have an ant script with which I can build all my plugins. All I

How to reuse menus in RCP application for Eclipse 4.2?

时光毁灭记忆、已成空白 提交于 2019-12-04 09:13:19
问题 I'm using Eclipse 4.2 with compatibility layer to reuse existing part for my RCP application. I want to reuse New from File menu and Run menu in my RCP application, so for that I opens EMF editor for Eclipse and its look like this: But for New menu its showing something like this: org.eclipse.e4.model.application.... My application is look-like this (it is just the Java Script debugger with some extra features): So how I can reuse those menus in my RCP application? 回答1: I think I understand