Thursday, September 6, 2007

"Add to .cvsignore" dialog

It seemed to be an easy to fix bug. We just wanted to prevent a user from adding a filename with spaces to a .cvsignore file. A suggestion was to use a custom pattern with '?' instead of all the spaces. At the same time I decided to dust the dialog off a little bit. To achieve that I thought it would be a good idea to get some information about Eclipse UI Guidelines. This is when the fun started.

Here are the guidelines applied to the dialog, most of them are citations taken from Top Ten Eclipse UI Guidelines.
  • Offer mnemonics
  • Use proper margins size
  • Use single quotes for all references to element names embedded in text (Properties for 'Test')
  • Dialog title should use headline style capitalization
  • Dialog title should relate to the action that brought up the dialog ('Apply Patch', 'Package Selection')
  • Dialog title should be short and unique so they can be referred by in bug reports / documentation
  • When visible for the first time always set a focus field
  • When visible for the first time don't show an error until the user made the first modification
Other pages related to Eclipse UI guidelines/best practices:
So as you can see what seemed to be an easy bug became something a little bit more... time consuming. Anyway let's see the result. This is how the dialog looked before (it's ugly, isn't?):



and this is how it looks now:


I hope you'll like it's new appearance as much as I do. Those little things can really make you happy and proud.

Tuesday, September 4, 2007

Photo session

We made this photo session specially for readers of our blog . For those who don't know us...
Zaza (Tomasz Zarna) is in an orange t-shirt, Simon Good (Szymon Brandys) is in black :-) and Kristek (Krzysztof Michalski) is the third guy.














Enjoy ;-)

Monday, September 3, 2007

In search of a bug

Everyone working with Eclipse Bugzilla makes more than a dozen of searches everyday. Here are my few tricks to make this a little easier. I'm a Firefox fan, so all IE users can stop reading here.
  • Smart Keywords in Mozilla Firefox

  • I've created a Smart Keyword which when I type "b <bug number>" into Firefox's Location bar and hit enter takes right to the page with that bug. This is how I've done it:

    1. Visit the page that has the search field you're interested in - https://bugs.eclipse.org/bugs/query.cgi

    2. Right click on the search field. Choose "Add a Keyword for this Search...".



    3. The Add Bookmark dialog will appear. Give the bookmark a name, e.g. "Bug Search" and create a keyword e.g. "bug" (I'm to lazy to type the whole word so I'm using "b" only) and save the Bookmark.


    4. That's it. Now when you enter "bug <bug number>" into the Location bar and press Enter you will get the page with that bug.

  • OpenSearch plug-in for Mozilla Firefox

  • Next thing I would like to share with you is an idea of how to use an OpenSearch plug-in to work with Eclipse Bugzilla. I've created two for my own use. One for Team, Compare and CVS components and the second one for Resources component only. Plese visit this page if you want to install them. You can freely modify the to plug-ins to fit your needs.

    To make a plug-in work for the SWT component for example, simply change attributes as shown below:
    <SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/">
    <ShortName>Eclipse SWT Bugs</ShortName>
    <Description>Search Eclipse Bugzilla for a bug in SWT component</Description>
    <InputEncoding>UTF-8</InputEncoding>
    ...
    <Url type="text/html" method="GET" template="https://bugs.eclipse.org/bugs/buglist.cgi">
    <Param name="query_format" value="advanced"/>
    <Param name="short_desc_type" value="allwordssubstr"/>
    <Param name="short_desc" value="{searchTerms}"/>
    <Param name="classification" value="Eclipse"/>
    <Param name="product" value="Platform"/>
    <Param name="component" value="SWT"/>
    <Param name="long_desc_type" value="allwordssubstr"/>
    ...
    To make things even easier you can use Ctrl+K to send the cursor into the search box and then you can navigate up and down the engine list using Ctrl+Up Arrow and Ctrl+Down Arrow.
And last but not least, give Mylyn a try. It's really worth the effort, but this is a whole new story requiring a separate post.

I hope you find both tricks as useful as I do.

The Beginning

Today is the day. We agreed that we should start our own blog. The only problem was (excluding choosing a nice template) picking the blog's name to register. We had plenty of ideas. Just to mention few of them:
  • Soldats of Eclipse
  • Eclipse Troops
  • Workspace Eclipse Team (WET)
  • Polish Eclipse Team (PET)
  • Eclipse Clan
  • Polishing Eclipse
  • Polishin Eclipse aka Polish in Eclipse
Finally, we decided to pick one of the last two, but we couldn't decide which one should it be. Tomek's pick was "Polishing Eclipse" and my favourite was "Polishin' Eclipse". Krzysztof liked both of them or simply couldn't make up his mind. We will never know :) Anyways, there is only one way out from such a situation - a duel. Only a deathmatch could help us here. And when we're talking about a deathmatch, Soldat is the only choice.

Wait for 5 minutes...

As you can see on the movie, I won (YEAH). So, I am glad to inform that you are on the right page and since now this is the official blog of our team.

And at the end I would like to thank Tomek who actually is the author of the post and I modified it only a bit ;-)