eclipse-rcp

Open file with other editor with toolbar button - RCP

爱⌒轻易说出口 提交于 2019-12-24 07:23:09
问题 I have an rcp application with two editors (extending the Editorpart) in two different plugins, and i want create a toolbar-button to switch betwen editor/plugins with same file. Is that possible? regards Alex 回答1: Of course, just get the active workbench page and call IWorkbenchPage.openEditor(input, editorId) . 来源: https://stackoverflow.com/questions/12846147/open-file-with-other-editor-with-toolbar-button-rcp

Launch wizard from Active Help page in Eclipse

邮差的信 提交于 2019-12-24 06:25:41
问题 I'm creating an RCP application and wanted to provide documentation using the Eclipse Help Contents ( Help > Help Contents ), I managed to add some pages to it by using the extension point org.eclipse.help.toc , this works fine, but I'm interested in providing a link in one of those pages to launch a wizard, I found that Eclipse provides support for this using a feature called Active Help. First, in my html Help page I have imported the livehelp.js script: <head> ... <script language=

Adding zest libraries to Eclipse 4 app

笑着哭i 提交于 2019-12-24 05:04:35
问题 I am new to both Zest and Eclipse e4 development. My aim for the moment is to build a simple app and in one of its views to visualize a graph using Zest. So I am following this tutorial and I ended up with a simple working app consisting of one main window split in 3 parts. Now I want to display a graph in one of the parts. In order to do that I have downloaded the whole GEF framework into my Eclipse from here using the "Install New Software" feature of Eclipse. So far so good. Next I try to

Add and display a new FormPage to a FormEditor using a command

匆匆过客 提交于 2019-12-24 03:32:12
问题 I have an Eclipse RCP Standalone Application using Eclipse 3.6. I have implemented a FormEditor and a FormPage for that (multipage) FormEditor. On that first FormPage is a Button that has a Command which calculate some data and should open a second FormPage with the results. The results are calculated and the second FormPage is showing the results and added to the FormEditor properly. My problem is that only a new tab appears in the FormEditor. I want that the second FormPage is shown

Eclipse Luna StackOverflow exception at Build Time

落爺英雄遲暮 提交于 2019-12-24 03:09:07
问题 I get this SO exception when building the workspace. !ENTRY org.eclipse.core.jobs 4 2 2014-06-27 16:01:29.327 !MESSAGE An internal error occurred during: "Rebuilding". !STACK 0 java.lang.StackOverflowError at org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.mentionsAny(ParameterizedTypeBinding.java:915) at org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.mentionsAny(ParameterizedTypeBinding.java:915) My workspace has a lot of projects, with a lot of compile

Load a class from the users workspace

丶灬走出姿态 提交于 2019-12-24 02:13:16
问题 I´m writing an eclipse plugin which should show some information of an enum class. The new view should show all enum constants and the assigned values. The enum values are calculated in the constructor somehow and it is not obvious in the editor which value they will have at runtime. So that´s the motivation for the plugin. I have tried to access the class which is opened in the editor by the eclipse AST. That way I´m getting the enum constant names of that file but not the assigned values at

Load a class from the users workspace

时间秒杀一切 提交于 2019-12-24 02:13:10
问题 I´m writing an eclipse plugin which should show some information of an enum class. The new view should show all enum constants and the assigned values. The enum values are calculated in the constructor somehow and it is not obvious in the editor which value they will have at runtime. So that´s the motivation for the plugin. I have tried to access the class which is opened in the editor by the eclipse AST. That way I´m getting the enum constant names of that file but not the assigned values at

How to upgrade Eclipse RCP 3.6 project to 4

久未见 提交于 2019-12-24 01:29:06
问题 I would like to upgrade my Eclipse RCP project which was live yesterday, developed using Eclipse RCP 3.6 version(code was like tightly coupled as I didn't use Spring DI), as a future road-map consideration, I'd like to upgrade my project to Eclipse 4. Primary reason for upgrading is to use spring DI & CSS in my RCP application. Can I do spring integration and CSS in my Eclipse RCP 3.6 project or Should I start from creating an RCP 4 Scratch project. Brainstorming for ideas, actually. Any

Override marker click action

泪湿孤枕 提交于 2019-12-24 01:01:41
问题 I want to add a custom action when the user clicks on a marker from the left vertical ruler of the editor I managed to run a custom action by adding in the plugin.xml the following code: <extension point="org.eclipse.ui.editorActions"> <editorContribution targetID="org.eclipse.cdt.ui.editor.CEditor" id="org.eclipse.cdt.debug.ui.CEditor.MyRulerActions"> <action label="%Dummy.label" class="com.example.MarkerClickAction" actionID="RulerClick" id="com.example.MarkerClickAction"> </action> <

Eclipse RCP: build.properties for multiple platforms

寵の児 提交于 2019-12-24 00:59:20
问题 I'm developing an Eclipse RCP application. The application should run on Windows and Linux. There are several plugins in this application that contain native artifacts. To contain these artifacts in a binary build (jar), one should specify them in build.properties file. Currently I include both Linux and Windows native artifacts in build.properties and then in runtime I choose which one to load. However, I don't like this approach as it causes unnecessary files to present in both Linux and