|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.eclipse.cdt.internal.ui.wizards.NewElementWizardPage
org.eclipse.cdt.ui.wizards.NewClassCreationWizardPage
public class NewClassCreationWizardPage
Field Summary |
---|
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
---|
ERROR, INFORMATION, NONE, WARNING |
Constructor Summary | |
---|---|
NewClassCreationWizardPage()
Constructor for NewClassCreationWizardPage |
Method Summary | |
---|---|
void |
createClass(org.eclipse.core.runtime.IProgressMonitor monitor)
Creates the new class using the entered field values. |
void |
createControl(org.eclipse.swt.widgets.Composite parent)
|
java.lang.String |
getClassName()
Returns the class name entered into the class input field. |
org.eclipse.cdt.core.model.ICElement |
getCreatedClass()
Returns the created class. |
org.eclipse.core.resources.IFile |
getCreatedHeaderFile()
Returns the created header file. |
org.eclipse.core.resources.IFile |
getCreatedSourceFile()
Returns the created source file. |
java.lang.String |
getHeaderFileText()
Returns the text entered into the header file input field. |
java.lang.String |
getNamespaceText()
Returns the text entered into the namespace input field. |
java.lang.String |
getSourceFileText()
Returns the text entered into the source file input field. |
java.lang.String |
getSourceFolderText()
Returns the text entered into the source folder input field. |
void |
init(org.eclipse.jface.viewers.IStructuredSelection selection)
The wizard owning this page is responsible for calling this method with the current selection. |
boolean |
isNamespaceSelected()
Returns the selection state of the namespace checkbox. |
boolean |
isUseDefaultSelected()
Returns the selection state of the file group checkbox. |
boolean |
openClassInEditor()
Returns whether the generated header and source files should be opened in editors after the finish button is pressed. |
void |
setClassName(java.lang.String name,
boolean update)
Sets the text of the class name input field. |
void |
setHeaderFileText(java.lang.String header,
boolean update)
Sets the text of the header file input field. |
void |
setNamespaceSelection(boolean isSelected,
boolean canBeModified)
Sets the namespace checkbox's selection state. |
void |
setNamespaceText(java.lang.String namespace,
boolean update)
Sets the text of the namespace input field. |
void |
setSourceFileText(java.lang.String source,
boolean update)
Sets the text of the source file input field. |
void |
setSourceFolderText(java.lang.String folder,
boolean update)
Sets the text of the source folder input field. |
void |
setUseDefaultSelection(boolean isSelected,
boolean canBeModified)
Sets the use default checkbox's selection state. |
void |
setVisible(boolean visible)
|
boolean |
verifyBaseClasses()
Checks if the base classes need to be verified (ie they must exist in the project) |
Methods inherited from class org.eclipse.jface.wizard.WizardPage |
---|
canFlipToNextPage, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString |
Methods inherited from class org.eclipse.jface.dialogs.DialogPage |
---|
dispose, getControl, getDescription, getErrorMessage, getMessage, getMessageType, getTitle, performHelp, setMessage |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
---|
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp |
Constructor Detail |
---|
public NewClassCreationWizardPage()
Method Detail |
---|
public void createControl(org.eclipse.swt.widgets.Composite parent)
public void init(org.eclipse.jface.viewers.IStructuredSelection selection)
selection
- used to initialize the fieldspublic java.lang.String getSourceFolderText()
public void setSourceFolderText(java.lang.String folder, boolean update)
folder
- the folder nameupdate
- true
if the dialog should be updatedpublic java.lang.String getNamespaceText()
public void setNamespaceText(java.lang.String namespace, boolean update)
namespace
- the namespace nameupdate
- true
if the dialog should be updatedpublic boolean isNamespaceSelected()
public void setNamespaceSelection(boolean isSelected, boolean canBeModified)
isSelected
- the checkbox's selection statecanBeModified
- if true
the checkbox is
modifiable; otherwise it is read-only.public java.lang.String getClassName()
public void setClassName(java.lang.String name, boolean update)
name
- the new class nameupdate
- true
if the dialog should be updatedpublic boolean isUseDefaultSelected()
public void setUseDefaultSelection(boolean isSelected, boolean canBeModified)
isSelected
- the checkbox's selection statecanBeModified
- if true
the checkbox is
modifiable; otherwise it is read-only.public java.lang.String getHeaderFileText()
public void setHeaderFileText(java.lang.String header, boolean update)
header
- the header file nameupdate
- true
if the dialog should be updatedpublic java.lang.String getSourceFileText()
public void setSourceFileText(java.lang.String source, boolean update)
source
- the source file nameupdate
- true
if the dialog should be updatedpublic void setVisible(boolean visible)
setVisible
in interface org.eclipse.jface.dialogs.IDialogPage
setVisible
in class NewElementWizardPage
public boolean verifyBaseClasses()
true
if the base classes should be verifiedpublic void createClass(org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException, java.lang.InterruptedException
monitor
- a progress monitor to report progress.
org.eclipse.core.runtime.CoreException
- Thrown when the creation failed.
java.lang.InterruptedException
- Thrown when the operation was cancelled.public boolean openClassInEditor()
true
if the header and source file should be
displayedpublic org.eclipse.cdt.core.model.ICElement getCreatedClass()
createClass
has been called.
createClass(IProgressMonitor)
public org.eclipse.core.resources.IFile getCreatedHeaderFile()
createClass
has been called.
createClass(IProgressMonitor)
public org.eclipse.core.resources.IFile getCreatedSourceFile()
createClass
has been called.
createClass(IProgressMonitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |