站内搜索: 请输入搜索关键词
当前页面: 图书首页 > Eclipse Rich Client Platform: Designing, Coding, and Packaging Java Applications

Chapter 10.  Messaging Support - Eclipse Rich Client Platform: Designing, Coding, and Packaging Java Applications

Previous Page
Next Page

Chapter 10. Messaging Support

Eclipse RCP tooling makes creating RCP applications easythere are wizards and editors that help automate the error-prone tasks of branding, exporting, and configuring an application. You could stop here, but the real fun of developing an RCP application is writing the domain-specific code. Hyperbola is no exception.

These tools and programming constructs are generic; they are not specific to application domains such as banking, stock trading, streaming video, instant messaging, or Mars space missions. That's where you come in. You will spend most of your time working on the code for your domain. Again, this is one of the benefits of Eclipseit is essentially middleware that allows you to focus on your problems rather than on the infrastructure.

This chapter makes Hyperbola a real instant messaging client. The goal is to get Hyperbola into a state where you can chat and add in more of the features you expect from an instant messaging application. As such, this chapter focuses somewhat more on the instant messaging domain and the details of getting set up to chat rather than generic RCP issues. Specifically, we show you how to:

  • Integrate a third-party XMPP library called Smack.

  • Replace the prototype model with Smack.

Note

There are several places in this chapter that require more code changes or new code than we can detail in the text. Instead, the sample code for this chapter contains all the changes, and we essentially take you on a tour of the code and highlight the points of particular interest. If you have the time, you may want to follow along and make the changes yourself.



Previous Page
Next Page