As expressed in the post Marketing IDE / was: Ctr-1 driven development: these are some proposed Eclipse IDE howto videos:

  • Create an E4 Application with PDE and E4Tools
  • Build an E4 Application with Tycho
  • Test E4 Application with SWTBot
  • Build JEE Application with WTP
  • Build Maven based JEE Application with WTP

Below there is an outline of the scripts. For the scripts I would prefer to get suggestions from the community, therefore any suggestion or comment is helpful

Create an E4 Application with PDE, Window builder and E4Tools

get Eclipse ide, install PDE, check window builder, install e4 tools. Create E4application, test run the application

Open the E4 Model Editor, Add menu, link command to handler

add datamodel; use e4 model editor to declare Part Class.

add user interface. edit UI with Windowbuilder.

show databinding to link datamodel with UI.

Build an E4 Application with Tycho

Get the existing e4 application, create the 4 additional projects: parent, repository, feature, and test .

Setup parent pom with needed repositories, trigger mvn clean verify

It is possible to make a second video on how to create a modular project set, where we have a platform application and more client projects

Remember to move the .product file into the repository

Test E4 Application with SWTBot

Get the existing application with Tycho test, edit the test project by adding a JUnit Test. Create a Test helper class to access the E4Context and provide some basic method to interact with E4 App Model. As example, below there is an example to switch perspective

 

Create a JUnit test class that use the E4SwtBot to access the E4 Context  USe the recorder to record a test. run the test via run > JUnit plug-in tests, run the test via Tycho build

Build JEE Application with WTP

Install AS, Install WTP connectors for AS, launch application server from inside eclipse, verify the AS is running. Create an EJB Project , Write a basic HelloEJB Session bean.

Implementation of the HelloBeam

 

Create Dynamic Web Project, create a Servlet, reference the Hello EJB from project properties,

modify the Servlet code to respond using content stored in session bean

Build Maven-based Java EE applications in Eclipse

use m2e-wtp project to provide tight integration between WTP and Maven.

A good source is the fbrickon video at EclipseCon 2014

 

This page holds some references to WTP (Web Tools Platform) developer resources.

Main WTP references

Main references

WTP Contribution

Resources on how to contribute to WTP project:

There are also more easy-to-find resources on contributing

Other interesting info:

https://www.eclipse.org/webtools/community/tutorials/DevelopingWTP/DevelopingWTP.html

 

 

Quick reference on Eclipse E4 Spies I use for development and debug of Eclipse E4 RCP Applications.

  • Eclipse Spy Shortcuts: ALT+SHIFT+ ( F1 | F2 | F3 | F5 | F6 | F8 | F9 | F10 | F12 )
  • Running platform: Mars SDK added by all plugins in platformUiTools.psf, plus the live editors plugin.
  • Test E4 RCP Application with spies

Eclipse Spies Shortcuts

Below, names and key combinations for the spies I use more often:

  • Plug-In Selection Spy: ALT+SHIFT+F1
  • Plug-In Menu Spy: ALT+SHIFT+F2
  • Model Spy: ALT+SHIFT+F9
  • Context Spy: ALT+SHIFT+F10
  • Event Spy : ALT+SHIFT+F8
  • Css Spy ALT+SHIFT+F5 and scratchpad ALT+SHIFT+F6
  • Bundle Spy: ALT+SHIFT+F12

Spies quick description:

+Fn Name Usage
F1 Plug in Selection Spy Find the class implementing the Selected UI element
F2 Plug In Menu Spy Get Info about the class implementing a menu.
F9 E4 Model Spy Inspect and change E4 model at runtime (live).
F10 E4 Context Spy Examine the context tree data at runtime
F8 E4 Event Spy Display E4 events at runtime
F5 (F6) E4 CSS Spy Show (edit via scratchpad) the CSS for the UI.
F12 Bundle Spy Display status of bundles, as the OSGi console.

Running Platform

For this article I am using a recent Eclipse I-Build for the Eclipse, added with platformUiTools plugins (for contributing to the Platform UI project) and added of the eclipse All Spies plugin ( I think it was called live editor).

  • Get Eclipse SDK from the downloads: http://download.eclipse.org/eclipse/downloads/
  • Add the Platform UI Tools plugins by donwloading the file platformUiTools.psf and installing from menu:
    File > Import > Install > Install Software Items from File
  • Add the eclipse liveeditors plugins by installing Eclipse 4 – All Spies from the e4 update site .

Test E4 RCP Application with Spies

To use the spies for testing your E4 RCP application it is enough you create a new launch configuration and add the live editor plugin with the needed dependencies:

  • Create a new Eclipse launch configuration and switch to Plug-ins tab, on the right side
  • Select Launch with: “plugin selected below only”, then select the set of plugins to run your application
  • Then start filtering and select the org.eclipse.e4.tools.emf.liveeditor plugin
  • Finally, Add Required Plug-ins and launch your application

After launching the application, you can press any of the presented Key combinations, to show the needed spy. As example, below you can see the E4 Model Spy for a running Eclipse Instance

References: