com.ibm.carma.ui.wizard
Class CARMANewMemberWizard

java.lang.Object
  extended by org.eclipse.jface.wizard.Wizard
      extended by org.eclipse.ui.wizards.newresource.BasicNewResourceWizard
          extended by com.ibm.carma.ui.wizard.CARMANewMemberWizard
All Implemented Interfaces:
org.eclipse.jface.wizard.IWizard, org.eclipse.ui.INewWizard, org.eclipse.ui.IWorkbenchWizard

public class CARMANewMemberWizard
extends org.eclipse.ui.wizards.newresource.BasicNewResourceWizard

Wizard for creating a new CARMA member (resource) in a user specified location in the hierachy.

This class may be instantiated and used without further configuration.

Example:

 IWorkbenchWizard wizard = new CARMANewMemberWizard();
 wizard.init(workbench, selection);
 WizardDialog dialog = new WizardDialog(shell, wizard);
 dialog.open();
 
During the call to open, the wizard dialog is presented to the user. When the user hits Finish, a CARMA member at the user-specified CARMA hierarchy path is created, the dialog closes, and the call to open returns.

Since:
7.0

Field Summary
static java.lang.String COPYRIGHT
           
 
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
 
Constructor Summary
CARMANewMemberWizard()
          Creates a wizard for creating a new CARMA member (resource)
 
Method Summary
 void addPages()
           
 ResourceContainer getParentContainer()
          Returns the parent container for the create operation
 void init(org.eclipse.ui.IWorkbench workbench, org.eclipse.jface.viewers.IStructuredSelection currentSelection)
           
 boolean performFinish()
           
 void setParentContainer(ResourceContainer parent)
           
 
Methods inherited from class org.eclipse.ui.wizards.newresource.BasicNewResourceWizard
getSelection, getWorkbench, selectAndReveal
 
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
equals, 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

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

CARMANewMemberWizard

public CARMANewMemberWizard()
Creates a wizard for creating a new CARMA member (resource)

Method Detail

init

public void init(org.eclipse.ui.IWorkbench workbench,
                 org.eclipse.jface.viewers.IStructuredSelection currentSelection)
Specified by:
init in interface org.eclipse.ui.IWorkbenchWizard
Overrides:
init in class org.eclipse.ui.wizards.newresource.BasicNewResourceWizard

setParentContainer

public void setParentContainer(ResourceContainer parent)

getParentContainer

public ResourceContainer getParentContainer()
Returns the parent container for the create operation

Returns:
The user selected parent container resource

addPages

public void addPages()
Specified by:
addPages in interface org.eclipse.jface.wizard.IWizard
Overrides:
addPages in class org.eclipse.jface.wizard.Wizard

performFinish

public boolean performFinish()
Specified by:
performFinish in interface org.eclipse.jface.wizard.IWizard
Specified by:
performFinish in class org.eclipse.jface.wizard.Wizard