User Tools

Site Tools


blog:e4_a_first_look

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
blog:e4_a_first_look [2012/05/18 17:11]
127.0.0.1 external edit
blog:e4_a_first_look [2014/10/17 22:08] (current)
Line 1: Line 1:
 +====== E4:  A First Look ======
 +
 +I've finally got some cycles to catch up on E4 a bit.  The first thing I notice is that in E4, you wind up with a lot of code that looks something like this:  (from http://​www.vogella.de/​articles/​EclipseE4/​article.html)
 +
 +<code java>
 +public class View1 {
 + @Inject
 + public View1(Composite parent) {
 + Label label = new Label(parent,​ SWT.NONE);
 + label.setText("​E4 is new");
 + Text text = new Text(parent,​ SWT.NONE);
 + text.setText("​and different"​);​
 + }
 +}
 +</​code>​
 +
 +The first thing I notice is the dependency injection: there'​s no explicit dependency on Eclipse anywhere to be seen.
 +
 +I haven'​t worked out all the implications of that @Inject annotation, but at first blush this sort of thing would seem to make E4 *much* more testable than previous versions of Eclipse were.
 +
 +If I'm right, this is pretty huge.  It's not exactly a killer feature, but it's very important.
 +
 +Thoughts?
 +
 +~~LINKBACK~~
 +~~DISCUSSION:​closed~~
  
blog/e4_a_first_look.txt ยท Last modified: 2014/10/17 22:08 (external edit)