Discussion:
How to add custom buttons to Editor toolbar
Jo Vark
2006-07-25 21:42:49 UTC
Permalink
Hi,
I searched through the mailing list but couldn't
really find an easy way to add a button to the editor
toolbar.
It would be great if I got a brief tutorial.
TIA
--Jo

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Peter Blemel
2006-07-28 20:50:35 UTC
Permalink
This may be what you are looking for

http://platform.netbeans.org/tutorials/nbm-google.html
Subject: [nbusers] How to add custom buttons to Editor toolbar
Date: Tue, 25 Jul 2006 14:42:49 -0700 (PDT)
Hi,
I searched through the mailing list but couldn't
really find an easy way to add a button to the editor
toolbar.
It would be great if I got a brief tutorial.
TIA
--Jo
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Jo Vark
2006-07-31 19:25:37 UTC
Permalink
Thanks for your reply, but that was not what I was
looking for - I need to add a button next to the
Comment/Uncomment buttons for eg.
THanks,
Jo
Post by Peter Blemel
This may be what you are looking for
http://platform.netbeans.org/tutorials/nbm-google.html
Post by Peter Blemel
Subject: [nbusers] How to add custom buttons to
Editor toolbar
Date: Tue, 25 Jul 2006 14:42:49 -0700 (PDT)
Hi,
I searched through the mailing list but couldn't
really find an easy way to add a button to the
editor
toolbar.
It would be great if I got a brief tutorial.
TIA
--Jo
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Gregg Wonderly
2006-07-31 20:02:28 UTC
Permalink
Post by Jo Vark
Thanks for your reply, but that was not what I was
looking for - I need to add a button next to the
Comment/Uncomment buttons for eg.
That tutorial shows you how to add an action/command as a netbeans module.
Then, you can use the layers.xml file to place the control for executing that
action/command where you want it in the toolbar(s).

Gregg Wonderly
Jo Vark
2006-08-01 14:41:59 UTC
Permalink
Thanks for the pointer - with a little help from
http://www.bluemarsh.com 's "Netbeans Default File
System viewer" and the following addition to my
layer.xml file, I got it working!
<folder name="Editors">
<folder name="text">
<folder name="base">
<folder name="Toolbars">
<folder name="Default">
<file name="MyAction.instance">
<attr name="instanceClass"
stringvalue="MyAction"/>
</file>
</folder>
</folder>
</folder>
</folder>
</folder>

--Jo
Post by Gregg Wonderly
Post by Jo Vark
Thanks for your reply, but that was not what I was
looking for - I need to add a button next to the
Comment/Uncomment buttons for eg.
That tutorial shows you how to add an action/command
as a netbeans module.
Then, you can use the layers.xml file to place the
control for executing that
action/command where you want it in the toolbar(s).
Gregg Wonderly
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Loading...