Close
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
Read Down
Sign in
Close
Welcome!Log into your account
Forgot your password?
Read Down
Password recovery
Recover your password
Close
Search
Logo
Subscribe
Logo
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
More
    Subscribe
    Home Development
    • Development
    • IT Management
    • Networking

    REVIEW: Eclipse Gets Palm WebOS Mojo

    Written by

    Jeff Cogswell
    Published September 23, 2009
    Share
    Facebook
    Twitter
    Linkedin

      eWEEK content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

      Palm‘s new software development kit for its WebOS, Mojo, includes the complete library for developing WebOS applications, as well an emulator that runs under Sun VirtualBox. The SDK also includes a plug-in for Eclipse so you can do all your development right within the Eclipse SDK.

      Like many Eclipse plug-ins, the Mojo plug-in is easy to install and use. If you’re familiar with Web development, you’ll feel right at home creating HTML and JavaScript files. In addition, the Eclipse IDE (integrated development environment) has full support for editing HTML, JavaScript and CSS files, which makes development a snap.

      Of course, the downside (and this is due to the SDK itself, not the Eclipse plug-in) is that you can’t write native, compiled applications in C or C++ as you could with earlier Palm products. For some developers, this could be a problem. The WebOS SDK does include a complete library for accessing the hardware, going well beyond what you could normally do in a Web application. But there’s still the issue of speed and, more importantly, graphics (which limits the creation of games).

      In general, however, with the help of the Eclipse plug-in, you can easily get started writing WebOS applications.

      For screenshots of Palm’s Mojo in action, click here.

      Installing the Eclipse plug-in is easy with the Install feature within Eclipse. Once the plug-in is installed, the IDE has several wizards to help in your WebOS development.

      During tests, I created a new WebOS project by simply choosing Palm WebOS -> Mojo Application from the New Project wizard. The wizard asked for the project name, a separate title for the project, a vendor name, and an ID and version.

      The ID is the name of the class. Although the code is in JavaScript, you use Java naming conventions. A default ID of com.vendorname.projectitle is created. In my case, it was com.ziffdavisenterprise.mojoapp1.

      Clicking Finish will create all the basic files for a new WebOS project.

      A WebOS project is Web-based. In other words, the application runs in a browser within WebOS (which, at heart, is Linux-based). Applications consist of various HTML files, JavaScript files and style sheets. The files are organized in a fixed tree structure, with directories such as app (which contains the HTML and JavaScript files), images and style sheets.

      Applications are organized into what are called scenes. A scene is essentially a single HTML file and an accompanying JavaScript file. The JavaScript files are called assistants, and they include the JavaScript code accompanying the HTML file in the form of a single object and its prototype methods.

      To help developers create scenes in Eclipse, the plug-in includes a wizard that automatically creates the skeleton files. During tests, I just right-clicked on my project in the Project Explorer and chose New -> Mojo Scene. A pop-up box asked for the name of the scene (such as FirstScene). Then the plug-in created the basic files. The JavaScript file includes a constructor function as well as several prototype methods that are event handlers for various scene-level events (such as activate, deactivate and cleanup).

      Because the applications are browser-based, they can be created as you would a typical Web application-by building HTML complete with DIV tags and style sheets. The WebOS includes a standard style sheet that provides a uniform look and feel across applications, as well as a whole set of controls that go beyond what’s normally available in a Web application. These controls are called widgets, and include buttons, menus and dialog boxes. The built-in libraries include full APIs for accessing and controlling the widgets.

      The WebOS plug-in is supposed to officially work with Version 3.4.2 of Eclipse (code-named Ganymede). However, I was able to successfully run it on Version 3.5 of Eclipse (code-named Galileo) without any problems.

      For more information on installing the Eclipse plug-in, click here.

      Jeff Cogswell
      Jeff Cogswell
      Jeff Cogswell is the author of Designing Highly Useable Software (http://www.amazon.com/dp/0782143016) among other books and is the owner/operator of CogsMedia Training and Consulting.Currently Jeff is a senior editor with Ziff Davis Enterprise. Prior to joining Ziff, he spent about 15 years as a software engineer, working on Windows and Unix systems, mastering C++, PHP, and ASP.NET development. He has written over a dozen books.

      Get the Free Newsletter!

      Subscribe to Daily Tech Insider for top news, trends & analysis

      Get the Free Newsletter!

      Subscribe to Daily Tech Insider for top news, trends & analysis

      MOST POPULAR ARTICLES

      Artificial Intelligence

      9 Best AI 3D Generators You Need...

      Sam Rinko - June 25, 2024 0
      AI 3D Generators are powerful tools for many different industries. Discover the best AI 3D Generators, and learn which is best for your specific use case.
      Read more
      Cloud

      RingCentral Expands Its Collaboration Platform

      Zeus Kerravala - November 22, 2023 0
      RingCentral adds AI-enabled contact center and hybrid event products to its suite of collaboration services.
      Read more
      Artificial Intelligence

      8 Best AI Data Analytics Software &...

      Aminu Abdullahi - January 18, 2024 0
      Learn the top AI data analytics software to use. Compare AI data analytics solutions & features to make the best choice for your business.
      Read more
      Latest News

      Zeus Kerravala on Networking: Multicloud, 5G, and...

      James Maguire - December 16, 2022 0
      I spoke with Zeus Kerravala, industry analyst at ZK Research, about the rapid changes in enterprise networking, as tech advances and digital transformation prompt...
      Read more
      Video

      Datadog President Amit Agarwal on Trends in...

      James Maguire - November 11, 2022 0
      I spoke with Amit Agarwal, President of Datadog, about infrastructure observability, from current trends to key challenges to the future of this rapidly growing...
      Read more
      Logo

      eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site’s focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

      Facebook
      Linkedin
      RSS
      Twitter
      Youtube

      Advertisers

      Advertise with TechnologyAdvice on eWeek and our other IT-focused platforms.

      Advertise with Us

      Menu

      • About eWeek
      • Subscribe to our Newsletter
      • Latest News

      Our Brands

      • Privacy Policy
      • Terms
      • About
      • Contact
      • Advertise
      • Sitemap
      • California – Do Not Sell My Information

      Property of TechnologyAdvice.
      © 2024 TechnologyAdvice. All Rights Reserved

      Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.