|
|||||||||
| 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.jdt.ui.wizards.NewElementWizardPage
org.eclipse.jdt.ui.wizards.NewContainerWizardPage
org.eclipse.jdt.ui.wizards.NewTypeWizardPage
org.eclipse.xtext.xtend2.ui.wizards.NewXtend2ClassWizardPage
public class NewXtend2ClassWizardPage
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.jdt.ui.wizards.NewTypeWizardPage |
|---|
org.eclipse.jdt.ui.wizards.NewTypeWizardPage.ImportsManager |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.jdt.ui.wizards.NewTypeWizardPage |
|---|
ANNOTATION_TYPE, CLASS_TYPE, ENCLOSING, ENCLOSINGSELECTION, ENUM_TYPE, F_ABSTRACT, F_FINAL, F_PRIVATE, F_PROTECTED, F_PUBLIC, F_STATIC, fEnclosingTypeStatus, fModifierStatus, fPackageStatus, fSuperClassStatus, fSuperInterfacesStatus, fTypeNameStatus, INTERFACE_TYPE, INTERFACES, METHODS, MODIFIERS, PACKAGE, SUPER, TYPENAME |
| Fields inherited from class org.eclipse.jdt.ui.wizards.NewContainerWizardPage |
|---|
CONTAINER, fContainerStatus |
| Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
|---|
ERROR, INFORMATION, NONE, WARNING |
| Constructor Summary | |
|---|---|
NewXtend2ClassWizardPage()
|
|
| Method Summary | |
|---|---|
void |
createControl(org.eclipse.swt.widgets.Composite parent)
Creates the top level control for this dialog page under the given parent composite. |
int |
createType()
|
void |
createType(org.eclipse.core.runtime.IProgressMonitor monitor)
Creates the new type using the entered field values. |
org.eclipse.core.resources.IResource |
getResource()
|
protected void |
handleFieldChanged(java.lang.String fieldName)
Hook method that gets called when a field on this page has changed. |
protected void |
init(org.eclipse.jface.viewers.IStructuredSelection selection)
|
void |
setVisible(boolean visible)
The DialogPage implementation of this
IDialogPage method sets the control to the given
visibility state. |
protected org.eclipse.core.runtime.IStatus |
typeNameChanged()
Hook method that gets called when the type name has changed. |
| Methods inherited from class org.eclipse.jdt.ui.wizards.NewTypeWizardPage |
|---|
addSuperInterface, chooseEnclosingType, choosePackage, chooseSuperClass, chooseSuperInterfaces, constructCUContent, containerChanged, createCommentControls, createEnclosingTypeControls, createInheritedMethods, createModifierControls, createPackageControls, createSeparator, createSuperClassControls, createSuperInterfacesControls, createTypeMembers, createTypeNameControls, enableCommentControl, enclosingTypeChanged, getCompilationUnitName, getCreatedType, getEnclosingType, getEnclosingTypeLabel, getEnclosingTypeText, getFileComment, getFileComment, getModifiedResource, getModifiers, getModifiersLabel, getPackageFragment, getPackageLabel, getPackageText, getRunnable, getSuperClass, getSuperClassLabel, getSuperInterfaces, getSuperInterfacesLabel, getTemplate, getTemplate, getTypeComment, getTypeComment, getTypeName, getTypeNameLabel, initTypePage, isAddComments, isEnclosingTypeSelected, modifiersChanged, packageChanged, setAddComments, setEnclosingType, setEnclosingTypeSelection, setFocus, setModifiers, setPackageFragment, setSuperClass, setSuperInterfaces, setTypeName, superClassChanged, superInterfacesChanged |
| Methods inherited from class org.eclipse.jdt.ui.wizards.NewContainerWizardPage |
|---|
chooseContainer, createContainerControls, getContainerLabel, getCurrentTextSelection, getInitialJavaElement, getJavaProject, getMaxFieldWidth, getPackageFragmentRoot, getPackageFragmentRootText, getWorkspaceRoot, initContainerPage, setFocusOnContainer, setPackageFragmentRoot |
| Methods inherited from class org.eclipse.jdt.ui.wizards.NewElementWizardPage |
|---|
updateStatus, updateStatus |
| 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, toString |
| Methods 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, setMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, 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 NewXtend2ClassWizardPage()
| Method Detail |
|---|
public void createControl(org.eclipse.swt.widgets.Composite parent)
org.eclipse.jface.dialogs.IDialogPage
Implementors are responsible for ensuring that
the created control can be accessed via getControl
parent - the parent compositepublic void setVisible(boolean visible)
org.eclipse.jface.dialogs.DialogPageDialogPage implementation of this
IDialogPage method sets the control to the given
visibility state. Subclasses may extend.
setVisible in interface org.eclipse.jface.dialogs.IDialogPagesetVisible in class org.eclipse.jdt.ui.wizards.NewElementWizardPagevisible - true to make this page visible,
and false to hide itprotected void init(org.eclipse.jface.viewers.IStructuredSelection selection)
public void createType(org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException,
java.lang.InterruptedException
org.eclipse.jdt.ui.wizards.NewTypeWizardPage
createType in class org.eclipse.jdt.ui.wizards.NewTypeWizardPagemonitor - a progress monitor to report progress.
org.eclipse.core.runtime.CoreException - Thrown when the creation failed.
java.lang.InterruptedException - Thrown when the operation was canceled.public int createType()
protected void handleFieldChanged(java.lang.String fieldName)
org.eclipse.jdt.ui.wizards.NewContainerWizardPageEvery sub type is responsible to call this method when a field on its page has changed. Subtypes override (extend) the method to add verification when a own field has a dependency to an other field. For example the class name input must be verified again when the package field changes (check for duplicated class names).
handleFieldChanged in class org.eclipse.jdt.ui.wizards.NewTypeWizardPagefieldName - The name of the field that has changed (field id). For the
source folder the field id is CONTAINERprotected org.eclipse.core.runtime.IStatus typeNameChanged()
org.eclipse.jdt.ui.wizards.NewTypeWizardPageSubclasses may extend this method to perform their own validation.
typeNameChanged in class org.eclipse.jdt.ui.wizards.NewTypeWizardPagepublic org.eclipse.core.resources.IResource getResource()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||