Questions tagged [e4]

The Eclipse e4 project is a new Eclipse API available since Eclipse version 4. Use this tag for questions about the Eclipse e4 API provided by the org.eclipse.e4.xxx plugins.

The Eclipse e4 project is a completely new approach of the Eclipse API available since Eclipse 4.

The project has three principal aims:

  • Simplify the Eclipse programming model
  • Enable the platform for use on emerging web-based runtime technologies
  • Broaden participation in development of the platform

Eclipse e4 uses an application model (which is strictly defined in an meta-model) as a basis for Eclipse based applications. This replaces lots of the old Eclipse extension points that were required to create applications, editors, menus, commands, etc.

Eclipse e4 uses the java annotation @inject to provide services, application parts, etc to the classes that make up the Eclipse application.

A broad overview of the new Eclipse e4 API is given in the Eclipse 4 RCP - Building Eclipse RCP applications based on Eclipse 4 tutorial.

Questions about the Eclipse e4 API provided by the org.eclipse.e4.xxx plugins should use . Questions about the old Eclipse API (3.x) should use .

887 questions
3
votes
1 answer

eclipse e4 - How to let a preference value from the ConfigurationScope be injected after value change?

I use the @Preference annotation on method level to get the current preference value injected: @Inject @Optional public void updatePrefValue(@Preference(value = PREFERENCE_NAME) String prefValue) { System.out.println("updatePrefValue with '" +…
baumato
  • 358
  • 3
  • 13
3
votes
1 answer

Eclipse e4 RCP minimize/maximize missing on view parts?

When creating an RCP application using Eclipse Juno (e4 platform), view parts do not provide the minimize/maximize toolbar actions. What is also missing is the double-click action on the view part header which would minimize and maximize the view…
Andreas Pasch
  • 125
  • 1
  • 9
3
votes
1 answer

Eclipse: Converting actions in commands for a specific view

My original RCP was started in 3.x and currently I am running it on Juno with the compatibility layer. I was looking into doing a soft migration so I have started to slowly change my practices. One of the things I am doing is to change my actions…
nbz
  • 3,806
  • 3
  • 28
  • 56
3
votes
4 answers

Howto restart an e4 RCP application

A 3.* based RCP application will be restarted if IApplication.start returns IApplication.EXIT_RESTART. The class E4Application seems to always return EXIT_OK. org.eclipse.ui.IWorkbench also has a restart method,…
wjhandboy
  • 33
  • 1
  • 3
2
votes
0 answers

GeoMap isn't centring correctly

I have an RCP view with a GeoMap widget inside it. When the view is created, the map is centred on a position. The problem I'm having is that when GeoMap calls getSize() it is wrong. It is returning (0,0). I've found one method of fixing this but…
Michael
  • 3,411
  • 4
  • 25
  • 56
2
votes
1 answer

Accessing the current processes handles

In our RCP 4 application we have had SWT exceptions thrown caused by there being no more handles available. This could be caused by a resource leak or by other 3rd party applications running. We are unable to reproduce this in development so we…
Michael
  • 3,411
  • 4
  • 25
  • 56
2
votes
0 answers

Save and Restore workbench on E4

in my RCP 3.x-based Client-/Server-Application, I save the workbench state (e.g. open view and editors, window position and size, ...) in a XML file and reload it when the user want. For this I use IWorkbench.saveState and…
2
votes
0 answers

java.lang.NoClassDefFoundError: org/eclipse/swt/accessibility/AccessibleObject on startup of e4 application

I get java.lang.NoClassDefFoundError: org/eclipse/swt/accessibility/AccessibleObject when I start my Eclipse e4 RCP application. I have included org.eclipse.swt and org.eclipse.swt.gtk.linux.x86_64 in my launch configuration. What am I…
Mihael
  • 255
  • 1
  • 5
2
votes
0 answers

Maven build failed: Cannot resolve dependencies of product application.product

i updated my RCP e4 application from Java8 to Java11. After build issues with the PDE build i switch to Maven. I create a build maven project (APPPARENT): 4.0.0
Darksmilie
  • 193
  • 1
  • 11
2
votes
1 answer

Adding a custom renderer to different parts

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…
Michael
  • 3,411
  • 4
  • 25
  • 56
2
votes
1 answer

How to register an e4 lifecycle hook when using the compatibility layer?

How do I register a lifecycle hook when migrating a 3.7 based eclipse application to e4? With pure e4 I would set the lifeCycleURI property of a product using the product-extension point. This is where the application model is defined as well. My…
2
votes
2 answers

Host plug-in JavaSE has not been found in RCP application with Java 10

I moved my RCP application from Eclipse Oxygen to Photon, and also from Java 8 to Java 10. The code compiles and the application works fine if I start it from Eclipse. However, when I try to build my application, I get an error: plug-in JavaSE_0.0.0…
Darksmilie
  • 193
  • 1
  • 11
2
votes
0 answers

Basic editor implementation for e4 rcp

Is there any way how to add the simplest (text, xml) editor to my e4 rcp application? I would like to just reuse basic eclipse editor, without any further changes if it is possible. All I found are tutorials probably using e3 rcp, which is not…
tomm
  • 182
  • 1
  • 3
  • 14
2
votes
1 answer

How to retrieve current workspace path in RCP 4 app?

In my RCP 4 app, how can I retrieve the workspace path of the app? I tried some but failed: ResourcesPlugin.getWorkspace().getRoot(); //Cannot used in RCP 4 app URL fileURL = FileLocator.find(Platform.getProduct().getDefiningBundle(),new Path("/"),…
aviit
  • 1,957
  • 1
  • 27
  • 50
2
votes
1 answer

How to change the icon from the executable generated from an E4 RCP product?

I have a standalone application in Eclipse 4 RCP. When exporting it as a product, as shown below: The following structure is generated: How to change the icon of the executable aplicacao.exe? I already tried to put images in the Launching tab of…