e4

How to use Eclipse 3.x views in E4?

浪子不回头ぞ 提交于 2020-01-02 09:59:47
问题 I am experienced with Eclipse 3.x development and now want to develop an E4 application. Therefor I tested a simple example in order to get started with the new things. I was following this tutorial step by step but it results in the same error. However, he is not getting those errors. I'm using Eclipse Luna (4.4.2) and installed the E4 Tools (0.17). I've created a new Eclipse 4 Application and added to the Application.e4xmi the Common Resource Navigator (Project Explorer) as Shared Part

How to position a Handled Tool Item to the right

为君一笑 提交于 2019-12-31 02:59:14
问题 I've an application built on eclipse e4 framework. I want to position a Handled Tool Item to the far right end. How can I achieve it? 回答1: You need to use two 'Toolbar' entries with a 'Tool Control' between them: so something like: In the Tags for the Tool Control add the word stretch this will make the trim bar manager stretch out the control to use all available space pushing everything after it to the right: The class for the control can something simple like: public class SpacerControl {

I cannot change the font size of package explorer in Eclipse

丶灬走出姿态 提交于 2019-12-28 01:54:45
问题 I try to change the font size of package explorer in Eclipse from menu Window → Preferences → General → Appearance , and I fail to change the font size. How can I do that? I use Eclipse v4.2 (Juno) on Windows 7. 回答1: Eclipse is using native Windows widgets and their settings can only be changed from Display Properties / Settings / Advanced / General properties tab. There you can change your screen DPI to alter font sizes. 回答2: On Juno and up you can adjust that font by CSS. Lookup the files

Eclipse RCP open view programmatically the e4 way

六眼飞鱼酱① 提交于 2019-12-25 08:28:04
问题 I would like to programmatically (from a context menu) open a certain view How can I do so? I can show a view using e3 compatibility layer like this: PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("viewId"); What is the e4 way to do so? 回答1: In e4 you open any part using EPartService : @Inject EPartService partService; partService.showPart("part id", PartState.ACTIVATE); The part should be in the Application.e4xmi in the place you want it to show but should have

e4 - removing elements from the application model

主宰稳场 提交于 2019-12-25 03:27:19
问题 I want to modify an existing e4 Application Model . In my modification I want to remove some elements inside the Application Model. E.g. Parts, Menu and so on. I am having the unique UI-Element-Id. How can I best remove some elements from the Application Model with this information. At this time, I am going to use the MApplication class, and look at every children and children of the children, if there are many matches with an UI-Element-Id. But this approach is nasty I think. public void

InjectionException - Eclipse 2018-12 e4 export

我的未来我决定 提交于 2019-12-25 02:48:20
问题 When running my RCP application in Eclipse it works correctly. If I export using the Eclipse Product export wizard and execute the application I get InjectionExceptions. I've found another question here that is the exact same problem. I've added org.apache.felix.scr to the product configuration but I'm still getting the same issue. I'm assuming another plug-in needs to be added but Add Recommended doesn't add any more. Start Levels Exception example !ENTRY org.eclipse.e4.ui.workbench 4 0 2019

Eclipse e4 : IStartup extension not working

99封情书 提交于 2019-12-24 20:46:53
问题 I am trying to extending "org.eclipse.ui.startup" extendion point. but it seems in eclipse e4 ,it does not even getting called. is this extension is broken in eclipse e4(Juno) 回答1: I had the same problem and couldn't find an answer, but in the process I discovered the LifeCycleHandler which is even better for my purpose. It might be a good alternative for you as well. Just as with the startup-extension you can reference a handler from your plugin.xml: <property name="lifeCycleURI" value=

Eclipse e4 export - build.xml: A problem occurred while executing this line:

我怕爱的太早我们不能终老 提交于 2019-12-24 13:38:24
问题 I've recently changed my Eclipse e4 applications project configuration from being based on plug-ins to features. The application runs correctly but when exporting I get errors to do with a build.xml file. Error .metadata/.log - Shortened C:\Users\my.name\Workspace\.metadata\.plugins\org.eclipse.pde.core\temp\org.eclipse.pde.container.feature\compile.org.eclipse.pde.container.feature.xml:6: The following error occurred while executing this line: C:\Users\my.name\Workspace\project_name\build

Adding a custom renderer to different parts

谁说胖子不能爱 提交于 2019-12-24 10:23:53
问题 I would like some parts to use a different renderer. In some cases I would like to remove the Detach option when right clicking and this is a solution according to a comment on my question here. I've been following this tutorial as to how this can be done. I've created two classes. UndetachableStackRenderer and UndetachableStackRendererFactory . If I add UndetachableStackRendererFactory to the plugin.xml it successfully removes the option to detach from ALL part stacks. <property name=

How to build a pure e4 RCP Text Editor

不羁岁月 提交于 2019-12-24 07:47:08
问题 I am using the latest Eclipse 4.7 Eclipse. I am trying to build a language sensitive editor for a pure e4 RCP application. I have modeled my editor after the example XML Text Editor template project (generated from File->New->Plug-in project). I have modified it and extended it to support my custom language (loosely based on specialized XML tags/elements/attributes). I can run this plugin on its own from the default product “ org.eclipse.platform.ide ” and it works just fine. But I am trying