| org.eclipse.jdt.ui.wizards.NewElementWizardPage org.eclipse.jdt.ui.wizards.NewContainerWizardPage org.eclipse.jdt.ui.wizards.NewTypeWizardPage org.eclipse.jdt.ui.wizards.NewClassWizardPage
NewClassWizardPage | public class NewClassWizardPage extends NewTypeWizardPage (Code) | | Wizard page to create a new class.
Note: This class is not intended to be subclassed, but clients can instantiate.
To implement a different kind of a new class wizard page, extend NewTypeWizardPage .
since: 2.0 |
Method Summary | |
public void | createControl(Composite parent) | protected void | createTypeMembers(IType type, ImportsManager imports, IProgressMonitor monitor) | protected void | handleFieldChanged(String fieldName) | public void | init(IStructuredSelection selection) The wizard owning this page is responsible for calling this method with the
current selection. | public boolean | isCreateConstructors() Returns the current selection state of the 'Create Constructors' checkbox. | public boolean | isCreateInherited() Returns the current selection state of the 'Create inherited abstract methods'
checkbox. | public boolean | isCreateMain() Returns the current selection state of the 'Create Main' checkbox. | public void | setMethodStubSelection(boolean createMain, boolean createConstructors, boolean createInherited, boolean canBeModified) Sets the selection state of the method stub checkboxes.
Parameters: createMain - initial selection state of the 'Create Main' checkbox. Parameters: createConstructors - initial selection state of the 'Create Constructors' checkbox. Parameters: createInherited - initial selection state of the 'Create inherited abstract methods' checkbox. Parameters: canBeModified - if true the method stub checkboxes can be changed by the user. | public void | setVisible(boolean visible) |
NewClassWizardPage | public NewClassWizardPage()(Code) | | Creates a new NewClassWizardPage
|
createControl | public void createControl(Composite parent)(Code) | | |
createTypeMembers | protected void createTypeMembers(IType type, ImportsManager imports, IProgressMonitor monitor) throws CoreException(Code) | | |
handleFieldChanged | protected void handleFieldChanged(String fieldName)(Code) | | |
init | public void init(IStructuredSelection selection)(Code) | | The wizard owning this page is responsible for calling this method with the
current selection. The selection is used to initialize the fields of the wizard
page.
Parameters: selection - used to initialize the fields |
isCreateConstructors | public boolean isCreateConstructors()(Code) | | Returns the current selection state of the 'Create Constructors' checkbox.
the selection state of the 'Create Constructors' checkbox |
isCreateInherited | public boolean isCreateInherited()(Code) | | Returns the current selection state of the 'Create inherited abstract methods'
checkbox.
the selection state of the 'Create inherited abstract methods' checkbox |
isCreateMain | public boolean isCreateMain()(Code) | | Returns the current selection state of the 'Create Main' checkbox.
the selection state of the 'Create Main' checkbox |
setMethodStubSelection | public void setMethodStubSelection(boolean createMain, boolean createConstructors, boolean createInherited, boolean canBeModified)(Code) | | Sets the selection state of the method stub checkboxes.
Parameters: createMain - initial selection state of the 'Create Main' checkbox. Parameters: createConstructors - initial selection state of the 'Create Constructors' checkbox. Parameters: createInherited - initial selection state of the 'Create inherited abstract methods' checkbox. Parameters: canBeModified - if true the method stub checkboxes can be changed by the user. If false the buttons are "read-only" |
setVisible | public void setVisible(boolean visible)(Code) | | |
Methods inherited from org.eclipse.jdt.ui.wizards.NewTypeWizardPage | public boolean addSuperInterface(String superInterface)(Code)(Java Doc) protected IType chooseEnclosingType()(Code)(Java Doc) protected IPackageFragment choosePackage()(Code)(Java Doc) protected IType chooseSuperClass()(Code)(Java Doc) protected void chooseSuperInterfaces()(Code)(Java Doc) protected String constructCUContent(ICompilationUnit cu, String typeContent, String lineDelimiter) throws CoreException(Code)(Java Doc) protected IStatus containerChanged()(Code)(Java Doc) protected void createCommentControls(Composite composite, int nColumns)(Code)(Java Doc) protected void createEnclosingTypeControls(Composite composite, int nColumns)(Code)(Java Doc) protected IMethod[] createInheritedMethods(IType type, boolean doConstructors, boolean doUnimplementedMethods, ImportsManager imports, IProgressMonitor monitor) throws CoreException(Code)(Java Doc) protected void createModifierControls(Composite composite, int nColumns)(Code)(Java Doc) protected void createPackageControls(Composite composite, int nColumns)(Code)(Java Doc) protected void createSeparator(Composite composite, int nColumns)(Code)(Java Doc) protected void createSuperClassControls(Composite composite, int nColumns)(Code)(Java Doc) protected void createSuperInterfacesControls(Composite composite, int nColumns)(Code)(Java Doc) public void createType(IProgressMonitor monitor) throws CoreException, InterruptedException(Code)(Java Doc) protected void createTypeMembers(IType newType, ImportsManager imports, IProgressMonitor monitor) throws CoreException(Code)(Java Doc) protected void createTypeNameControls(Composite composite, int nColumns)(Code)(Java Doc) public void enableCommentControl(boolean useAddCommentValue)(Code)(Java Doc) protected IStatus enclosingTypeChanged()(Code)(Java Doc) protected String getCompilationUnitName(String typeName)(Code)(Java Doc) public IType getCreatedType()(Code)(Java Doc) public IType getEnclosingType()(Code)(Java Doc) protected String getEnclosingTypeLabel()(Code)(Java Doc) public String getEnclosingTypeText()(Code)(Java Doc) protected String getFileComment(ICompilationUnit parentCU)(Code)(Java Doc) protected String getFileComment(ICompilationUnit parentCU, String lineDelimiter) throws CoreException(Code)(Java Doc) public IResource getModifiedResource()(Code)(Java Doc) public int getModifiers()(Code)(Java Doc) protected String getModifiersLabel()(Code)(Java Doc) public IPackageFragment getPackageFragment()(Code)(Java Doc) protected String getPackageLabel()(Code)(Java Doc) public String getPackageText()(Code)(Java Doc) public IRunnableWithProgress getRunnable()(Code)(Java Doc) public String getSuperClass()(Code)(Java Doc) protected String getSuperClassLabel()(Code)(Java Doc) public List getSuperInterfaces()(Code)(Java Doc) protected String getSuperInterfacesLabel()(Code)(Java Doc) protected String getTemplate(String name, ICompilationUnit parentCU)(Code)(Java Doc) protected String getTemplate(String name, ICompilationUnit parentCU, int pos)(Code)(Java Doc) protected String getTypeComment(ICompilationUnit parentCU, String lineDelimiter)(Code)(Java Doc) protected String getTypeComment(ICompilationUnit parentCU)(Code)(Java Doc) public String getTypeName()(Code)(Java Doc) protected String getTypeNameLabel()(Code)(Java Doc) protected void handleFieldChanged(String fieldName)(Code)(Java Doc) protected void initTypePage(IJavaElement elem)(Code)(Java Doc) public boolean isAddComments()(Code)(Java Doc) public boolean isEnclosingTypeSelected()(Code)(Java Doc) protected IStatus modifiersChanged()(Code)(Java Doc) protected IStatus packageChanged()(Code)(Java Doc) public void setAddComments(boolean doAddComments, boolean canBeModified)(Code)(Java Doc) public void setEnclosingType(IType type, boolean canBeModified)(Code)(Java Doc) public void setEnclosingTypeSelection(boolean isSelected, boolean canBeModified)(Code)(Java Doc) protected void setFocus()(Code)(Java Doc) public void setModifiers(int modifiers, boolean canBeModified)(Code)(Java Doc) public void setPackageFragment(IPackageFragment pack, boolean canBeModified)(Code)(Java Doc) public void setSuperClass(String name, boolean canBeModified)(Code)(Java Doc) public void setSuperInterfaces(List interfacesNames, boolean canBeModified)(Code)(Java Doc) public void setTypeName(String name, boolean canBeModified)(Code)(Java Doc) protected IStatus superClassChanged()(Code)(Java Doc) protected IStatus superInterfacesChanged()(Code)(Java Doc) protected IStatus typeNameChanged()(Code)(Java Doc)
|
Methods inherited from org.eclipse.jdt.ui.wizards.NewElementWizardPage | public void setVisible(boolean visible)(Code)(Java Doc) protected void updateStatus(IStatus status)(Code)(Java Doc) protected void updateStatus(IStatus[] status)(Code)(Java Doc)
|
|
|