Sunday, October 18, 2009

Using Utils.focusUrlInBrowser() instead of Utils.openUrlInBrowser()

Hi,

I would like to share this information with everyone, when building your Ubiquity command, if you intend to open a page in the browser (like most commands I have seen so far), please consider using Utils.focusUrlInBrowser() instead of Utils.openUrlInBrowser().

The advantage is simple, the latter always opens a new tab with the url, while the former opens it only if it is not already open, otherwise it brings the right tab into focus..

Hope this helps!

No comments:

Post a Comment