rcp

How to set the Caret of the IOConsole

巧了我就是萌 提交于 2019-12-01 07:59:23
问题 I'm writing an eclipse-plugin which creating a new Console. Please see my source code: CliConsoleFactory.java import java.io.IOException; import org.eclipse.jface.text.DocumentEvent; import org.eclipse.jface.text.IDocument; import org.eclipse.jface.text.IDocumentListener; import org.eclipse.ui.IWorkbenchPage; import org.eclipse.ui.PartInitException; import org.eclipse.ui.PlatformUI; import org.eclipse.ui.console.ConsolePlugin; import org.eclipse.ui.console.IConsole; import org.eclipse.ui

Sleak in RCP: Device is not tracking resource allocation

大憨熊 提交于 2019-12-01 02:28:27
问题 I have tried to make Sleak work on my Indigo RCP application. I have followed the steps on this guide. I.e. I have installed the plugin, added the swt tools plugin to current plugins, added the required plugins, modified the tracing options, and added the view in my application with folder.addView("org.eclipse.swt.tools.views.SleakView"); The view does indeed show up but I keep getting the error 'Device is not tracking resource allocation' when I try to use it. I have tried the answers to

RCP with SWT.Browser and XULRunner

ε祈祈猫儿з 提交于 2019-11-30 12:17:18
问题 I'm developing an RCP application (Windows) with SWT.Browser ( SWT.MOZILLA ): Browser browser = new Browser(parent, SWT.MOZILLA); It's working fine with the old XULRunner 3.6.23 and the installation described here: xulrunner.exe --register-global I want to use the new XULRunner 8.x, but as mentioned here the old way to install XULRunner was removed. So I added the XULRunner-Path programmatically: System.setProperty("org.eclipse.swt.browser.XULRunnerPath", "Path\\To\\xulrunner_8.x"); But when

Netbeans RCP vs Eclipse RCP

北战南征 提交于 2019-11-30 12:01:56
I would like to start a new project which will make extensive use of plugins. I know that both Eclipse and Netbeans have their respective Rich Client Platforms, both with their respective strengths and weaknesses. I would like some comments on which the Stack Overflow community prefers. Also, and most importantly, how easy it is with the respective platforms to write plugins for already existing applications. For example, if I finish my application, and would like to enable 3rd parties to extend it with their own plugins, how does each of these platforms provide functionality for this? Would

How to use log4j in an Eclipse RCP?

半世苍凉 提交于 2019-11-30 08:36:49
问题 How to use log4j logging API in an Eclipse RCP project? As a workaround U tried to create a new OSGI Bundle which has a log4j jars, below is the bundle structure: I've crated a basic RCP application with a view (template) named loggingtest .I've included the bundle log4j in the dependencies tab of loggingtest project.In the Activator start method i placed the following code Logger logger = Logger.getLogger(Activator.class); logger.info("Info starting"); logger.warn("Warning starting"); logger

Global variables in Eclipse RCP

≡放荡痞女 提交于 2019-11-30 07:58:37
how do i solve this: I have usercredential informtion in my main RCP plugin. All other plugins should have that information as well. Preference Store is not possible, because also the presference store needs a nodename which needs to be globally available. Are there any possibilities to realize global variables? Thanks! There are a few options. The quick and dirty approach is to put a getter for your global variable into the activator of one of your plug-ins. Then you just get your global like: SomePluginActivator.getDefault().getGlobalData() This has the downside of making your plug-ins

jar resources in jnlp are not signed by the same certificate

对着背影说爱祢 提交于 2019-11-30 06:40:14
I've been working with web start for a couple years now and have experience with signing the jars and what not. I am taking my first attempt at deploying a RCP app with web start and though I have in fact signed all of the jars with the same certificate I keep getting this error: 'jar resources in jnlp are not signed by the same certificate' Has anyone else came across this? If so, any ideas on how to fix? asalamon74 When I had similar problems after checking the jars it turned out that some 3rd party jar was signed by someone else. You should create a separate jnlp file for the jars signed by

RCP with SWT.Browser and XULRunner

一笑奈何 提交于 2019-11-30 02:26:38
I'm developing an RCP application (Windows) with SWT.Browser ( SWT.MOZILLA ): Browser browser = new Browser(parent, SWT.MOZILLA); It's working fine with the old XULRunner 3.6.23 and the installation described here : xulrunner.exe --register-global I want to use the new XULRunner 8.x, but as mentioned here the old way to install XULRunner was removed. So I added the XULRunner-Path programmatically: System.setProperty("org.eclipse.swt.browser.XULRunnerPath", "Path\\To\\xulrunner_8.x"); But when I start my application, I'll get the following error org.eclipse.swt.SWTError: XPCOM error -2147467261

Global variables in Eclipse RCP

五迷三道 提交于 2019-11-29 10:24:37
问题 how do i solve this: I have usercredential informtion in my main RCP plugin. All other plugins should have that information as well. Preference Store is not possible, because also the presference store needs a nodename which needs to be globally available. Are there any possibilities to realize global variables? Thanks! 回答1: There are a few options. The quick and dirty approach is to put a getter for your global variable into the activator of one of your plug-ins. Then you just get your

Log4j under OSGI (Eclipse RCP)

旧巷老猫 提交于 2019-11-29 09:06:02
问题 After many tests i concluded that the Log4j is not working under OSGI. I do not use Log4j directly, but i need third party plugins to log with it. I made a plain JAVA project and everything works great, but under PLUGIN development nothing works. I have log4j jar in my Classpath and even tried a Spring repository OSGI compliant Log4j and included it under Dependencies. Nothing works. I've tried this some approach with no success: http://swik.net/Eclipse/Planet+Eclipse/Raja+Kannappan:+Eclipse