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

Removing CTabFolder outline using CSS in Eclipse 4

I would like to style CTabFolder using CSS for which I would like to remove the unnecessary outline. My case is similar to the example used by Lars Vogel for CSS styling tutorial: Example Eclipse 4 application with CTabItem outline In this example I…
Krzysztof Słowiński
  • 6,239
  • 8
  • 44
  • 62
3
votes
1 answer

Eclipse e4 part toolbar only shows when Part is in Part Stack?

so I would want to add a toolbar to my part, but the toolbar only appears if the part is in a Part Stack. If it is the case, the part toolbar is shown but also the minimize maximize controls and the Part Stack heder thing, which is normal, but has…
Flummiboy
  • 591
  • 1
  • 7
  • 20
3
votes
1 answer

Eclipse Luna: Handlers' @CanExecute methods not called

I'm having a problem with command handlers in Eclipse Luna RCP. In my E4 application model, I defined some commands and related handlers that must be enabled only under certain circumstances. For this reason, in my handler POJOs, I…
l.moretto
  • 193
  • 1
  • 13
3
votes
1 answer

Debugging eclipse e4 source code

I have an Eclipse e4 RCP project using the compatibility layer. The targets include org.eclipse.e4.* plug-ins and their source code. For example: $ ls…
Andy Thomas
  • 84,978
  • 11
  • 107
  • 151
3
votes
1 answer

Use interface with DI and @Creatable in E4 application

Now with the @Creatable annotation is possible to mark a class to be injected without adding it in the EclipseContext by hand in the life cycle:…
mreparaz
  • 129
  • 6
3
votes
1 answer

Using @Inject with OSGi Services with Eclipse4 Dependency Injection

I have 3 plugins de.vogella.osgi.quote (Defines the interface IQuoteService) de.vogella.osgi.ds.quoteservice (Defines the implementation QuoteService) test (My actual application) I'm registering QuoteService as an OSGi Service using a…
Andres Olarte
  • 4,380
  • 3
  • 24
  • 45
3
votes
1 answer

How can I add xText editor to Eclipse (e4) RCP Application?

I've already made a xtext editor (2.5). I try to use this editor in a part in my RCP application. I use this code: Injector injector = MyDslActivator.getInstance().getInjector(MyDslActivator.XTEXT_DSL_MYDSL); EmbeddedEditorFactory factory =…
SergSW
  • 238
  • 2
  • 10
3
votes
2 answers

How to implement IWindowCloseHandler in Eclipse (e4) RCP?

How can I implement IWindowCloseHandler in order to display a MessageDialog before closing the application ? Here is my code : EDIT public class LifeCycle { @PostContextCreate public void postContextCreate() { // TODO start up code…
Ismail Sen
  • 571
  • 2
  • 14
  • 27
3
votes
1 answer

Tokens in TextFields SWT

I´m currently developing an Eclipse4 RCP Application and I was wondering if there is a possibility to define tokens in SWT Text Fields, so that they are not accessible characterwise. So for example I have a Text Field and I want to make tokens that…
HexFlex
  • 251
  • 1
  • 13
3
votes
1 answer

Opening multiple instances of an MTrimmedWindow complete with perspectives etc

I have defined a "main window" for my RCP app as MTrimmedWindow with perspectives, parts etc., as usual, within the Application.e4xmi. Is it possible to open additional instances of this main window programmatically? Similar to the creation of parts…
Thorsten
  • 346
  • 3
  • 10
3
votes
2 answers

How do I reset perspective for Eclipse e4 RCP application?

After building a perspective in application.e4xmi file, I am unable to reset perspective by calling IWorkbenchPage.resetPerspective().
n8n8baby
  • 493
  • 5
  • 16
3
votes
2 answers

What would be Canvas in Eclipse platform

I want to develop a game that would be an Eclipse plugin. However I am not yet sure what Class should be used for drawing 2D and 3D objects. The issue is even more complicated as Eclipse shifts to 4.x APIs, that are render-neutral (SWT or JavaFX).…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
3
votes
1 answer

Best practices for Eclipse 4 DI

I'd like to know what the best practices are for Eclipse 4 dependency injection. After reading about this subject on the internet, I came up with the following strategy. requirements Share the data model of the application (e.g. company, employee,…
MoZZoZoZZo
  • 233
  • 1
  • 10
3
votes
2 answers

How to get command line arguments of an Eclipse 4 application from code

I need to somehow get command line arguments of a running Eclipse 4 application. I'm working on a small application based on the Eclipse 4 RCP, but I thing, this problem is more common. I'm unable to find out, how to get from code of a product…
Theodor Keinstein
  • 1,653
  • 2
  • 26
  • 47
3
votes
1 answer

Eclipse e3 to e4 migration/adaption(preferred) - recommendations

What I got I got a nearly finished e3 application, but need the dependency injection feature from e4, therefore I moved to Kepler. Now in e4, the e3 plugins are working, if I run my application as an e3 App. But if I change to Application.e4xmi the…
lumo
  • 790
  • 1
  • 8
  • 23