Eclipse Forms Article

Earlier today, I posted an article on Eclipse Forms by Dejan Glozic onto the Eclipse Corner Articles site. It’s pretty powerful stuff; using the Forms API, you can build user interface components that look and feel “browser-like”. As the article suggests, forms are probably best suited for views and editors (not dialogue boxes), but you can use them anywhere it makes sense for you. The PDE makes extensive use of it and is a good demonstration of the power provided.

While editing this article, I made use of the advice it gives in my EBay sample RCP application. I created an editor that uses the Forms API to display some information about the selected item.

I especially like the collapsible sections and the form text control for the description. Using form text was a little problematic: the documentation for form text explicitly states that it is not intended as a replacement for a browser, but it does support a lot of HTML markup. Unfortunately, EBay descriptions tend to contain a huge amount of arbitrary markup, so I had to write a little code to sanitize the HTML and parse out all the weirdness (tables, divisions, etc.) It’s not perfect yet, but is getting very close to what I want.

In any case, Dejan’s article was very helpful.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s