eclipse-rcp

could not find framework in eclipse RCP application

别来无恙 提交于 2019-11-29 12:11:47
I have developed one eclipse RCP application which I am calling from my own Java program. When I run my own Java program from command prompt (windows) it is perfectly working and giving the results. But when I have integrated with the ant build script in eclipse 3.2 it is giving the following problem: !ENTRY org.eclipse.core.launcher 4 0 Dec 02, 2009 10:53:17.608 !MESSAGE Exception launching the Eclipse Platform: !STACK java.lang.RuntimeException: Could not find framework at org.eclipse.core.launcher.Main.getBootPath(Main.java:395) at org.eclipse.core.launcher.Main.basicRun(Main.java:174) at

How can I use java.lang.instrument in an Eclipse RCP application?

可紊 提交于 2019-11-29 11:03:14
In order to use the instrumentation features introduced in JDK 5, you can use the -javaagent flag passed to the JVM. This will inject an instance of an Instrumentation class into the static premain method. For example in a class like this: public class MyClass { public static Instrumentation inst; public static void premain(String options, Instrumentation inst) { MyClass.inst = inst; } } With an appropriate manifest file, you can run this as follows: java -javaagent:myfiles.jar SomeClass This calls the premain method then main from SomeClass . This approach is used in the Java.SizeOf Project

Switch perspective in a RCP application since Eclipse Juno?

拈花ヽ惹草 提交于 2019-11-29 10:31:47
问题 In my RCP application I use this code to switch perspective : IWorkbenchWindow window = getViewSite().getWorkbenchWindow(); window.getWorkbench().showPerspective(PRODUCT_PERSPECTIVE_ID, window); I didn't change my code but I changed my developement environnement from java 6 64bits + windows + Eclipse Indigo to java 7 32bits + windows + Eclipse Juno And now the perspective doesn't switch any more, with no exception and nothing suspect visible in debug. I didn't find any bug report. Is there an

How to add a pulldown button in a view's toolbar?

随声附和 提交于 2019-11-29 10:29:44
问题 I need to add a pulldown button to a view's toolbar in an Eclipse plugin. Actually buttons in the toolbar are added like that : <extension point="org.eclipse.ui.viewActions"> <viewContribution id="..." targetId="$MyViewId$"> <action id="..." toolbarPath="action1" class="Class extending Action and implementing IViewActionDelegate"> </action> </viewContribution> </extension> 回答1: I've figured it out. Two ways: one using org.eclipse.ui.viewActions extension, the other with org.eclipse.ui.menus

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

Difference between syncExec() and asyncExec() of Display class

牧云@^-^@ 提交于 2019-11-29 09:23:05
I'm working on a plugin project in which I'm using Eclipse background processing. What's the difference between the syncExec() and asyncExec() methods of the Display class? In which situations are they applicable? Any example could be helpful. Tom Seidel from Q: Why do I get the error "org.eclipse.swt.SWTException: Invalid thread access"? To allow background threads to perform operations on objects belonging to the UI-thread, the methods syncExec(Runnable runnable) and asyncExec(Runnable runnable) of Display are used. These are the only methods in SWT that can be called from any thread. They

Exception while trying to run eclipse product

╄→гoц情女王★ 提交于 2019-11-29 08:44:28
I got the below exception while trying to run an eclipse product which exported without errors java.lang.NullPointerException at org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.<init> any clue? Full stack trace: !SESSION 2013-07-23 02:08:52.676 ----------------------------------------------- eclipse.buildId=unknown java.version=1.7.0_21 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US Command-line arguments: -os linux -ws gtk -arch x86_64 !ENTRY org.eclipse.osgi 4 0 2013-07-23 02:08:54.202 !MESSAGE Application error !STACK 1 java.lang

How to add org.eclipse.swt (and other plugin dependencies) as an automatic Java9 module?

依然范特西╮ 提交于 2019-11-29 08:13:34
In order to be able to use my Eclipse plugin "treezCore" also as a Java9 module I created a module-info.java in my src folder. Furthermore, I moved the Plug-in Dependencies from the Classpath to the Modulepath. I can see a module "org.eclipse.swt.3.106.1.v20170926" in the plugin dependencies: However, I am not able to reference that module in my module-info.java. I tried require org.eclipse.swt.3.106.1.v20170926; require org.eclipse.swt; require swt; None of those options worked. The jar file \plugins\org.eclipse.swt_3.106.1.v20170926-0519.jar that is used by Eclipse does not contain a module

Eclipse RCP: Target platform - Eclipse vs. Equinox?

Deadly 提交于 2019-11-29 07:05:24
I'm just starting with OSGi and Eclipse RCP. Could someone explain to me the difference between "Eclipse" and "Equinox" as the target platform, when creating a new eclipse plugin project? I still know that Equinox is Eclipse's implementation of OSGi. I read in some articles that eclipse rcp is also based on Equinox. So where is the difference between the target platform you have to choose in a new Eclipse Plugin Project? Best regards It is about the environement in which the module you will be creating will run: see this Vogalla's RCP Tutorial Vogella's OSGi with Eclipse Equinox Eclipse

How to use log4j in an Eclipse RCP?

十年热恋 提交于 2019-11-29 07:03:04
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.error("Error starting"); so everything is fine so far I'm able to use log4j API and half way through,i