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

    Constructors
    Constructor
    Description
    LoginWizard(org.eclipse.swt.browser.Browser browser)
    Constructs a new LoginWizard instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LoginWizard

      public LoginWizard(org.eclipse.swt.browser.Browser browser)
      Constructs a new LoginWizard instance.
      Parameters:
      browser - the Browser instance used for login-related UI updates.
  • Method Details

    • addPages

      public void addPages()
      Adds the wizard pages to the login process.

      This method initializes:

      Specified by:
      addPages in interface org.eclipse.jface.wizard.IWizard
      Overrides:
      addPages in class org.eclipse.jface.wizard.Wizard
    • performFinish

      public boolean performFinish()
      Completes the login process and persists the temporary memory.

      This method persists the following temporary memory components:

      It also logs in the user by invoking SessionManager.login(Browser).
      Specified by:
      performFinish in interface org.eclipse.jface.wizard.IWizard
      Specified by:
      performFinish in class org.eclipse.jface.wizard.Wizard
      Returns:
      true if the wizard completes successfully.