1 / 11

Bryan Campbell Software Engineer, Lombardi Software March 14, 2008

Bryan Campbell Software Engineer, Lombardi Software March 14, 2008. Deep integration of GWT/JavaScript and Eclipse 3.3 using XULRunner and JavaXPCOM. Demo …. XULRunner. XPCOM. MessagingComponent() { void addToList (String msg) { messageList.add(msg); updateView(); } }.

yehudi
Download Presentation

Bryan Campbell Software Engineer, Lombardi Software March 14, 2008

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. Bryan CampbellSoftware Engineer, Lombardi SoftwareMarch 14, 2008 Deep integration of GWT/JavaScript and Eclipse 3.3 using XULRunner and JavaXPCOM

  2. Demo ….

  3. XULRunner XPCOM MessagingComponent() { void addToList(String msg) { messageList.add(msg); updateView(); } } IMessagingComponent { addToList(String msg); } JavaXPCOM XPConnect

  4. By wrapping the eclipse browser widget with XULRunner, we gain access to its component object model – XPCOM. XULRunner XPCOM MessagingComponent() { void addToList(String msg) { messageList.add(msg); updateView(); } } IMessagingComponent { addToList(String msg); }

  5. JavaScript can make calls to XPCOM through the XPConnect layer. XULRunner XPCOM MessagingComponent() { void addToList(String msg) { messageList.add(msg); updateView(); } } IMessagingComponent { addToList(String msg); } XPConnect

  6. Once the component is in place, the interface will be reflected to JavaScript through XPConnect • A call to this component might look similar to: XULRunner IMessagingComponent messenger = xpcom.create(IMessagingComponent); messenger.addToList(“EclipseCon 08”); XPCOM MessagingComponent() { void addToList(String msg) { messageList.add(msg); updateView(); } } IMessagingComponent { addToList(String msg); } XPConnect

  7. The Java Implementation will be the actual code that is run when a call to addToList(String) is made from the web app XULRunner XPCOM MessagingComponent() { void addToList(String msg) { messageList.add(msg); updateView(); } } IMessagingComponent { addToList(String msg); } XPConnect

  8. Similar to XPConnect, JavaXPCOM is the layer between Java and XPCOM allowing calls to be made, and XPCOM components to be used and manipulated. XULRunner XPCOM MessagingComponent() { void addToList(String msg) { messageList.add(msg); updateView(); } } IMessagingComponent { addToList(String msg); } JavaXPCOM XPConnect

  9. More Info • Check out http://development.lombardi.com for more coding examples and resources. • Source also available at http://code.google.com/p/javaxpcom/

More Related