|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectWizardPage
org.eclipse.wst.jsdt.ui.wizards.NewElementWizardPage
org.eclipse.wst.jsdt.ui.wizards.NewContainerWizardPage
org.eclipse.wst.jsdt.ui.wizards.NewPackageWizardPage
public class NewPackageWizardPage
Wizard page to create a new package.
Note: This class is not intended to be subclassed, but clients can instantiate.
To implement a different kind of a new package wizard page, extend NewContainerWizardPage.
| Constructor Summary | |
|---|---|
NewPackageWizardPage()
Creates a new NewPackageWizardPage |
|
| Method Summary | |
|---|---|
void |
createControl(Composite parent)
|
void |
createPackage(IProgressMonitor monitor)
Creates the new package using the entered field values. |
IResource |
getModifiedResource()
Returns the resource handle that corresponds to the element to was created or will be created. |
IPackageFragment |
getNewPackageFragment()
Returns the created package fragment. |
java.lang.String |
getPackageText()
Returns the content of the package input field. |
IRunnableWithProgress |
getRunnable()
Returns a runnable that creates a package using the current settings. |
void |
init(IStructuredSelection selection)
The wizard owning this page is responsible for calling this method with the current selection. |
void |
setPackageText(java.lang.String str,
boolean canBeModified)
Sets the content of the package input field to the given value. |
void |
setVisible(boolean visible)
|
| Methods inherited from class org.eclipse.wst.jsdt.ui.wizards.NewContainerWizardPage |
|---|
getJavaProject, getPackageFragmentRoot, getPackageFragmentRootText, setPackageFragmentRoot |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NewPackageWizardPage()
NewPackageWizardPage
| Method Detail |
|---|
public void init(IStructuredSelection selection)
selection - used to initialize the fieldspublic void createControl(Composite parent)
public void setVisible(boolean visible)
setVisible in class NewElementWizardPageorg.eclipse.jface.dialogs.IDialogPage#setVisible(boolean)public java.lang.String getPackageText()
public void setPackageText(java.lang.String str,
boolean canBeModified)
str - the new package input field textcanBeModified - if true the package input
field can be modified; otherwise it is read-only.public IResource getModifiedResource()
public IRunnableWithProgress getRunnable()
public IPackageFragment getNewPackageFragment()
getRunnable or createPackage have been
executed.
public void createPackage(IProgressMonitor monitor)
throws CoreException,
java.lang.InterruptedException
monitor - a progress monitor to report progress. The progress
monitor must not be null
CoreException - Thrown if creating the package failed.
java.lang.InterruptedException - Thrown when the operation has been canceled.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||