eclipse-rcp

(Eclipse RCP) How to redirect the output to Console View?

懵懂的女人 提交于 2019-12-06 11:29:27
问题 I have two viewers, one has a Text for user's input and the other viewer is the Eclipse's built_in Console View. And I will run an java program according user's input, and want to display the log information in the ConsoleView. Does anybody know How can I redirect the output to Console View ? Thanks 回答1: SO questions How to write a hyperlink to an eclipse console from a plugin and writing to the eclipse console give example of redirection to the Console. The blog post Displaying the console

How to extend javascript editor in JSDT in Eclipse with adding new functions

心已入冬 提交于 2019-12-06 10:07:29
问题 I am using RCP to create special javascripts editor with special functions and want to extends js editor from JSDT by adding new functions in context menu and in content assistant. But how can I start. Here is my thinking: 1) rewrite a jscript editor which extends CompilationUnitEditor by import org.eclipse.wst.jsdt.internal.ui.javaeditor.CompilationUnitEditor; But it seems not working, it only has part of functions from JSDT, no colored squiggly marks in the text. import org.eclipse.wst.jsdt

Eclipse RCP: programmatically associate file type with Editor?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 10:04:52
问题 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

How best to maintain an Eclipse RCP plugin target?

爱⌒轻易说出口 提交于 2019-12-06 08:02:57
I have a plugin for an RCP app that uses BIRT. I have a target for building my app which contains only the plugins/features that are required. I recently updated the BIRT plugin versions in my IDE, which created an incompatibility in the design files with previous versions of BIRT. I have the old version of BIRT in my target and need to update to the newer plugins. In the past I have manually updated plugin jars in the target, but BIRT is a complicated platform with dependencies out the wazoo. Is there any utility or way of organizing my target differently that will make this easier to control

Printing with an Eclipse RCP program

て烟熏妆下的殇ゞ 提交于 2019-12-06 07:42:41
I am looking for a good, standard way to generate "output" in my RCP programm and print it. This should work as it works on Windows, Mac OS and Linux with the standard print dialog. I am aware of the Birt project, but I could not find any hints about how to implement it within a RCP programm and how to invoke the standard print dialog and how to pass the Birt generated report to the printer. Happy for all hints. VonC I believe the Birt project used to use IText . (now ITextPDF ) The other solution is to integrate Apache Fop in your RCP project . (see Apache FOP ). For that to work, it is

Eclipse e3 to e4 migration/adaption(preferred) - recommendations

北城以北 提交于 2019-12-06 07:18:29
问题 What I got I got a nearly finished e3 application, but need the dependency injection feature from e4, therefore I moved to Kepler. Now in e4, the e3 plugins are working, if I run my application as an e3 App. But if I change to Application.e4xmi the system fails. (somehow expected this) Problems How can I move my e3 plugins to e4 so my perspectives and views are working (I got plenty of em! And I cannot remove them - I need them to be extended if an plugin gets added!) also Menu contributions,

Eclipse RCP: Only one Job runs at a time?

蹲街弑〆低调 提交于 2019-12-06 06:41:15
问题 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

Eclipse plugin with external third party jar

不想你离开。 提交于 2019-12-06 06:11:05
I have an RCP application which includes different plugins. In one of the plugin I am using an external third party jar. Due to copyrights reasons I cannot bundle that jar into my product. So I try to include the jar as external jar at runtime. what I have done is as follows In the Plugin manifest.mf I have Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %pluginName Bundle-SymbolicName: EaCom-plugin;singleton:=true Bundle-Version: 2.1.0 Require-Bundle: org.eclipse.core.runtime Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-ClassPath: ., external:$eaapi_location$/eaapi.jar

Restrict permissions to threads which execute third party software

好久不见. 提交于 2019-12-06 05:11:17
问题 I'm developing an eclipse based application capable to execute third party component (not eclipse-plugin). Each component has a custom descriptor, where are listed permissions (with correspondent motivation). In this way final user can decide if execute it or not. Components are executed in separated threads. How can I restrict permissions to these threads according with the descriptor, without restrict entire application? Thanks 回答1: First of all, you should turn on the Security Manager.

selectionChanged() of IActionDelegate in not getting invoked

雨燕双飞 提交于 2019-12-06 04:56:26
问题 I have an action class which I would like to enable depending on the file extension. I have written this logic in the selectionChanged() of the action class. But when I start my eclipse, and click on the file for the context menu, this method is not getting called. And when I click on any action, there after any click on the file invokes the selectionChanged() method. How can I make the selectionChanged() method to be called always on click of files in eclipse in order to disable the actions