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 -

    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="">
    <ShortName>Eclipse SWT Bugs</ShortName>
    <Description>Search Eclipse Bugzilla for a bug in SWT component</Description>
    <Url type="text/html" method="GET" template="">
    <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.

No comments: