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
5
votes
1 answer

How to prevent floating editor windows in eclipse 4 RCP apps?

Eclipse 4 RCP apps support floating editor windows. Using the compatibility layer, I am porting a set of RCP apps from Eclipse 3.8 to Eclipse 4.4. These applications have not been designed for floating editors. I would like to defer the cost of…
Andy Thomas
  • 84,978
  • 11
  • 107
  • 151
5
votes
4 answers

How to get the active part in a particular partstack in eclipse e4?

I have a button which creates parts. I need to get the active part that is currently visible in he part stack and I am storing it as a key for some value. How should I get the active part? I have used the following code but it is getting all the…
Acjb
  • 505
  • 1
  • 6
  • 21
5
votes
1 answer

e4 dynamic menu contributions

This feature has been realized as of Kepler M4, for a detailed information on the usage see my blog I want to realize a fully dynamic menu contribution to the menu of a handler located in a view toolbar. In Eclipse 3 it was possible to add "dynamic"…
col.panic
  • 2,944
  • 4
  • 25
  • 31
4
votes
2 answers

Eclipse e4 - Missing Constraint: Require-Capability: osgi.extender

When running my eclipse e4 application it shows that problems have been detected when validating. This can be fixed by going to run configurations and selecting Add Required Plug-ins but this is more of a work around then a fix. I've tried…
Michael
  • 3,411
  • 4
  • 25
  • 56
4
votes
1 answer

Always show Part Stack in Eclipse E4

In my Eclipse E4 application I hava a part stack with some parts in it. Now I need a way to always show the part stack (also when all the parts in it are closed by the user). How can I provide this feature in my E4 application?
JimmyD
  • 2,629
  • 4
  • 29
  • 58
4
votes
1 answer

How to create a mouse rightclick menu for a jface treeviewer

I have created a TreeViewer using JFace, but now I have to add a right click listener to the nodes. When the right click is done it has to show a menu like: Do something Do Nothing Delete I am trying to do this as follows, but it is throwing a…
vinod raj
  • 69
  • 2
  • 10
4
votes
1 answer

How to open another Part in Eclipse e4

I am developing a e4 application. Initially I have part A. I m displaying A part on start up of application and B part is not visible. In the Part A, I will be displaying HTML Pages with Links. When the user clicks any of the links, I need to open…
John
  • 2,820
  • 3
  • 30
  • 50
4
votes
1 answer

How to Inject EPartService

I am developing e4 application. I want to inject EPartService outside the Part and Handler when i am injecting EPartService then i will get null pointer error public class DisplayRuntimePart { @Inject EPartService partService; …
Abhit
  • 481
  • 6
  • 19
4
votes
2 answers

Get e4 service without injection

I'm trying to adapt an Eclipse RCP 3.x application to use some facilities from e4. For this reason, there is no e4xmi file. In particular, I need to get access to some services: public class RunModeService { @Inject private static ECommandService…
wrgrs
  • 2,467
  • 1
  • 19
  • 24
4
votes
1 answer

Eclipse e4 RCP: Core Expressions - Something less XML-hell?

I'm working on an E4 RCP application, and have a context menu which has menu items visible or not depending on the selection. The way I've found to do this is with core expressions defined in the plugin.xml like so:
Memran
  • 405
  • 4
  • 12
4
votes
2 answers

Correct way of using/testing event service in Eclipse E4 RCP

Let me ask two coupled questions that might boil down to one about good application design ;-) What is the best practice for using event based communication in an e4 RCP application? How can I write simple unit tests (using JUnit) for classes that…
4
votes
1 answer

How to inject parameter with ParameterizedCommand in Eclipse 4.3?

I am currently implementing an Eclipse 4.3 application and running into a problem. I try to parametrize a command to delete specific files. My approach is corresponding to Getting parameter of parameterized command in Eclipse RCP 4.2, but i somehow…
Martin L.
  • 680
  • 7
  • 14
4
votes
1 answer

How to make an eclipse partstack not disappear when the last part is closed?

I'm working on a project with a main window consisting of a mpartstack where I add parts dynamically from another part. The problem is that when the last part gets closed the mpartstack disappears and the other part takes up all the space. When I…
Kirken
  • 167
  • 1
  • 16
4
votes
2 answers

How to add an e4 eclipse part into Show View dialog

I'm developing an eclipse plugin using e4 technologies intended to be run in Eclipse IDE. How can I add my part (defined as 'PartDescriptor' in fragment.e4xmi file in my plugin) into the "Show View" dialog tree (main menu > Window > Show View >…
czerny
  • 15,090
  • 14
  • 68
  • 96
4
votes
2 answers

How to restrict the minimum size of the window for Eclipse e4

I am making an application based on Eclipse e4 framework. I was wondering how the minimal size of the application window can be controlled. There seems no properties can be defined in e4xmi file for this purpose. Does anyone know how to do it? I…
BayOtter
  • 209
  • 2
  • 9
1
2
3
59 60