Package org.eclipse.jdt.junit.wizards
Class NewTestCaseWizardPageTwo
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.eclipse.jdt.junit.wizards.NewTestCaseWizardPageTwo
- All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage,org.eclipse.jface.dialogs.IMessageProvider,org.eclipse.jface.wizard.IWizardPage
public class NewTestCaseWizardPageTwo
extends org.eclipse.jface.wizard.WizardPage
The class
NewTestCaseWizardPageTwo contains controls and validation routines
for the second page of the 'New JUnit TestCase Wizard'.
Clients can use the page as-is and add it to their own wizard, or extend it to modify validation or add and remove controls.
- Since:
- 3.1
-
Field Summary
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateControl(org.eclipse.swt.widgets.Composite parent) IMethod[]Returns all the methods in the methods tree.IMethod[]Returns all checked methods in the methods tree.booleanReturns true if the checkbox for final method stubs is checked.booleanReturns true if the checkbox for creating tasks is checked.voidsetClassUnderTest(IType classUnderTest) Sets the class under test.voidsetVisible(boolean visible) Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toStringMethods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelpMethods inherited from interface org.eclipse.jface.wizard.IWizardPage
getMinimumPageSize
-
Constructor Details
-
NewTestCaseWizardPageTwo
public NewTestCaseWizardPageTwo()Creates a newNewTestCaseWizardPageTwo.
-
-
Method Details
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent) -
setClassUnderTest
Sets the class under test.- Parameters:
classUnderTest- the class under test
-
setVisible
public void setVisible(boolean visible) - Specified by:
setVisiblein interfaceorg.eclipse.jface.dialogs.IDialogPage- Overrides:
setVisiblein classorg.eclipse.jface.dialogs.DialogPage
-
getCheckedMethods
Returns all checked methods in the methods tree.- Returns:
- the checked methods
-
isCreateTasks
public boolean isCreateTasks()Returns true if the checkbox for creating tasks is checked.- Returns:
trueis returned if tasks should be created
-
getCreateFinalMethodStubsButtonSelection
public boolean getCreateFinalMethodStubsButtonSelection()Returns true if the checkbox for final method stubs is checked.- Returns:
trueis returned if methods should be created final
-
getAllMethods
Returns all the methods in the methods tree.- Returns:
- all methods in the methods tree
-