Saturday, September 12, 2009

Eclipse E4 and XWT - First Steps

I've been working with wxWidgets, Qt, GTK, JFace, SWT and Windows Presentation Foundation. Now it's time to check XWT. In order to do that I've started to write my next application using that tool. So far I found only two problems. One is that preview for XWT UI doesn't work for the examples from eclipse cvs (at least on Ubuntu) and second that XWT versions of the examples doesn't want to compile (a solution is described below).

If you want to start with XWT I would suggest reading the source code of examples:
  1. Download the newest Eclipse e4
  2. Start it
  3. From main menu choose File->Import
  4. Select CVS->Projects from CVS
  5. Select Create a new repository location
  6. Paste :pserver:dev.eclipse.org:/cvsroot/eclipse to Host
  7. Set anonymous as a user
  8. Leave an empty password
  9. Select Use an existing module
  10. From the list of modules select all examples in e4->org.eclipse.e4.xwt->examples
  11. Select also e4->org.eclipse.e4.xwt->bundles->org.eclipse.e4.xwt.ui.workbench (without this bundle xwt examples don't want compile)
  12. Click Finish
To run one of examples:
  1. Start Eclipse e4
  2. Open file contacts.product from a project org.eclipse.e4.demo.contacts
  3. Choose Overview tab in a view where file was opened
  4. Click Launch an Eclipse application
Useful links:

http://www.vogella.de/blog/2009/08/18/eclipse-e4-css/
http://www.soyatec.org/xwt/trunk/org.soyatec.xwt.emf.demo/src/demo/
http://wiki.eclipse.org/E4/XWT/Running_the_demos
http://wiki.eclipse.org/E4/XWT
http://www.vogella.de/articles/EclipseE4/article.html
http://dev.eclipse.org/blogs/yvesyang/2009/01/17/xwt-getting-started/
http://dev.eclipse.org/blogs/yvesyang/2008/11/28/xwt-declarative-ui-designed-for-eclipse/
http://download.eclipse.org/e4/downloads/drops/S-0.9M5-200907101930/e4-news-M5.html

No comments: