Comments
Richard Davies wrote: The UK has a good crop of technology pioneers in cloud computing - for example ElasticHosts, FlexiScale, Flexiant, OnApp - and also some strong government initiatives such as G-Cloud. We will have to see whether this kind of technical leadership converts into swift mass-market adoption or not.
Cloud Expo on Google News


2008 West
DIAMOND SPONSOR:
Data Direct
SOA, WOA and Cloud Computing: The New Frontier for Data Services
PLATINUM SPONSORS:
Red Hat
The Opening of Virtualization
GOLD SPONSORS:
Appsense
User Environment Management – The Third Layer of the Desktop
Cordys
Cloud Computing for Business Agility
EMC
CMIS: A Multi-Vendor Proposal for a Service-Based Content Management Interoperability Standard
Freedom OSS
Practical SOA” Max Yankelevich
Intel
Architecting an Enterprise Service Router (ESR) – A Cost-Effective Way to Scale SOA Across the Enterprise
Sensedia
Return on Assests: Bringing Visibility to your SOA Strategy
Symantec
Managing Hybrid Endpoint Environments
VMWare
Game-Changing Technology for Enterprise Clouds and Applications
Click For 2008 West
Event Webcasts

2008 West
PLATINUM SPONSORS:
Appcelerator
Get ‘Rich’ Quick: Rapid Prototyping for RIA with ZERO Server Code
Keynote Systems
Designing for and Managing Performance in the New Frontier of Rich Internet Applications
GOLD SPONSORS:
ICEsoft
How Can AJAX Improve Homeland Security?
Isomorphic
Beyond Widgets: What a RIA Platform Should Offer
Oracle
REAs: Rich Enterprise Applications
Click For 2008 Event Webcasts
SYS-CON.TV
Top Links You Must Click On


Sneak Peek: Tapestry Palette - My First Eclipse Plugin
Sneak Peek: Tapestry Palette - My First Eclipse Plugin

In working with Tapestry I find myself getting confused by the number of components and their parameters, even when using the excellent Spindle plugin. I haven't written an Eclipse plugin yet so I put together a plugin, building on the Spindle classes to browse the components available in my project.

The plugin adds a new view the 'Palette' to Eclipse. The image below shows the Palette on the left of the source code editor area (click on the image to see a larger view).


The Palette consists of a tree of Tapestry components, organized by namespace. Selecting a component in the tree displays a summary in the lower part of the view showing the component description and listing required and optional parameters along with their descriptions.


Once I got this far I looked into using the Palette as a source for component editing data. I reviewed the Eclipse drag and drop API and eclipse extensions for adding drag and drop functionality to existing views and editors. I was able to add drop functionality to the Spindle TemplateEditor so that dragging a component out of the Palette onto the editor inserts a <span> tag with an implicit component declaration, including attributes for required parameters at the current insertion point (you have to click in the editor at the point at which you want the component declaration to be inserted). If a range of text is selected and the dragged component allows a body the span will wrap the selection, otherwise an error dialog appears. Warning: The drop/editing code works on Linux but not on Mac OS X.

This is my first cut at the plugin, there is only minimal error checking. The Palette requires that a Tapestry project (created with Spindle) is the current project and there is at least one open source code editor in the workspace when the Palette is opened. It refreshes too often and there are some issues with resizing the view.

The plugin requires that the Spindle plugin is installed.

Download the plugin: tapestry-palette-0.01.zip

Unzip in your Eclipse install directory and restart Eclipse.

To open the Palette use the Window > Show View > Other > Tapestry > Palette menu. Make sure a Tapestry project is the current project and at least one editor window is open.



 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
I'd like to add support for adding component declarations to the specification file, a wizard for setting component id and parameter values and support for inserting tags other than <span> for certain components, such as <input> tags for components representing form elements.

Many of the components, especially in the contrib library are missing descriptions and many components, have no descriptions for their parameters.

I'm working on getting the drag and drop working on Mac OS X so I can work on this on my powerbook.

About Mike Henderson
Mike Henderson is an independent consultant based in Southern California. He has been working with Java since 1999, prior to that he concentrated on Objective-C development and was a WebObjects consultant with NeXT Software. Mike has extensive experience developing Web applications with component-based frameworks and over 15 years
experience developing distributed software systems in a broad range of industries.

In order to post a comment you need to be registered and logged in.

Register | Sign-in

Reader Feedback: Page 1 of 1

The palette has matured since this article was written, visit the SourceForge site at :

http://tapestrypalette.sf.net

to see the new features. Now you can download and installTapestry component libraries via drag and drop


Your Feedback
Mike Henderson wrote: The palette has matured since this article was written, visit the SourceForge site at : http://tapestrypalette.sf.net to see the new features. Now you can download and installTapestry component libraries via drag and drop
Enterprise Open Source Magazine Latest Stories . . .
Apache Deltacloud, the Red Hat-contributed ReSTful API that abstracts differences between clouds so services on any cloud can be managed – provided of course there’s a driver – has graduated from the Apache Foundation’s incubator and is now a full-fledged Top-Level Project (TLP). The...
With Cloud Expo 2012 New York (10th Cloud Expo) just four months away, what better time to start introducing you in greater detail to the distinguished individuals in our incredible Speaker Faculty for the technical and strategy sessions at the conference... We have technical and st...
AMD said late Tuesday that its chief sales officer Emilio Ghilardi had left the company and that CEO and president Rory Read is going to do his job while a replacement is sought. AMD didn’t say why Ghilardi left but it’s assumed Read wants his own people. Read is relatively new to th...
During the lifespan of M3 (Monitis Monitor Manager) there has always been something lacking – timers. M3 execution procedure was outlined in this previous article. The execution mentioned in the latter was a one-time-execution, whereas server monitoring requires periodic invocati...
Red Hat is putting its bought-in Gluster scale-out NAS storage technology, acquired in October, on the Amazon cloud. It’s styled Red Hat Virtual Storage Appliance for Amazon Web Services and other clouds are supposed to follow in short order.
A new episode of the screencast series is now available at the OpenNebula YouTube Channel. This screencast demonstrates the new easily-customizable self-service portal for cloud consumers. Its aim is to offer a simplified access to shared infrastructure for non-IT end users. The scree...
Subscribe to the World's Most Powerful Newsletters
Subscribe to Our Rss Feeds & Get Your SYS-CON News Live!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021


SYS-CON Featured Whitepapers
ADS BY GOOGLE