Package org.eclipse.remote.serial.ui
Class NewSerialPortConnectionWizard
java.lang.Object
org.eclipse.jface.wizard.Wizard
org.eclipse.remote.serial.ui.NewSerialPortConnectionWizard
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider,org.eclipse.jface.wizard.IWizard,IRemoteUIConnectionWizard
public class NewSerialPortConnectionWizard
extends org.eclipse.jface.wizard.Wizard
implements IRemoteUIConnectionWizard
-
Field Summary
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE -
Constructor Summary
ConstructorsConstructorDescriptionNewSerialPortConnectionWizard(org.eclipse.swt.widgets.Shell shell, IRemoteConnectionType connectionType) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPages()Get the connection being edited.open()Open configuration wizard allowing the user to enter information about a connection.booleanvoidsetConnection(IRemoteConnectionWorkingCopy connection) Set a connection containing the information to be edited by the wizard.voidsetConnectionName(String name) Set the initial name of the connection.voidsetInvalidConnectionNames(Set<String> names) Supply a set of connection names that are invalid.Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getMinimumWizardSize, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jface.wizard.IWizard
canFinish, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getMinimumWizardSize, getNextPage, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
-
Constructor Details
-
NewSerialPortConnectionWizard
public NewSerialPortConnectionWizard(org.eclipse.swt.widgets.Shell shell, IRemoteConnectionType connectionType)
-
-
Method Details
-
addPages
public void addPages()- Specified by:
addPagesin interfaceorg.eclipse.jface.wizard.IWizard- Overrides:
addPagesin classorg.eclipse.jface.wizard.Wizard
-
performFinish
public boolean performFinish()- Specified by:
performFinishin interfaceorg.eclipse.jface.wizard.IWizard- Specified by:
performFinishin classorg.eclipse.jface.wizard.Wizard
-
open
Description copied from interface:IRemoteUIConnectionWizardOpen configuration wizard allowing the user to enter information about a connection. If the user confirms the information is correct (e.g. selects OK in a dialog) then a working copy of the connection is returned. If the user discards the information, then null is returned.- Specified by:
openin interfaceIRemoteUIConnectionWizard- Returns:
- connection working copy or null if the wizard is canceled
-
getConnection
Description copied from interface:IRemoteUIConnectionWizardGet the connection being edited.- Specified by:
getConnectionin interfaceIRemoteUIConnectionWizard- Returns:
- connection being edited
-
setConnection
Description copied from interface:IRemoteUIConnectionWizardSet a connection containing the information to be edited by the wizard. Setting this value overrides theIRemoteUIConnectionWizard.setConnectionName(String)method.- Specified by:
setConnectionin interfaceIRemoteUIConnectionWizard- Parameters:
connection- connection used to initialize the wizard
-
setConnectionName
Description copied from interface:IRemoteUIConnectionWizardSet the initial name of the connection.- Specified by:
setConnectionNamein interfaceIRemoteUIConnectionWizard- Parameters:
name- initial connection name
-
setInvalidConnectionNames
Description copied from interface:IRemoteUIConnectionWizardSupply a set of connection names that are invalid. The dialog should display an error if the user trys to select a name from the set.- Specified by:
setInvalidConnectionNamesin interfaceIRemoteUIConnectionWizard- Parameters:
names- set of invalid connections names
-