NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Mari Posted via mailing list.
|
Posted: Tue Oct 14, 2008 7:07 pm Post subject: How to add an Action in Help's Submenu's url pages in Netbeans 6.5 |
|
|
You want to create a new menu item in the Help menu, that would open a
given URL, similar to menu item "Online Docs and Support"? Did I
understand you correctly?
Mari |
|
| Back to top |
|
 |
krishna21 Posted via mailing list.
|
Posted: Wed Oct 15, 2008 1:27 am Post subject: How to add an Action in Help's Submenu's url pages in Netbeans 6.5 |
|
|
Thanks for ur reply Marian.Yes I want to create a new menu item in the help
menu,that should open my desired HTML file in Help Content's format.
Regards
Savitri
Marian Petras wrote:
| Quote: |
You want to create a new menu item in the Help menu, that would open a
given URL, similar to menu item "Online Docs and Support"? Did I
understand you correctly?
Marián
krishna21 wrote:
| Quote: | How to add an Action in Help's Submenu's url pages in Netbeans 6.5
|
|
--
View this message in context: http://www.nabble.com/How-to-add-an-Action-in-Help%27s-Submenu%27s-url-pages-in-Netbeans-6.5-tp19646006p19985188.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com. |
|
| Back to top |
|
 |
Marián Petráš Posted via mailing list.
|
Posted: Wed Oct 15, 2008 2:48 pm Post subject: How to add an Action in Help's Submenu's url pages in Netbeans 6.5 |
|
|
Savitri, your notion of "Help Content's format" makes me think that you
want your text in the Help viewer - I do not know how to do that. I can
only describe how to add a menu item that, when selected (activated),
will cause the default web browser to display a given HTML page:
1) In your module's project, create a URL file for URL of the page
that should be displayed if the menu item is selected.
To create the URL file, invoke action "New File..." (Ctrl+N),
select category "Other" and file type "Empty File". Name the file
such that the extension is "url", e.g. "mylink.url".
The only content of the file should be the desired URL,
e.g. "http://www.netbeans.org/" (without the quotes).
2) Add a reference to the URL file to your module's XML layer file
(layer.xml).
The reference must be in folder "Menu/Help". Example:
<folder name="Menu">
<folder name="Help">
<file name="netbeans-main.url"
url="nbresloc:/path/to/mylink.url">
</folder>
</folder>
The attribute "url" of the <file> element defines the location of
the URL file that you created in the first step. Protocol
"nbresloc" defines that the given path ("/path/to/mylink.url")
should be looked up in the installed NetBeans modules and that
localized variants (e.g. "/path/to/mylink_de.url") should be used
if applicable and found. An alternate protocol is "nbres", which
ignores localized files.
Marián
krishna21 wrote:
| Quote: | Thanks for ur reply Marian.Yes I want to create a new menu item in the help
menu,that should open my desired HTML file in Help Content's format.
Regards
Savitri
Marian Petras wrote:
| Quote: | You want to create a new menu item in the Help menu, that would open a
given URL, similar to menu item "Online Docs and Support"? Did I
understand you correctly?
Marián
krishna21 wrote:
| Quote: | How to add an Action in Help's Submenu's url pages in Netbeans 6.5
|
|
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|