Class LoginOptionsPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
com.developer.nefarious.zjoule.plugin.login.pages.LoginOptionsPage
- All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage
,org.eclipse.jface.dialogs.IMessageProvider
,org.eclipse.jface.wizard.IWizardPage
public class LoginOptionsPage
extends org.eclipse.jface.wizard.WizardPage
A wizard page for selecting an AI provider during the login process.
The LoginOptionsPage
presents the user with two options:
- SAP AI Core - Selects a model from the SAP AI Core Generative AI Hub.
- Ollama (Local) - Selects a local Ollama model.
-
Field Summary
FieldsFields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aLoginOptionsPage
for selecting an AI provider. -
Method Summary
Modifier and TypeMethodDescriptionvoid
createControl
(org.eclipse.swt.widgets.Composite parent) Creates the UI components for the wizard page.boolean
Checks whether the SAP AI Core option is selected.boolean
Checks whether the Ollama (Local) option is selected.Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
Methods inherited from interface org.eclipse.jface.wizard.IWizardPage
getMinimumPageSize
-
Field Details
-
PAGE_ID
The unique identifier for this wizard page.- See Also:
-
-
Constructor Details
-
LoginOptionsPage
public LoginOptionsPage()Constructs aLoginOptionsPage
for selecting an AI provider.
-
-
Method Details
-
isOption1Selected
public boolean isOption1Selected()Checks whether the SAP AI Core option is selected.- Returns:
true
if the SAP AI Core option is selected,false
otherwise.
-
isOption2Selected
public boolean isOption2Selected()Checks whether the Ollama (Local) option is selected.- Returns:
true
if the Ollama (Local) option is selected,false
otherwise.
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent) Creates the UI components for the wizard page.This method sets up two radio buttons for selecting the AI provider and ensures that selecting an option marks the page as complete.
- Parameters:
parent
- the parent composite in which UI components are created.
-