|
|
How do I create a global property to my OpenTool and access it through the Tools Menu? |
You'll need to use several classes:com.borland.primetime.properties.PropertyGroup com.borland.primetime.properties.PropertyPageFactory com.borland.primetime.properties.PropertyPage com.borland.primetime.ide.ContextActionProvider com.borland.primetime.ide.BrowserActionfor starters. The stuff from the properties package provides the hooks for storing information in the user.properties file and/or in the project's jpx/jpr file. The BrowserAction and ContextActionProvider are used to insert the new item into the Tools menu and link it to your property page. The following is a complete implementation of a simple OpenTool which does nothing useful beyond store its property in your user.properties file. It also provides an example of providing online help on your property page.
| |
| [Append to This Answer] | |
| 2001-Jul-15 4:06pm |
| Previous: |
|
| Next: |
|
| ||||||||
|
Java Community
Java Tools |
Code Central JB OpenTools |
Community Recent Threads |
Borland Chat Chat FAQ |
||||||||||||||
|
Feature Matrices 3.0 | 3.5 | 4.0 5.0 | 6.0 | 7.0 |
Shop for JBuilder |
JBuilder Downloads and reg keys |
Report Piracy | ||||||||||||||
|
Online Manuals 4.0 | 5.0 | 6.0 7.0 |
Borland DevSupport's Bug/RFE Form Quality Central Client |
JB Patches & Updates |
JBuilder FAQs TIs | ||||||||||||||
|
JBuilder Newsgroups |
Tamaracka's News Archive |
Mr. Haki's JBuilder Machine |
JGuru's JBuilder FAQ |
||||||||||||||
|
Sun's Bug Parade |
|||||||||||||||||
|
|||||||||||||||||