[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [udig-devel] Want to add a new toolbar to udig application
|
I would suggest to use the eclipse menu contributions extension points [1].
This is the preferred way of contributing/adding new toolbars/menus/popup menus since 3.4.
If you use [1], this will enable you to use visibleWhen which can be set to declaratively hide/show a menu contribution based on an eclipse _expression_.
Moreover, you will be able to add a new toolbar and add your contributions.
About the "cool bar": I was told by an eclipse platform programmer that this "terminology" was not meant to become official, it has just leaked through the api :-)
[1]
http://wiki.eclipse.org/index.php/Menu_Contributions
2009/10/26 Jody Garnett
<jody.garnett@xxxxxxxxx>
You will need to check the eclipse docs; the abilities of the toolbars and other functionality changes each release. I know I can turn off and on the perspective view now for example but before you could not. The functionality should be in online help under "cool bar"; not sure what is cool about them but whatever.
I will also repeate that the "main" application toolbar is controlled with Actions and Actionsets (or with contributions like a menu) and not really something to be turned on and off. You would be setting up your own toolbar in an alternate location and would populate it as you see fit.
Cheers,
Jody