Electronic Design

  
Reprints     Printer-Friendly    Email this Article    RSS        Font Size     What's This?


[Design View / Design Solution]
Write Less Code And Deliver Java Apps Faster With Eclipse 3.0
Base your next application on the Eclipse RCP and you can start thinking about reusing code—and get better cross-platform user interfaces.

Jed Anderson, Todd Williams  |   ED Online ID #8715  |   September 20, 2004


DESIGN VIEW is the summary of the complete DESIGN SOLUTION contributed article, which begins on Page 2.

Full article begins on Page 2

Writing desktop applications has always been about compromises. If you want your application to be truly native, you need to select the platform and use its frameworks, tool kits, and low-level application programming interfaces (APIs) to build your application, using whatever programming language(s) it supports. While you'll certainly give up cross-platform portability, you will be able to provide users with the exact look and feel they expect.

But what if you want your application to run on multiple platforms? The most common solution has been to write Java applications that use a Swing user interface. With this approach, you'll gain support for multiple platforms. But you'll lose the use of native user-interface (UI) widgets and dialogs, which will jeopardize the native look and feel that's critical for end-user acceptance. If Java is to be a viable language for desktop applications, we need to be able to write cross-platform Java applications that use a native UI.

This is where Eclipse steps in. While most Java developers are familiar with Eclipse, they tend to think of it simply as a Java integrated development environment (IDE). However, when viewed at that level, Eclipse is unique because it looks like a native application upon whatever platform it is run. If you dig a little deeper, you'll see that the IDE is simply a specific type of application built on top of the Eclipse Rich Client Platform (RCP), which is part of Eclipse 3.0

The RCP is a platform for building applications. And because the IDE is built on top of the RCP, we have a rather compelling body of evidence that it's both extensible and flexible enough to support the construction of world-class applications with a native UI.

The article presents a step-by-step procedure for building an image viewer on top of an Eclipse RCP framework, including the appropriate code.

HIGHLIGHTS:
Building An Image-Viewer Application To solve the problem of having scattered photo directories, this article explores building a cross-platform image viewer using Eclipse 3.0.
Getting Started When building the application, you first must install the appropriate software development kit (SDK), which in this case is one of the Eclipse distributions. Because it will be a Rich Client Platform (RCP) application, the full Eclipse SDK is required (from the Eclipse Web site).
Key Steps The fundamental steps involved in creating the image viewer are: building the image viewer's core functionality; converting the image viewer to an RCP application; and packaging the image viewer for distribution.
Sidebar: The Case For Eclipse This sidebar runs down a host of reasons why Eclipse may be the right solution for your application.
Completed Projects View Figure 7 offers a view of completed development projects, showing all plug-in and feature projects.
Directory Structure Figure 8 depicts the directory structure, which shows the completed standalone application ready for distribution.

Full article begins on Page 2


<-- prev. page     [1] 2 3 4     next page -->

Reprints   Printer-Friendly  Email this Article  RSS    Font Size   What's This?


  • Network-On-Chip Tools Arrive for The Masses
  • Tackling System Design Challenges Through Early Verification
  • ESL Tools Take Center Stage As Designers Move Up
  • Parasitic Extraction Tool Targets Next-Generation Custom ICs
  • Synopsys Jumps Into ESL-Synthesis Pool
  • Verify Control Systems Before Committing To Hardware
  • You're Using How Many FPGAs?
  • Tool Up For The FPGA Blitz
    1) Build A Smart Battery Charger Using A Single-Transistor Circuit
    (187 views today)
    2) Hot Hands For Some Cool Rock: Motion Sensing Meets Audio Engineering
    (166 views today)
    3) Science Fiction Meets Science Fact In Today's Robot Research
    (96 views today)
    4) GPS-Derived Grandmaster Clock Delivers Ultra-Precise Time And Frequency Sync
    (89 views today)
    5) What's All This Transimpedance Amplifier Stuff, Anyhow? (Part 1)
    (86 views today)
    ALL TOP 20



    POST YOUR COMMENTS HERE
    Name:

    Email:
    Your Comments:

    Enter the text from the image below


    Please refresh the page if you have trouble reading this text.

    Search Electronic Design
         
      
     
    Web Seminar
    Sponsored By:
    Title: Read Pacing: A Performance Enhancing Feature of PCI Express Gen 2 Switch Devices
    Speakers: 
    Date: 07/01/08
    Register: 

    Electronic Design Europe Electronic Design China EEPN Power Electronics Auto Electronics Microwaves & RF
    Mobile Dev & Design Schematics Find Power Products Military Electronics EE Events Related Resources