eclipse-rcp

Eclipse RCP AspectJ configure

孤街醉人 提交于 2021-02-18 12:36:12
问题 I am trying to add AspectJ in my Eclipse RCP/RAP application. I did step by step as these guys say: link here (except creating a new platform, I added the libraries by my self in my platform). But the problem is that it is still not working... I get this error: osgi> !SESSION 2012-03-18 02:16:54.354 ----------------------------------------------- eclipse.buildId=unknown java.version=1.7.0_02 java.vendor=Oracle Corporation BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US Command

Toolbar not resize after IElementUpdater

隐身守侯 提交于 2021-02-11 14:41:48
问题 i have a handler that switch between perspectives, this handler change his text depending on a selection from other menu. I update the text using @Override public void updateElement(UIElement element, Map parameters){ String aux = Chip.getInstance().getVersion().substring(0, 1) + Chip.getInstance().getVersion().substring(1).toLowerCase(); element.setText(aux); } The text changes, but if the new text is a bit larger on the toolbar, all elements move to the right and remain hidden from the

Eclipce RCP is crashed when starting

核能气质少年 提交于 2021-02-11 12:25:30
问题 I work with the old legacy project and trying to switch it to Java 11. At the moment I am able to compile it successfully, but it crashes when starting. The project consists of several eclipse plugins modules and final eclipse-repository module which has product file (there is also pom file compiles all modules and creates executable file in target folder of the eclipse-repository module) Targed definition file is resolved succesfully too and looks like <?xml version="1.0" encoding="UTF-8"

Search in Eclipse Help for RCP returns no results

人走茶凉 提交于 2021-02-07 21:56:34
问题 I have an RCP application with help enabled on the menus. I am able to successfully bring up the help that I created. However when I type in a search term there are no results returned. What is required to enable searching my help contents from the Eclipse help engine? 回答1: The resolution was to update the version number of the plugin with the help content to rebuild the index. I was relying on the .qualifier but that is not sufficient to trigger the index being rebuilt. Once the version was

Search in Eclipse Help for RCP returns no results

旧城冷巷雨未停 提交于 2021-02-07 21:55:37
问题 I have an RCP application with help enabled on the menus. I am able to successfully bring up the help that I created. However when I type in a search term there are no results returned. What is required to enable searching my help contents from the Eclipse help engine? 回答1: The resolution was to update the version number of the plugin with the help content to rebuild the index. I was relying on the .qualifier but that is not sufficient to trigger the index being rebuilt. Once the version was

Execute command/handler of an existing plugin from a different plugin

假装没事ソ 提交于 2021-02-07 19:56:30
问题 I have an RCP application with an existing command and handler to switch perspective programmatically. And I also have and new plugin consumed by the existing RCP application. I want this new plugin to execute the command/handler of my RCP application, what can be the possible solution for this? 回答1: You may need to define a handler for that command (not sure), but executing commands programmatically looks like this: Command command = ((ICommandService) getSite().getService(ICommandService

Installing plugin into eclipse using command line

梦想与她 提交于 2021-02-06 20:02:04
问题 I have an update site, and got the directory which contains the features and plugins How to install the plugin in eclipse application using the command line ? I want to automate this process 回答1: You can invoke p2 director application using something like this: eclipsec.exe -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/releases/galileo/ -installIU org.eclipse.cdt.feature.group -destination d:/eclipse/ -profile SDKProfile Here is also link to p2 wiki. 来源:

Installing plugin into eclipse using command line

依然范特西╮ 提交于 2021-02-06 20:00:13
问题 I have an update site, and got the directory which contains the features and plugins How to install the plugin in eclipse application using the command line ? I want to automate this process 回答1: You can invoke p2 director application using something like this: eclipsec.exe -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/releases/galileo/ -installIU org.eclipse.cdt.feature.group -destination d:/eclipse/ -profile SDKProfile Here is also link to p2 wiki. 来源:

Eclipse RCP: check if a job has finished

孤街浪徒 提交于 2021-01-28 11:53:49
问题 I want to check if a Job has finished. Currently I do this: if ( traceJob.getState() != Job.WAITING && traceJob.getState() != Job.RUNNING){ But I think there should be a better way to check. Anyone has any good idea ? 回答1: You can use Job.addJobChangeListener to add a listener to a Job. The done method of the listener is called when the job finishes. There is a JobChangeAdapter class with default implementations of all the IJobChangeListener methods so that you don't need to implement all of

Uninstall fonts installed using SWT's Display.loadFont API

筅森魡賤 提交于 2021-01-28 05:21:42
问题 I am working under eclipse plugin and trying to load fonts into the application as resources, so they will appear in project explorer tree. In SWT we have method loadFont of Display class which loads font from specified file, so it will appear in list of available fonts of application. I am using this method. But when I am trying to delete the font from project explorer I am getting following exception: org.eclipse.core.internal.resources.ResourceException: Problems encountered while deleting