1

I am getting started with Firefox addon development and have got myself acquainted with the Add-on Builder. Is this wizard all I need to get deep into Firefox addon development (if so, where would I create the XUL files and how would I create a custom toolbar?). Or is it that one cannot implement all features using this Add-on Builder? Also are there any good tutorials which explain how to get started with Firefox addon development using the Add-on Builder (because it seems so much easier).

Tutorials which I already have referred to:

But these are not specific to using the Add-on Builder. I would please like someone to point me to where I can find help to develop using the Add-on Builder.

Also if I am developing the addon locally using the SDK is there any good editor which I can use which will show me the list of commands that I can execute (like Eclipse in Java).

The red line is where i want my icon to appear. Is it possible to do it using the addon builder.

enter image description here

user1179510
  • 1,003
  • 1
  • 14
  • 24

2 Answers2

7

There are currently two kinds of Firefox extensions:

  • Classic extensions use a XUL-based user interface. They can do almost anything but it might take a bit until you see some results with your extension. For documentation on classic add-ons see How do I write a Firefox Addon?
  • Extensions based on Add-on SDK use HTML for user interface. The SDK provides a simple but limited API. In particular, it explicitly won't let you create toolbars, only single toolbar icons (which makes sense, extensions shouldn't be wasting so much screen space). It won't let you determine the icon placement either - as of Firefox 4 all extension icons are supposed to appear in the add-on bar (the user can customize the toolbars and change the placement however). You can get low-level platform access with chrome authority however. The official Add-on SDK documentation is pretty much all you've got here I think.
    Edit: Ok, the information on limitations of the Add-on SDK is somewhat outdated. As of Firefox 30, adding toolbars is possible. Also, as of Firefox 29 the icons are placed in the main toolbar by default - the add-on bar is no more. So the only real limitation remaining is the icon placement.

The Add-on Builder is merely a web interface to the SDK - it allows you to edit the extensions conveniently but otherwise it uses Add-on SDK to generate the extensions.

Wladimir Palant
  • 56,865
  • 12
  • 98
  • 126
  • I have edited the question. Could you please take a look. So only the ui bit will be a problem if i use the add onn. The process which i would be doing would have no restriction.(Like querying a mysql database.) – user1179510 May 04 '12 at 09:09
  • @user1179510: I've edited my answer as well and added a note on icon placement. – Wladimir Palant May 04 '12 at 09:26
  • Okay. That makes sense. The user would have to enable the addon bar to see the icon. – user1179510 May 04 '12 at 09:36
  • @user1179510: I think that the add-on bar is automatically shown when the icon is added. The user can hide it after that however. – Wladimir Palant May 04 '12 at 09:41
  • Probably something wrong with my settings. Oh and what about the java script editor. Do you know anything good that shows up with the functions available or do we have to go wrting the javascript from scratch. – user1179510 May 04 '12 at 09:46
  • 1
    Please create a new question on the editor, maybe somebody will have a suggestion for you then. – Wladimir Palant May 04 '12 at 09:48
  • Okay.Will do so.Thanks for your help – user1179510 May 04 '12 at 09:49
3

To put an icon directly in the toolbar currently, your best bet is to use Erik Vold's toolbar module ( available in Builder as a package ). here is an example that does that:

https://builder.addons.mozilla.org/addon/1044724/latest/

therealjeffg
  • 5,790
  • 1
  • 23
  • 24