gamelan
Search EarthWeb
CodeGuru | Gamelan | Jars | Wireless | Discussions
Navigate developer.com
Architecture & Design  
Database  
Java
Languages & Tools
Microsoft & .NET
Open Source  
Project Management  
Security  
Techniques  
Voice  
Web Services  
Wireless/Mobile
XML  
Technology Jobs  

   Developer.com Webcasts:
  The Impact of Coding Standards and Code Reviews

  Project Management for the Developer

  Defining Your Own Software Development Methodology

  more Webcasts...




See the Winners!


Developer Jobs

Be a Commerce Partner
Remote Online Backup
Promotional Products
Holiday Gift Ideas
Corporate Gifts
Best Price
Rackmount LCD Monitor
Career Education
GPS
Promos and Premiums
Logo Design
Domain registration
Online Shopping
Laptops
Promotional Golf

 

Click Here
Web Devs:
Moonlight as a Game Developer and Win Cool Prizes by Accepting the RIA Run Challenge

Now, your mission--should you choose to accept: Take your shot at gaming stardom if you think you might have what it takes to build a cool RIA game and you could win an Xbox 360 or other fabulous prizes. Hurry! You only have until May 15, 2008 to enter. »

 
Article:
Leveraging Your Flash Development with Silverlight

You're not giving up Flash any time soon (and we don't blame you.) But if you could get your Flash application working in Silverlight, why wouldn't you? We show you the tools and techniques required to have your rockin' Flash application rolled for Silverlight. Learn more here. »

 
Article:
What Does it Take to Build the Best RIA?

With the proliferation of Rich Interactive Application (RIA) platform choices out there, you no longer have to take a one-size-fits-all approach to developing your next RIA application. Knowing the strengths (and weaknesses) of each platform can help you to decide the best RIA for your next application. »

 
Developer News -
SaaS Tool Offers Custom Database Development    May 9, 2008
Microsoft’s Automated Agent: Can We Talk?    May 7, 2008
Borland Finally Sells CodeGear    May 7, 2008
Red Hat Heads For The JON 2.0    May 7, 2008
Free Tech Newsletter -

Project Management Guide: Developing a Web Site. Best Practices, Tips and Strategies. Download Exclusive eBook Now.

Eclipse Tip: Making a Good First Impression
By Peter Nehrer

Go to page: 1  2  Next  

Eclipse Tip: Making a Good First Impression

In the business world, few will question the importance of a good first impression. The initial encounter with someone tends to significantly influence the way you perceive them going forward, be it a new partner, customer, vendor, or employee. As any experienced developer or business user will attest, it is very much the same with software. Although a good marketing image of a product helps attract new customers, it also tends to set up high expectations for the user.

In today's competitive try-before-you-buy world, there is no greater shame than losing a potential customer because their initial experience with your product was unsatisfactory.

The Eclipse platform provides its extenders with several mechanisms to manage initial user experience. Ordinarily, when the user starts the application for the first time, they are greeted with the Welcome screen. The purpose of this feature is to introduce the product, as well as serve as a sort of a launch pad for the various pieces of functionality provided. A good welcome screen contains a high-level overview of the product and its features, with more detailed documentation available in the online help facility. Additionally, complex functions and processes are more easily explained using Cheat Sheets, which are typically accessible directly from the welcome screen. Subsequent product releases should also provide a brief summary of updated features for the benefit of users who are already familiar with older versions of the product.

Universal Intro


Figure 1: Overview page with sample contributed content (highlighted).

The Welcome screen, also referred to as the "Intro" view throughout platform documentation, has evolved over several Eclipse releases. Users familiar with versions prior to 3.0 may still recall the Welcome editor, which would be automatically opened after installing a new feature (and restarting the workbench). This form of welcome wasn't particularly visually appealing—the editor content typically consisted of a set of bullet points with links to online Help. There was little visual customization that could be done.

In Eclipse 3.0, the concept of a full-featured Welcome screen was introduced, with the ability to populate it with almost arbitrary HTML-based content, including rich graphics, links, actions, and dynamic (in other words, generated live) content. Even though this framework provided a great deal of extensibility, it proved too difficult for large-product assemblers to customize, particularly when a number of disparate features were to be included in the product. Thus, version 3.2 brought about the Universal Intro, which gave product assemblers the ability to customize the layout and content of the Welcome screen based on the various contributions included in the final product.

The Intro framework is extensible and customizable at virtually every level. Product vendors can even replace the entire implementation with their own. However, when products are assembled from multiple features, and the user's ability to install new and unknown features is desired, the default implementation—the Universal Intro—is the preferred way to go.

Visually, the Welcome screen resembles a portal-like web page with links to several other pages. By default, Overview, What's New, Samples, and Tutorials are shown, but additional pages are available (First Steps, Migrate, and Web Resources). Each of these pages can be extended by contributing content to pre-defined "anchors." The user can customize both layout and content of these pages using Preferences (General -> Welcome).

The Intro view can actually be displayed in two modes—full and stand-by. In full mode the view is maximized across the whole window, whereas in stand-by mode it only shows up as a regular view. It is possible (and customary) to contribute different content for each mode (for example, a stream-lined version of the full page is typically displayed when in stand-by mode). The user is free to switch between the two modes at any time.

Contributing Intro Content

Although no substitute for solid functionality and accessible user interface (supported by context-sensitive help and supplemented by cheat sheets, when appropriate), the often underutilized welcome screen proves a good investment particularly for small add-in providers, who don't get to control the overall product branding and whose plug-in contributions often get "lost" in the context of a large product. Like most extensible features in Eclipse, the Universal Intro can be customized by means of an extension point. The org.eclipse.ui.intro.configExtension extension point allows you to extend a particular intro configuration, such as the default Universal Intro set up by the platform. In addition to intro content, stand-by parts, themes, and actions can also be contributed.

The actual content is not spelled out in the extension, but rather it is located in a separate XML file referenced in the extension, because it can potentially grow quite large. The intro content file has special format documented in the Platform Developer's Guide (see Resources). In a typical scenario, an extensionContent element is used to contribute content to an anchor defined elsewhere (in other words, specific page locations where add-in providers are expected to contribute their content). This element can further include simple text, links, entire HTML files (full pages or just snippets), or content groups defined elsewhere. It also can define its own groups of content (which can then be further reused). Hyperlinks can point to arbitrary URLs, but using specially formatted URLs of the form http://org.eclipse.ui.intro/<action name>?param1=value1&param2=value2 makes it possible to invoke plug-in-contributed code.

Example

To illustrate how to contribute custom content to the welcome page, you can create a simple plug-in that adds a section to the Overview page. I shall also provide a custom action and use it as a hyperlink target.

Listing 1: Sample intro content definition.
<introContent>
  <extensionContent
      id="comdeveloperwelcome-introExtension"
      style="css/sample.css"
      name="Sample Extension"
      path="overview/@">
    <group
        style-id="content-group"
        id="comdeveloperwelcome-introLink-group">
      <link 
          label="Sample Extension"
          url="http://www.developer.com"
          id="comdeveloperwelcome-introLink"
          style-id="content-link">
        <text>This is an example of how to contribute content
            to the Universal Welcome. Learn more about
            Eclipse at Developer.com.</text>
      </link>
    </group>
    <link
        label="Start developing plug-ins!"
        url="http://org.eclipse.ui.intro/goPDE"
        id="comdeveloperwelcome-pdeLink"
        style-id="sample-link"/>
  </extensionContent>
</introContent>

Just about the easiest way to get started is to create a new Plug-in project using the Custom plug-in wizard template:

  1. In the PDE perspective, click File -> New -> Project... and choose Plug-in Project from the list. Click Next.
  2. Give the project a meaningful name (which will also double as its plug-in ID). In the attached sample project, you use com.developer.welcome. Click Next.
  3. The defaults in the Plug-in content page should be fine, so just click Next.
  4. On the Templates page, select Custom plug-in wizard from the available templates and click Next.
  5. Uncheck all templates (click Deselect All) and check Universal Welcome Contribution. Click Next.
  6. On the last page, the defaults are fine, too (for illustration purposes). You can modify the Link URL if you wish. Click Finish.

When you now examine the newly created plug-in project, you will notice that there is an intro folder with some generated files. The file of interest is called sample.xml. This is the file that defines the content of our contribution. You may modify the text as you wish, but be careful to preserve the style-ids—they refer to CSS styles defined in sample.css. Finally, note that the file is referenced by the org.eclipse.ui.intro.configExtension extension in plugin.xml.

Go to page: 1  2  Next  


Tools:
Add www.developer.com to your favorites
Add www.developer.com to your browser search box
IE 7 | Firefox 2.0 | Firefox 1.5.x
Receive news via our XML/RSS feed


Enterprise Java Archives

Work With InterSystems. Not Separate Systems. Rapidly develop and deploy connectable applications.
Guide to Developing a Web Site. Best Practices, Tips and Strategies. Download Exclusive eBook Now.
Best Practices for Developing a Web Site. Checklists, Tips & Strategies. Download Exclusive eBook Now.
Is it time to make your move to the multi-threaded and parallel processing world? Find out!
Learn about expanding business opportunities for the reseller channel. Visit IT Channel Planet.



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: HyperV-The Killer Feature in WinServer ‘08
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Win Server ‘08
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES