|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.wizard.Wizard
edu.wpi.ebob.wizards.AddToObjectBenchWizard
public class AddToObjectBenchWizard
This wizard guides a user through the process of adding an instance to the Object Bench.
Field Summary | |
---|---|
private java.lang.String |
fqClassName
The fully qualified classname retrieved from the selection. |
private IObject |
obj
|
private AddToObjectBenchWizardPage |
page1
|
private AddToObjectBenchWizardPageExtension |
page2
|
private org.eclipse.jdt.core.IJavaProject |
project
the currently selected project, retrieved from the selection. |
Fields inherited from class org.eclipse.jface.wizard.Wizard |
---|
DEFAULT_IMAGE |
Constructor Summary | |
---|---|
AddToObjectBenchWizard()
Constructor for AddToObjectBenchWizard. |
Method Summary | |
---|---|
void |
addPages()
Adding the page to the wizard. |
private void |
doFinish(java.lang.String instanceName,
IConstructor constructor,
IObject[] args,
org.eclipse.core.runtime.IProgressMonitor monitor)
The worker method. |
private IConstructor |
getConstructor()
|
void |
init(org.eclipse.ui.IWorkbench workbench,
org.eclipse.jface.viewers.IStructuredSelection selection)
Retrieves the fully-qualified classname and project from the selection. |
boolean |
performFinish()
This method is called when 'Finish' button is pressed in the wizard. |
void |
setProject(org.eclipse.jdt.core.IJavaProject project)
Sets this wizard to use project as the default project in
the project selection drop-down. |
void |
setType(org.eclipse.jdt.core.IType type)
sets the type for this wizard. |
Methods inherited from class org.eclipse.jface.wizard.Wizard |
---|
addPage, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.wizard.IWizard |
---|
canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer |
Field Detail |
---|
private java.lang.String fqClassName
init(IWorkbench, IStructuredSelection)
private IObject obj
private AddToObjectBenchWizardPage page1
private AddToObjectBenchWizardPageExtension page2
private org.eclipse.jdt.core.IJavaProject project
init(IWorkbench, IStructuredSelection)
Constructor Detail |
---|
public AddToObjectBenchWizard()
Method Detail |
---|
public void addPages()
addPages
in interface org.eclipse.jface.wizard.IWizard
addPages
in class org.eclipse.jface.wizard.Wizard
private void doFinish(java.lang.String instanceName, IConstructor constructor, IObject[] args, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException, RemoteException
args
- constructor
-
RemoteException
org.eclipse.core.runtime.CoreException
public void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection selection)
init
in interface org.eclipse.ui.IWorkbenchWizard
IWorkbenchWizard.init(IWorkbench, IStructuredSelection)
public boolean performFinish()
performFinish
in interface org.eclipse.jface.wizard.IWizard
performFinish
in class org.eclipse.jface.wizard.Wizard
private IConstructor getConstructor()
public void setProject(org.eclipse.jdt.core.IJavaProject project)
project
as the default project in
the project selection drop-down.
project
- The desired projectpublic void setType(org.eclipse.jdt.core.IType type)
type
- the java element to be associated with the project.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |