SDA SE Wiki

Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering

User Tools

Site Tools


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
teaching:labs:xp:2009a:topic_swt_jface [2009/03/12 15:46]
heinrich.wendel
teaching:labs:xp:2009a:topic_swt_jface [2018/05/09 01:59] (current)
Line 1: Line 1:
 +====== Building GUIs for Eclipse: SWT and JFace ======
 +
 +Slides: [[https://​svn.iai.uni-bonn.de/​repos/​IAI_Software/​xp/​agile2009a/​Slides/​topic-swt.pptx|SWT]],​ [[https://​svn.iai.uni-bonn.de/​repos/​IAI_Software/​xp/​agile2009a/​Slides/​topic-jface.ppt|JFace]] \\
 +Experts: **Fisnik Kastrati, Heinrich Wendel**\\
 +Contact: Daniel Speicher
 +
 +===== Five points to remember =====
 +  - Every SWT application requires a Display and one or more Shells.
 +  - The Shell is a composite object; it can contain other composite objects. ​
 +  - The Shell window must be opened to be displayed. ​
 +  - JFace is Model-View-Controller everywhere
 +  - It looks more complicated than it is
 +
 +----
 +
 +===== Question and Answers =====
 +
 +  * **Q:** What means LCD? (In the context of UI platform incompatibilities?​)
 +  * **A:** Lowest/​Least Common Denominator (deutsch: Kleinstes gemeinsames Vielfaches). Here the maximal set of widgets that run on any operating system.
 +
 +  * Remark: Communication with SWT has to be done on the Display-thread. Display provides the methods to execute [[http://​java.sun.com/​j2se/​1.4.2/​docs/​api/​java/​lang/​Runnable.html|Runnables]] [[http://​help.eclipse.org/​stable/​nftopic/​org.eclipse.platform.doc.isv/​reference/​api/​org/​eclipse/​swt/​widgets/​Display.html#​syncExec(java.lang.Runnable)|synchronously]] and [[http://​help.eclipse.org/​stable/​nftopic/​org.eclipse.platform.doc.isv/​reference/​api/​org/​eclipse/​swt/​widgets/​Display.html#​syncExec(java.lang.Runnable)|asynchronously]].
 +
 +  * **Q:** What is the difference between and Action and a Command?
 +
 +  * **Q:** Are CellEditors strategies? Does the Viewer hold one instance of an editor for all cells?
 +
 +  * **Q:** Can you deploy JFace applications independently from Eclipse? (Standalone?​)
 +
 +  * **Q:** What is the relation between ViewPart, Viewer and View?
 +
 +----
 +
 +
 +
 +==== Introduction into Eclipse, SWT and JFace ====
 +
 +===  Getting Started with Eclipse and SWT ===
 +
 +  * [[http://​www.cs.umanitoba.ca/​~eclipse/​]]
 +
 +===  SWT ===
 +
 +  * Main information at eclipse.org:​ [[http://​dev.eclipse.org/​viewcvs/​index.cgi/​%7echeckout%7e/​platform-swt-home/​dev.html#​docs]]
 +  * [[http://​eclipse.org/​articles/​main.html#​swt|Articles]]
 +
 +===  JFace ===
 +  * [[http://​help.eclipse.org/​help32/​index.jsp?​topic=/​org.eclipse.platform.doc.isv/​guide/​jface.htm|Eclipse Developer Guide]]
 +  * [[http://​www.cs.umanitoba.ca/​~eclipse/​11-jface.pdf]]
 +
 +===  Viewing HTML pages in SWT Browser ===
 +
 +  * [[http://​www.eclipse.org/​articles/​article-swt-browser-widget/​browser.html]]
 +
 +===  Even more Links ===
 +  *{{:​teaching:​labs:​xp:​2008a:​seminar:​building_gui_s_for_eclipse_.pdf|Introduction to SWT and JFace}}
 +  *{{:​teaching:​labs:​xp:​2008a:​seminar:​codes.zip|Download the Sample codes for the above talk here.}} ​
 +  *{{:​teaching:​labs:​xp:​2007b:​daniel_tobias_xp.pdf|Short Introduction to Eclipse, SWT and JFace}}
 +  *[[http://​roots.iai.uni-bonn.de/​lehre/​xp2005b/​attach?​page=doc%2fswt.ppt|Ahmand'​s talk about eSWT]]
 +  *[[http://​roots.iai.uni-bonn.de/​lehre/​xp2005b/​attach?​page=doc%2fvortragjface.ppt|Verena'​s talk about eJFace]]
 +  *[[http://​www.eclipse.org/​articles/​article-image-viewer/​image_viewer.html|A Basic SWT Image Viewer]]. Includes code for resizing images.
 +
 +Here are some more tips & tricks how to use swt. Especially how to dispose resource (maybe this helps with the leak)
 +
 +  *[[http://​www.eclipse.org/​articles/​article-writing%20your%20own%20widget/​writing%20your%20own%20widget.htm]]
 +  *[[http://​www.cs.umanitoba.ca/​~eclipse/​]]
 +
  
teaching/labs/xp/2009a/topic_swt_jface.txt · Last modified: 2018/05/09 01:59 (external edit)

SEWiki, © 2019