wood.keith.opentools.otnode
Class OTManifestWizardPage1

public class OTManifestWizardPage1
extends BasicWizardPage
This class contains the wizard page which allows the user to specify the details about the OpenTools manifest.
Version:
1.0 20 May 2003
Author:
Keith Wood (kbwood@iprimus.com.au)
Constructor Detail

OTManifestWizardPage1

public OTManifestWizardPage1(OTManifestWizard wizard,
                             Map tools)
Create a new wizard page.
Parameters:
wizard - the wizard invoking this page
tools - a mapping of tool class names to suggested OpenTool categories

Method Detail

jbInit

protected void jbInit()
Define the user interface. The user interface is constructed here so the JBuilder UI Designer may be used to edit it.

loadData

private void loadData(Map tools)
Initialise UI based on presence of tools.

checkPage

public void checkPage()
Check for user input error. The user has completed this page so check for input error. If any, then report the error in a dialog and throw an exception.

checkCondition

private void checkCondition(boolean condition,
                            String message,
                            JComponent focus)
Check for a user input error.
Parameters:
condition - a test that must be true for the page to be valid
message - the text to display
focus - the UI component to move focus to
Throws:
VetoException - if the condition is not met

getTools

public Map getTools()
Fetches set of OpenTools classes.
Returns:
a mapping from the OpenTools classes to their categories

isMerging

public boolean isMerging()
Merge with an existing classes.opentools file.
Returns:
true if merging with an existing file, false otherwise