Presentation is loading. Please wait.

Presentation is loading. Please wait.

© 2008 by SAS Institute Inc. and ILOG S.A.; made available under the EPL v1.0 | 2008-03-18 Swing/SWT Integration with the Albireo Project Gordon Hirsch.

Similar presentations


Presentation on theme: "© 2008 by SAS Institute Inc. and ILOG S.A.; made available under the EPL v1.0 | 2008-03-18 Swing/SWT Integration with the Albireo Project Gordon Hirsch."— Presentation transcript:

1 © 2008 by SAS Institute Inc. and ILOG S.A.; made available under the EPL v1.0 | 2008-03-18 Swing/SWT Integration with the Albireo Project Gordon Hirsch Bruno Haible

2 Swing/SWT Integration with the Albireo Project | © 2008 by SAS Institute Inc. and ILOG S.A.; made available under the EPL v1.0 Why? Why embed Swing in Eclipse/RCP applications? Reuse existing Swing GUIs Incremental adoption of RCP Use vendor libraries built upon Swing Why the need for Albireo? SWTs SWT_AWT bridge is low-level Albireo is much easier to use Common integration tasks are performed Some complexity from multithreading is hidden

3 Swing/SWT Integration with the Albireo Project | © 2008 by SAS Institute Inc. and ILOG S.A.; made available under the EPL v1.0 Features Easier to use than naked SWT_AWT Synchronized look&feel Reduced flicker of embedded Swing components Correct behavior of modal dialogs across both toolkits Proper focus handling, tab traversal Reduced keystroke contention Easier multithreading Smooth integration of size/layout management SWT pop-up menus on Swing components

4 Swing/SWT Integration with the Albireo Project | © 2008 by SAS Institute Inc. and ILOG S.A.; made available under the EPL v1.0 Code Example SwingControl control = new SwingControl(parent, SWT.NONE) { protected JComponent createSwingComponent() { return new JMagicPanel(); } public void preferredSizeChanged(...) { parent.layout(); } };

5 Swing/SWT Integration with the Albireo Project | © 2008 by SAS Institute Inc. and ILOG S.A.; made available under the EPL v1.0 Status Easy to use Synchronized look&feel Flicker Modal dialogs Focus handling Keystroke contention Multithreading Size/layout management SWT pop-up menus

6 Swing/SWT Integration with the Albireo Project | © 2008 by SAS Institute Inc. and ILOG S.A.; made available under the EPL v1.0 More about Albireo Visit our BOF! Your feedback will be welcome. Project home page: http://www.eclipse.org/albireo http://www.eclipse.org/albireo Project wiki: http://wiki.eclipse.org/Albireo_Project http://wiki.eclipse.org/Albireo_Project


Download ppt "© 2008 by SAS Institute Inc. and ILOG S.A.; made available under the EPL v1.0 | 2008-03-18 Swing/SWT Integration with the Albireo Project Gordon Hirsch."

Similar presentations


Ads by Google