Class LoginWizard
java.lang.Object
org.eclipse.jface.wizard.Wizard
com.developer.nefarious.zjoule.plugin.login.LoginWizard
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
,org.eclipse.jface.wizard.IWizard
public class LoginWizard
extends org.eclipse.jface.wizard.Wizard
A wizard for logging into SAP AI Core.
The LoginWizard
class manages a multi-page wizard that guides the user
through the login process, including entering credentials and selecting configurations.
It integrates with temporary memory components and client objects to handle authentication and session management.
-
Field Summary
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
-
Constructor Summary
ConstructorDescriptionLoginWizard
(org.eclipse.swt.browser.Browser browser) Constructs a newLoginWizard
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPages()
Adds the wizard pages to the login process.boolean
Completes the login process and persists the temporary memory.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, setWindowTitle
-
Constructor Details
-
LoginWizard
public LoginWizard(org.eclipse.swt.browser.Browser browser) Constructs a newLoginWizard
instance.- Parameters:
browser
- theBrowser
instance used for login-related UI updates.
-
-
Method Details
-
addPages
public void addPages()Adds the wizard pages to the login process.This method initializes:
- The
FirstLoginWizardPage
for entering credentials. - The
SecondLoginWizardPage
for selecting resources and configurations.
- Specified by:
addPages
in interfaceorg.eclipse.jface.wizard.IWizard
- Overrides:
addPages
in classorg.eclipse.jface.wizard.Wizard
- The
-
performFinish
public boolean performFinish()Completes the login process and persists the temporary memory.This method persists the following temporary memory components:
TemporaryMemoryAccessToken
TemporaryMemoryServiceKey
TemporaryMemoryResourceGroup
TemporaryMemoryDeployment
SessionManager.login(Browser)
.- Specified by:
performFinish
in interfaceorg.eclipse.jface.wizard.IWizard
- Specified by:
performFinish
in classorg.eclipse.jface.wizard.Wizard
- Returns:
true
if the wizard completes successfully.
-