RSE
Release 1.0

org.eclipse.rse.ui.wizards
Class RSEDefaultNewConnectionWizardDelegate

java.lang.Object
  extended byorg.eclipse.rse.ui.wizards.RSENewConnectionWizardDelegate
      extended byorg.eclipse.rse.ui.wizards.RSEDefaultNewConnectionWizardDelegate
All Implemented Interfaces:
IRSENewConnectionWizardDelegate

public class RSEDefaultNewConnectionWizardDelegate
extends RSENewConnectionWizardDelegate


Constructor Summary
RSEDefaultNewConnectionWizardDelegate()
          Constructor.
 
Method Summary
 void addPages()
          Creates the wizard pages.
 boolean canFinish()
          Intercept of Wizard method so we can take into account our additional pages
protected  RSENewConnectionWizardDefaultDelegateMainPage createMainPage(String[] restrictSystemTypesTo)
          Creates the wizard's main page.
protected  ISystemNewConnectionWizardPage[] getAdditionalWizardPages(String systemType)
           
 IHost getDummyHost()
           
protected  ISystemNewConnectionWizardPage getFirstAdditionalPage()
          Return the first additional page to show when user presses Next on the main page
 IWizardPage getMainPage()
          Return the main page of this wizard
 SystemConnectionForm getMainPageForm()
          Return the form of the main page of this wizard
 IWizardPage getNextPage(IWizardPage page)
          Intercept of Wizard method so we can get the Next button behaviour to work right for the dynamically managed additional wizard pages.
 String getPageTitle()
           
 IWizardPage getPreviousPage(IWizardPage page)
           
protected  boolean hasAdditionalPages()
          Return true if there are additional pages.
 void init(RSENewConnectionWizard wizard, IRSESystemType systemType)
           
 boolean performFinish()
          Completes processing of the wizard.
 void restrictSystemType(String systemType)
          Call this to restrict the system type that the user is allowed to choose
 void restrictSystemTypes(String[] systemTypes)
          Call this to restrict the system types that the user is allowed to choose
 void setConnectionName(String name)
          Preset the connection name
 void setCurrentlySelectedConnection(IHost conn)
          Set the currently selected connection.
 void setHostName(String name)
          Preset the host name
protected  void setNewPrivateProfileName(String newName)
          Set the new profile name specified on the rename profile page...
 void setUserId(String userId)
          For "new" mode, allows setting of the initial user Id.
 void systemTypeChanged(IRSESystemType systemType)
           
 void systemTypeSelected(String systemType, boolean duringInitialization)
          Event: the user has selected a system type.
 
Methods inherited from class org.eclipse.rse.ui.wizards.RSENewConnectionWizardDelegate
getSystemType, getWizard, isInitialized, setInitialized, setSystemType, setWizard
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSEDefaultNewConnectionWizardDelegate

public RSEDefaultNewConnectionWizardDelegate()
Constructor.

Method Detail

init

public void init(RSENewConnectionWizard wizard,
                 IRSESystemType systemType)
Specified by:
init in interface IRSENewConnectionWizardDelegate
Overrides:
init in class RSENewConnectionWizardDelegate
See Also:
RSENewConnectionWizardDelegate.init(org.eclipse.rse.ui.wizards.RSENewConnectionWizard, org.eclipse.rse.core.IRSESystemType)

restrictSystemType

public void restrictSystemType(String systemType)
Call this to restrict the system type that the user is allowed to choose


restrictSystemTypes

public void restrictSystemTypes(String[] systemTypes)
Call this to restrict the system types that the user is allowed to choose


getDummyHost

public IHost getDummyHost()

addPages

public void addPages()
Creates the wizard pages. This method is an override from the parent Wizard class.

Specified by:
addPages in interface IRSENewConnectionWizardDelegate
Overrides:
addPages in class RSENewConnectionWizardDelegate
See Also:
IRSENewConnectionWizardDelegate.addPages()

createMainPage

protected RSENewConnectionWizardDefaultDelegateMainPage createMainPage(String[] restrictSystemTypesTo)
Creates the wizard's main page. This method is an override from the parent class.


getPageTitle

public String getPageTitle()

setCurrentlySelectedConnection

public void setCurrentlySelectedConnection(IHost conn)
Set the currently selected connection. Used to better default entry fields.


setUserId

public void setUserId(String userId)
For "new" mode, allows setting of the initial user Id. Sometimes subsystems like to have their own default userId preference page option. If so, query it and set it here by calling this.


setConnectionName

public void setConnectionName(String name)
Preset the connection name


setHostName

public void setHostName(String name)
Preset the host name


performFinish

public boolean performFinish()
Completes processing of the wizard. If this method returns true, the wizard will close; otherwise, it will stay active. This method is an override from the parent Wizard class.

Returns:
whether the wizard finished successfully

setNewPrivateProfileName

protected void setNewPrivateProfileName(String newName)
Set the new profile name specified on the rename profile page...


getMainPage

public IWizardPage getMainPage()
Return the main page of this wizard


getMainPageForm

public SystemConnectionForm getMainPageForm()
Return the form of the main page of this wizard


systemTypeSelected

public void systemTypeSelected(String systemType,
                               boolean duringInitialization)
Event: the user has selected a system type.


getAdditionalWizardPages

protected ISystemNewConnectionWizardPage[] getAdditionalWizardPages(String systemType)

hasAdditionalPages

protected boolean hasAdditionalPages()
Return true if there are additional pages. This decides whether to enable the Next button on the main page


getFirstAdditionalPage

protected ISystemNewConnectionWizardPage getFirstAdditionalPage()
Return the first additional page to show when user presses Next on the main page


getNextPage

public IWizardPage getNextPage(IWizardPage page)
Intercept of Wizard method so we can get the Next button behaviour to work right for the dynamically managed additional wizard pages.

Specified by:
getNextPage in interface IRSENewConnectionWizardDelegate
Overrides:
getNextPage in class RSENewConnectionWizardDelegate
See Also:
IRSENewConnectionWizardDelegate.getNextPage(org.eclipse.jface.wizard.IWizardPage)

getPreviousPage

public IWizardPage getPreviousPage(IWizardPage page)
Specified by:
getPreviousPage in interface IRSENewConnectionWizardDelegate
Overrides:
getPreviousPage in class RSENewConnectionWizardDelegate
See Also:
RSENewConnectionWizardDelegate.getPreviousPage(org.eclipse.jface.wizard.IWizardPage)

canFinish

public boolean canFinish()
Intercept of Wizard method so we can take into account our additional pages

Specified by:
canFinish in interface IRSENewConnectionWizardDelegate
Overrides:
canFinish in class RSENewConnectionWizardDelegate
See Also:
IRSENewConnectionWizardDelegate.canFinish()

systemTypeChanged

public void systemTypeChanged(IRSESystemType systemType)
Specified by:
systemTypeChanged in interface IRSENewConnectionWizardDelegate
Overrides:
systemTypeChanged in class RSENewConnectionWizardDelegate
See Also:
RSENewConnectionWizardDelegate.systemTypeChanged(org.eclipse.rse.core.IRSESystemType)

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.