blob: e25a24de19c19ab8f1e83d43de663406df8ee017 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_12) on Fri May 30 11:16:05 CDT 2008 -->
<TITLE>
NewTypeWizardPage
</TITLE>
<META NAME="keywords" CONTENT="org.eclipse.wst.jsdt.ui.wizards.NewTypeWizardPage class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="NewTypeWizardPage";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/NewTypeWizardPage.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewPackageWizardPage.html" title="class in org.eclipse.wst.jsdt.ui.wizards"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.ImportsManager.html" title="class in org.eclipse.wst.jsdt.ui.wizards"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../index.html?org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="NewTypeWizardPage.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.eclipse.wst.jsdt.ui.wizards</FONT>
<BR>
Class NewTypeWizardPage</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by ">WizardPage
<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewElementWizardPage.html" title="class in org.eclipse.wst.jsdt.ui.wizards">org.eclipse.wst.jsdt.ui.wizards.NewElementWizardPage</A>
<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewContainerWizardPage.html" title="class in org.eclipse.wst.jsdt.ui.wizards">org.eclipse.wst.jsdt.ui.wizards.NewContainerWizardPage</A>
<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>org.eclipse.wst.jsdt.ui.wizards.NewTypeWizardPage</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewClassWizardPage.html" title="class in org.eclipse.wst.jsdt.ui.wizards">NewClassWizardPage</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewInterfaceWizardPage.html" title="class in org.eclipse.wst.jsdt.ui.wizards">NewInterfaceWizardPage</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public abstract class <B>NewTypeWizardPage</B><DT>extends <A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewContainerWizardPage.html" title="class in org.eclipse.wst.jsdt.ui.wizards">NewContainerWizardPage</A></DL>
</PRE>
<P>
The class <code>NewTypeWizardPage</code> contains controls and validation routines
for a 'New Type WizardPage'. Implementors decide which components to add and to enable.
Implementors can also customize the validation code. <code>NewTypeWizardPage</code>
is intended to serve as base class of all wizards that create types like applets, servlets, classes,
interfaces, etc.
<p>
See <A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewClassWizardPage.html" title="class in org.eclipse.wst.jsdt.ui.wizards"><CODE>NewClassWizardPage</CODE></A> or <A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewInterfaceWizardPage.html" title="class in org.eclipse.wst.jsdt.ui.wizards"><CODE>NewInterfaceWizardPage</CODE></A> for an
example usage of the <code>NewTypeWizardPage</code>.
</p>
Provisional API: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.
<P>
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewClassWizardPage.html" title="class in org.eclipse.wst.jsdt.ui.wizards"><CODE>NewClassWizardPage</CODE></A>,
<A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewInterfaceWizardPage.html" title="class in org.eclipse.wst.jsdt.ui.wizards"><CODE>NewInterfaceWizardPage</CODE></A>,
<CODE>org.eclipse.wst.jsdt.ui.wizards.NewEnumWizardPage</CODE>,
<CODE>org.eclipse.wst.jsdt.ui.wizards.NewAnnotationWizardPage</CODE></DL>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.ImportsManager.html" title="class in org.eclipse.wst.jsdt.ui.wizards">NewTypeWizardPage.ImportsManager</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Class used in stub creation routines to add needed imports to a
compilation unit.</TD>
</TR>
</TABLE>
&nbsp;<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#ANNOTATION_TYPE">ANNOTATION_TYPE</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constant to signal that the created type is an annotation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#CLASS_TYPE">CLASS_TYPE</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constant to signal that the created type is a class.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#ENUM_TYPE">ENUM_TYPE</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constant to signal that the created type is an enum.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#F_ABSTRACT">F_ABSTRACT</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Abstract property flag.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#F_FINAL">F_FINAL</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Final access flag.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#F_PRIVATE">F_PRIVATE</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Private access flag.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#F_PROTECTED">F_PROTECTED</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Protected access flag.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#F_PUBLIC">F_PUBLIC</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Public access flag.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#F_STATIC">F_STATIC</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Static access flag.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#INTERFACE_TYPE">INTERFACE_TYPE</A></B></CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constant to signal that the created type is a interface.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#NewTypeWizardPage(boolean, java.lang.String)">NewTypeWizardPage</A></B>(boolean&nbsp;isClass,
java.lang.String&nbsp;pageName)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <code>NewTypeWizardPage</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#NewTypeWizardPage(int, java.lang.String)">NewTypeWizardPage</A></B>(int&nbsp;typeKind,
java.lang.String&nbsp;pageName)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <code>NewTypeWizardPage</code>.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#addSuperInterface(java.lang.String)">addSuperInterface</A></B>(java.lang.String&nbsp;superInterface)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a super interface to the end of the list and selects it if it is not in the list yet.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#createType(IProgressMonitor)">createType</A></B>(IProgressMonitor&nbsp;monitor)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates the new type using the entered field values.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#enableCommentControl(boolean)">enableCommentControl</A></B>(boolean&nbsp;useAddCommentValue)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets to use the 'Add comment' checkbox value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../org/eclipse/wst/jsdt/core/IType.html" title="interface in org.eclipse.wst.jsdt.core">IType</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#getCreatedType()">getCreatedType</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the created type or <code>null</code> is the type has not been created yet.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../org/eclipse/wst/jsdt/core/IType.html" title="interface in org.eclipse.wst.jsdt.core">IType</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#getEnclosingType()">getEnclosingType</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the enclosing type corresponding to the current input.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#getEnclosingTypeText()">getEnclosingTypeText</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the text of the enclosing type input field.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;IResource</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#getModifiedResource()">getModifiedResource</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the resource handle that corresponds to the compilation unit to was or
will be created or modified.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#getModifiers()">getModifiers</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the selected modifiers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../../../org/eclipse/wst/jsdt/core/IPackageFragment.html" title="interface in org.eclipse.wst.jsdt.core">IPackageFragment</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#getPackageFragment()">getPackageFragment</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the package fragment corresponding to the current input.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#getPackageText()">getPackageText</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the text of the package input field.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;IRunnableWithProgress</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#getRunnable()">getRunnable</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the runnable that creates the type using the current settings.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#getSuperClass()">getSuperClass</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the content of the superclass input field.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.util.List</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#getSuperInterfaces()">getSuperInterfaces</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the chosen super interfaces.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#getTypeName()">getTypeName</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the type name entered into the type input field.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#isAddComments()">isAddComments</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns if comments are added.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#isEnclosingTypeSelected()">isEnclosingTypeSelected</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the selection state of the enclosing type checkbox.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#setAddComments(boolean, boolean)">setAddComments</A></B>(boolean&nbsp;doAddComments,
boolean&nbsp;canBeModified)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets 'Add comment' checkbox.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#setEnclosingType(org.eclipse.wst.jsdt.core.IType, boolean)">setEnclosingType</A></B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/IType.html" title="interface in org.eclipse.wst.jsdt.core">IType</A>&nbsp;type,
boolean&nbsp;canBeModified)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the enclosing type.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#setEnclosingTypeSelection(boolean, boolean)">setEnclosingTypeSelection</A></B>(boolean&nbsp;isSelected,
boolean&nbsp;canBeModified)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the enclosing type checkbox's selection state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#setModifiers(int, boolean)">setModifiers</A></B>(int&nbsp;modifiers,
boolean&nbsp;canBeModified)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the modifiers.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#setPackageFragment(org.eclipse.wst.jsdt.core.IPackageFragment, boolean)">setPackageFragment</A></B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/IPackageFragment.html" title="interface in org.eclipse.wst.jsdt.core">IPackageFragment</A>&nbsp;pack,
boolean&nbsp;canBeModified)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the package fragment to the given value.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#setSuperClass(java.lang.String, boolean)">setSuperClass</A></B>(java.lang.String&nbsp;name,
boolean&nbsp;canBeModified)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the super class name.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#setSuperInterfaces(java.util.List, boolean)">setSuperInterfaces</A></B>(java.util.List&nbsp;interfacesNames,
boolean&nbsp;canBeModified)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the super interfaces.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#setTypeName(java.lang.String, boolean)">setTypeName</A></B>(java.lang.String&nbsp;name,
boolean&nbsp;canBeModified)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the type name input field's text to the given value.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_org.eclipse.wst.jsdt.ui.wizards.NewContainerWizardPage"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class org.eclipse.wst.jsdt.ui.wizards.<A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewContainerWizardPage.html" title="class in org.eclipse.wst.jsdt.ui.wizards">NewContainerWizardPage</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewContainerWizardPage.html#getJavaProject()">getJavaProject</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewContainerWizardPage.html#getPackageFragmentRoot()">getPackageFragmentRoot</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewContainerWizardPage.html#getPackageFragmentRootText()">getPackageFragmentRootText</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewContainerWizardPage.html#setPackageFragmentRoot(org.eclipse.wst.jsdt.core.IPackageFragmentRoot, boolean)">setPackageFragmentRoot</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_org.eclipse.wst.jsdt.ui.wizards.NewElementWizardPage"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class org.eclipse.wst.jsdt.ui.wizards.<A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewElementWizardPage.html" title="class in org.eclipse.wst.jsdt.ui.wizards">NewElementWizardPage</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewElementWizardPage.html#setVisible(boolean)">setVisible</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="F_PUBLIC"><!-- --></A><H3>
F_PUBLIC</H3>
<PRE>
public int <B>F_PUBLIC</B></PRE>
<DL>
<DD>Public access flag. See The JavaScript Virtual Machine Specification for more details.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="F_PRIVATE"><!-- --></A><H3>
F_PRIVATE</H3>
<PRE>
public int <B>F_PRIVATE</B></PRE>
<DL>
<DD>Private access flag. See The JavaScript Virtual Machine Specification for more details.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="F_PROTECTED"><!-- --></A><H3>
F_PROTECTED</H3>
<PRE>
public int <B>F_PROTECTED</B></PRE>
<DL>
<DD>Protected access flag. See The JavaScript Virtual Machine Specification for more details.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="F_STATIC"><!-- --></A><H3>
F_STATIC</H3>
<PRE>
public int <B>F_STATIC</B></PRE>
<DL>
<DD>Static access flag. See The JavaScript Virtual Machine Specification for more details.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="F_FINAL"><!-- --></A><H3>
F_FINAL</H3>
<PRE>
public int <B>F_FINAL</B></PRE>
<DL>
<DD>Final access flag. See The JavaScript Virtual Machine Specification for more details.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="F_ABSTRACT"><!-- --></A><H3>
F_ABSTRACT</H3>
<PRE>
public int <B>F_ABSTRACT</B></PRE>
<DL>
<DD>Abstract property flag. See The JavaScript Virtual Machine Specification for more details.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="CLASS_TYPE"><!-- --></A><H3>
CLASS_TYPE</H3>
<PRE>
public static final int <B>CLASS_TYPE</B></PRE>
<DL>
<DD>Constant to signal that the created type is a class.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#org.eclipse.wst.jsdt.ui.wizards.NewTypeWizardPage.CLASS_TYPE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="INTERFACE_TYPE"><!-- --></A><H3>
INTERFACE_TYPE</H3>
<PRE>
public static final int <B>INTERFACE_TYPE</B></PRE>
<DL>
<DD>Constant to signal that the created type is a interface.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#org.eclipse.wst.jsdt.ui.wizards.NewTypeWizardPage.INTERFACE_TYPE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="ENUM_TYPE"><!-- --></A><H3>
ENUM_TYPE</H3>
<PRE>
public static final int <B>ENUM_TYPE</B></PRE>
<DL>
<DD>Constant to signal that the created type is an enum.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#org.eclipse.wst.jsdt.ui.wizards.NewTypeWizardPage.ENUM_TYPE">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="ANNOTATION_TYPE"><!-- --></A><H3>
ANNOTATION_TYPE</H3>
<PRE>
public static final int <B>ANNOTATION_TYPE</B></PRE>
<DL>
<DD>Constant to signal that the created type is an annotation.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#org.eclipse.wst.jsdt.ui.wizards.NewTypeWizardPage.ANNOTATION_TYPE">Constant Field Values</A></DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="NewTypeWizardPage(boolean, java.lang.String)"><!-- --></A><H3>
NewTypeWizardPage</H3>
<PRE>
public <B>NewTypeWizardPage</B>(boolean&nbsp;isClass,
java.lang.String&nbsp;pageName)</PRE>
<DL>
<DD>Creates a new <code>NewTypeWizardPage</code>.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>isClass</CODE> - <code>true</code> if a new class is to be created; otherwise
an interface is to be created<DD><CODE>pageName</CODE> - the wizard page's name</DL>
</DL>
<HR>
<A NAME="NewTypeWizardPage(int, java.lang.String)"><!-- --></A><H3>
NewTypeWizardPage</H3>
<PRE>
public <B>NewTypeWizardPage</B>(int&nbsp;typeKind,
java.lang.String&nbsp;pageName)</PRE>
<DL>
<DD>Creates a new <code>NewTypeWizardPage</code>.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>typeKind</CODE> - Signals the kind of the type to be created. Valid kinds are
<A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#CLASS_TYPE"><CODE>CLASS_TYPE</CODE></A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#INTERFACE_TYPE"><CODE>INTERFACE_TYPE</CODE></A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#ENUM_TYPE"><CODE>ENUM_TYPE</CODE></A> and <A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#ANNOTATION_TYPE"><CODE>ANNOTATION_TYPE</CODE></A><DD><CODE>pageName</CODE> - the wizard page's name</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getPackageText()"><!-- --></A><H3>
getPackageText</H3>
<PRE>
public java.lang.String <B>getPackageText</B>()</PRE>
<DL>
<DD>Returns the text of the package input field.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the text of the package input field</DL>
</DD>
</DL>
<HR>
<A NAME="getEnclosingTypeText()"><!-- --></A><H3>
getEnclosingTypeText</H3>
<PRE>
public java.lang.String <B>getEnclosingTypeText</B>()</PRE>
<DL>
<DD>Returns the text of the enclosing type input field.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the text of the enclosing type input field</DL>
</DD>
</DL>
<HR>
<A NAME="getPackageFragment()"><!-- --></A><H3>
getPackageFragment</H3>
<PRE>
public <A HREF="../../../../../../org/eclipse/wst/jsdt/core/IPackageFragment.html" title="interface in org.eclipse.wst.jsdt.core">IPackageFragment</A> <B>getPackageFragment</B>()</PRE>
<DL>
<DD>Returns the package fragment corresponding to the current input.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>a package fragment or <code>null</code> if the input
could not be resolved.</DL>
</DD>
</DL>
<HR>
<A NAME="setPackageFragment(org.eclipse.wst.jsdt.core.IPackageFragment, boolean)"><!-- --></A><H3>
setPackageFragment</H3>
<PRE>
public void <B>setPackageFragment</B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/IPackageFragment.html" title="interface in org.eclipse.wst.jsdt.core">IPackageFragment</A>&nbsp;pack,
boolean&nbsp;canBeModified)</PRE>
<DL>
<DD>Sets the package fragment to the given value. The method updates the model
and the text of the control.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pack</CODE> - the package fragment to be set<DD><CODE>canBeModified</CODE> - if <code>true</code> the package fragment is
editable; otherwise it is read-only.</DL>
</DD>
</DL>
<HR>
<A NAME="getEnclosingType()"><!-- --></A><H3>
getEnclosingType</H3>
<PRE>
public <A HREF="../../../../../../org/eclipse/wst/jsdt/core/IType.html" title="interface in org.eclipse.wst.jsdt.core">IType</A> <B>getEnclosingType</B>()</PRE>
<DL>
<DD>Returns the enclosing type corresponding to the current input.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the enclosing type or <code>null</code> if the enclosing type is
not selected or the input could not be resolved</DL>
</DD>
</DL>
<HR>
<A NAME="setEnclosingType(org.eclipse.wst.jsdt.core.IType, boolean)"><!-- --></A><H3>
setEnclosingType</H3>
<PRE>
public void <B>setEnclosingType</B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/IType.html" title="interface in org.eclipse.wst.jsdt.core">IType</A>&nbsp;type,
boolean&nbsp;canBeModified)</PRE>
<DL>
<DD>Sets the enclosing type. The method updates the underlying model
and the text of the control.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>type</CODE> - the enclosing type<DD><CODE>canBeModified</CODE> - if <code>true</code> the enclosing type field is
editable; otherwise it is read-only.</DL>
</DD>
</DL>
<HR>
<A NAME="isEnclosingTypeSelected()"><!-- --></A><H3>
isEnclosingTypeSelected</H3>
<PRE>
public boolean <B>isEnclosingTypeSelected</B>()</PRE>
<DL>
<DD>Returns the selection state of the enclosing type checkbox.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the selection state of the enclosing type checkbox</DL>
</DD>
</DL>
<HR>
<A NAME="setEnclosingTypeSelection(boolean, boolean)"><!-- --></A><H3>
setEnclosingTypeSelection</H3>
<PRE>
public void <B>setEnclosingTypeSelection</B>(boolean&nbsp;isSelected,
boolean&nbsp;canBeModified)</PRE>
<DL>
<DD>Sets the enclosing type checkbox's selection state.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>isSelected</CODE> - the checkbox's selection state<DD><CODE>canBeModified</CODE> - if <code>true</code> the enclosing type checkbox is
modifiable; otherwise it is read-only.</DL>
</DD>
</DL>
<HR>
<A NAME="getTypeName()"><!-- --></A><H3>
getTypeName</H3>
<PRE>
public java.lang.String <B>getTypeName</B>()</PRE>
<DL>
<DD>Returns the type name entered into the type input field.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the type name</DL>
</DD>
</DL>
<HR>
<A NAME="setTypeName(java.lang.String, boolean)"><!-- --></A><H3>
setTypeName</H3>
<PRE>
public void <B>setTypeName</B>(java.lang.String&nbsp;name,
boolean&nbsp;canBeModified)</PRE>
<DL>
<DD>Sets the type name input field's text to the given value. Method doesn't update
the model.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the new type name<DD><CODE>canBeModified</CODE> - if <code>true</code> the type name field is
editable; otherwise it is read-only.</DL>
</DD>
</DL>
<HR>
<A NAME="getModifiers()"><!-- --></A><H3>
getModifiers</H3>
<PRE>
public int <B>getModifiers</B>()</PRE>
<DL>
<DD>Returns the selected modifiers.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the selected modifiers<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/Flags.html" title="class in org.eclipse.wst.jsdt.core"><CODE>Flags</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setModifiers(int, boolean)"><!-- --></A><H3>
setModifiers</H3>
<PRE>
public void <B>setModifiers</B>(int&nbsp;modifiers,
boolean&nbsp;canBeModified)</PRE>
<DL>
<DD>Sets the modifiers.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>modifiers</CODE> - <code>F_PUBLIC</code>, <code>F_PRIVATE</code>,
<code>F_PROTECTED</code>, <code>F_ABSTRACT</code>, <code>F_FINAL</code>
or <code>F_STATIC</code> or a valid combination.<DD><CODE>canBeModified</CODE> - if <code>true</code> the modifier fields are
editable; otherwise they are read-only<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/Flags.html" title="class in org.eclipse.wst.jsdt.core"><CODE>Flags</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getSuperClass()"><!-- --></A><H3>
getSuperClass</H3>
<PRE>
public java.lang.String <B>getSuperClass</B>()</PRE>
<DL>
<DD>Returns the content of the superclass input field.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the superclass name</DL>
</DD>
</DL>
<HR>
<A NAME="setSuperClass(java.lang.String, boolean)"><!-- --></A><H3>
setSuperClass</H3>
<PRE>
public void <B>setSuperClass</B>(java.lang.String&nbsp;name,
boolean&nbsp;canBeModified)</PRE>
<DL>
<DD>Sets the super class name.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the new superclass name<DD><CODE>canBeModified</CODE> - if <code>true</code> the superclass name field is
editable; otherwise it is read-only.</DL>
</DD>
</DL>
<HR>
<A NAME="getSuperInterfaces()"><!-- --></A><H3>
getSuperInterfaces</H3>
<PRE>
public java.util.List <B>getSuperInterfaces</B>()</PRE>
<DL>
<DD>Returns the chosen super interfaces.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>a list of chosen super interfaces. The list's elements
are of type <code>String</code></DL>
</DD>
</DL>
<HR>
<A NAME="setSuperInterfaces(java.util.List, boolean)"><!-- --></A><H3>
setSuperInterfaces</H3>
<PRE>
public void <B>setSuperInterfaces</B>(java.util.List&nbsp;interfacesNames,
boolean&nbsp;canBeModified)</PRE>
<DL>
<DD>Sets the super interfaces.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>interfacesNames</CODE> - a list of super interface. The method requires that
the list's elements are of type <code>String</code><DD><CODE>canBeModified</CODE> - if <code>true</code> the super interface field is
editable; otherwise it is read-only.</DL>
</DD>
</DL>
<HR>
<A NAME="addSuperInterface(java.lang.String)"><!-- --></A><H3>
addSuperInterface</H3>
<PRE>
public boolean <B>addSuperInterface</B>(java.lang.String&nbsp;superInterface)</PRE>
<DL>
<DD>Adds a super interface to the end of the list and selects it if it is not in the list yet.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>superInterface</CODE> - the fully qualified type name of the interface.
<DT><B>Returns:</B><DD>returns <code>true</code>if the interfaces has been added, <code>false</code>
if the interface already is in the list.</DL>
</DD>
</DL>
<HR>
<A NAME="setAddComments(boolean, boolean)"><!-- --></A><H3>
setAddComments</H3>
<PRE>
public void <B>setAddComments</B>(boolean&nbsp;doAddComments,
boolean&nbsp;canBeModified)</PRE>
<DL>
<DD>Sets 'Add comment' checkbox. The value set will only be used when creating source when
the comment control is enabled (see <A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#enableCommentControl(boolean)"><CODE>enableCommentControl(boolean)</CODE></A>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>doAddComments</CODE> - if <code>true</code>, comments are added.<DD><CODE>canBeModified</CODE> - if <code>true</code> check box is
editable; otherwise it is read-only.</DL>
</DD>
</DL>
<HR>
<A NAME="enableCommentControl(boolean)"><!-- --></A><H3>
enableCommentControl</H3>
<PRE>
public void <B>enableCommentControl</B>(boolean&nbsp;useAddCommentValue)</PRE>
<DL>
<DD>Sets to use the 'Add comment' checkbox value. Clients that use the 'Add comment' checkbox
additionally have to enable the control. This has been added for backwards compatibility.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>useAddCommentValue</CODE> - if <code>true</code>,</DL>
</DD>
</DL>
<HR>
<A NAME="isAddComments()"><!-- --></A><H3>
isAddComments</H3>
<PRE>
public boolean <B>isAddComments</B>()</PRE>
<DL>
<DD>Returns if comments are added. This method can be overridden by clients.
The selection of the comment control is taken if enabled (see <A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#enableCommentControl(boolean)"><CODE>enableCommentControl(boolean)</CODE></A>, otherwise
the settings as specified in the preferences is used.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>Returns <code>true</code> if comments can be added</DL>
</DD>
</DL>
<HR>
<A NAME="getModifiedResource()"><!-- --></A><H3>
getModifiedResource</H3>
<PRE>
public IResource <B>getModifiedResource</B>()</PRE>
<DL>
<DD>Returns the resource handle that corresponds to the compilation unit to was or
will be created or modified.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>A resource or null if the page contains illegal values.</DL>
</DD>
</DL>
<HR>
<A NAME="createType(IProgressMonitor)"><!-- --></A><H3>
createType</H3>
<PRE>
public void <B>createType</B>(IProgressMonitor&nbsp;monitor)
throws CoreException,
java.lang.InterruptedException</PRE>
<DL>
<DD>Creates the new type using the entered field values.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>monitor</CODE> - a progress monitor to report progress.
<DT><B>Throws:</B>
<DD><CODE>CoreException</CODE> - Thrown when the creation failed.
<DD><CODE>java.lang.InterruptedException</CODE> - Thrown when the operation was canceled.</DL>
</DD>
</DL>
<HR>
<A NAME="getCreatedType()"><!-- --></A><H3>
getCreatedType</H3>
<PRE>
public <A HREF="../../../../../../org/eclipse/wst/jsdt/core/IType.html" title="interface in org.eclipse.wst.jsdt.core">IType</A> <B>getCreatedType</B>()</PRE>
<DL>
<DD>Returns the created type or <code>null</code> is the type has not been created yet. The method
only returns a valid type after <code>createType</code> has been called.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the created type<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html#createType(IProgressMonitor)"><CODE>createType(IProgressMonitor)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getRunnable()"><!-- --></A><H3>
getRunnable</H3>
<PRE>
public IRunnableWithProgress <B>getRunnable</B>()</PRE>
<DL>
<DD>Returns the runnable that creates the type using the current settings.
The returned runnable must be executed in the UI thread.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the runnable to create the new type</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/NewTypeWizardPage.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewPackageWizardPage.html" title="class in org.eclipse.wst.jsdt.ui.wizards"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../../org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.ImportsManager.html" title="class in org.eclipse.wst.jsdt.ui.wizards"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../index.html?org/eclipse/wst/jsdt/ui/wizards/NewTypeWizardPage.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="NewTypeWizardPage.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>