1 / 11

JRuby on RCP << Glimmer >> by Annas “Andy” Maleh andy@obtiva Obtiva Corp.

JRuby on RCP << Glimmer >> by Annas “Andy” Maleh andy@obtiva.com Obtiva Corp. Preview. Introduction Comparison: Java on SWT Java on JFace and SWT JRuby on SWT Quick Demo Game Future of Glimmer More Information. Hello World. SWT Example (Java) ‏.

wmbrown
Télécharger la présentation

JRuby on RCP << Glimmer >> by Annas “Andy” Maleh andy@obtiva Obtiva Corp.

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. JRuby on RCP • << Glimmer >> • by • Annas “Andy” Maleh • andy@obtiva.com • Obtiva Corp.

  2. Preview • Introduction • Comparison: • Java on SWT • Java on JFace and SWT • JRuby on SWT • Quick Demo • Game • Future of Glimmer • More Information

  3. Hello World

  4. SWT Example (Java)‏ publicstaticvoid main(String[] args) { Display display = Display.getDefault(); Shell shell = new Shell(display); shell.setText("SWT"); shell.setLayout(new FillLayout()); Composite composite = new Composite(shell, SWT.NONE); composite.setLayout(new GridLayout()); Label label = new Label(composite, SWT.NONE); label.setText("Hello World!"); shell.pack(); shell.open(); while (!display.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } display.dispose(); }

  5. JFace Example (Java)‏ protected JFaceTest(Shell parentShell) { super(parentShell); setBlockOnOpen(true); open(); } @Override protected Control createContents(Composite parent) { getShell().setText("JFace"); getShell().setLayout(new FillLayout()); Composite composite = new Composite(parent, SWT.NONE); composite.setLayout(new GridLayout()); Label label = new Label(composite, SWT.NONE); label.setText("Hello World!"); return composite; } publicstaticvoid main(String[] args) { new JFaceTest(null); }

  6. SWT Example (JRuby Glimmer)‏ shell { text "JRuby on SWT" composite { label { text "Hello World!" } } }.open

  7. Demo (http://glimmer.rubyforge.org/svn/samples/contactmanager/)‏

  8. Game (http://glimmer.rubyforge.org/svn/samples/tictactoe/)‏

  9. Future of Glimmer • Data-binding support for combos, trees, and lists • RCP Plugins • RCP Extension Points • EMF • Birt??? • ...

  10. More Information Glimmer Eclipse Technology Project Proposal: http://www.eclipse.org/proposals/glimmer/ Glimmer Newsgroup: http://www.eclipse.org/newsportal/thread.php?group=eclipse.technology.glimmer Glimmer at RubyForge: http://rubyforge.org/projects/glimmer/ Sneak Peak at Glimmer: http://andymaleh.blogspot.com/2007/11/sneak-peak-at-glimmer.html Glimmer Data-Binding: http://andymaleh.blogspot.com/2007/12/glimmers-built-in-data-binding-syntax.html Glimmer Listens: http://andymaleh.blogspot.com/2007/12/listeners-in-glimmer.html

  11. Contact Andy Maleh andy@obtiva.com andymaleh.blogspot.com Obtiva Corp. www.obtiva.com

More Related