(Answer) (Category) FAQ-O-Matic : (Category) General : (Category) OpenTools : (Category) Writing OpenTools with OTAPI :
How can I make my custom wizard launch the WebApp wizard if the current project is not a WebApp?
Ken Chan of Borland writes:

In your wizard, something like:

  public WizardPage invokeWizard(WizardHost host) {
    project = host.getBrowser().getActiveUserProject();
    // You might want to check if project is null, meaning no projects
    // are active first; then
if ( WebContextNode.getNodes( project ).length == 0 ) { WizardDialog dialog = new WizardDialog(host.getBrowser(), new WebAppWizard() { public String getWizardTitle() { return super.getWizardTitle() + " (for My JSP Wizard)"; } } ); dialog.show(); if ( WebContextNode.getNodes( project ).length == 0 ) { return null; // Cancelled WebApp wizard, so do nothing } }
// Maybe add pages here, then finally return super.invokeWizard(host); }

2002-Jan-11 7:26am gyles19@visi.com
[Append to This Answer]
2002-Jan-11 7:26am
Previous: (Answer) How can I use Velocity to create my own template-based Wizard?
Next: (Answer) Are there any OpenTools for writing OpenTools?
This document is: http://www.visi.com/~gyles19/cgi-bin/fom.cgi?file=327
[Search] [Appearance]
This is a Faq-O-Matic 2.709.
This FAQ administered by gyles19@visi.com.

Other JBuilder Links

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
Netring Home - About - Privacy
The
JBuilder Netring Logo
The Borland JBuilder Netring by JBuilder FAQ-O-Matic
[ Join Now | List Sites | Random | << Prev | Next >> ]
[ Previous 5 Sites | Skip Previous | Skip Next | Next 5 Sites ]