Class PluginPreferencesPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.preference.PreferencePage
org.eclipse.jface.preference.FieldEditorPreferencePage
com.developer.nefarious.zjoule.plugin.core.preferences.PluginPreferencesPage
- All Implemented Interfaces:
EventListener
,org.eclipse.jface.dialogs.IDialogPage
,org.eclipse.jface.dialogs.IMessageProvider
,org.eclipse.jface.preference.IPreferencePage
,org.eclipse.jface.util.IPropertyChangeListener
,org.eclipse.ui.IWorkbenchPreferencePage
public class PluginPreferencesPage
extends org.eclipse.jface.preference.FieldEditorPreferencePage
implements org.eclipse.ui.IWorkbenchPreferencePage
Represents the preference page for configuring plugin settings.
The PluginPreferencesPage
allows users to configure settings
related to SAP AI Core and Ollama AI models. It dynamically determines
which settings to display based on the active session type.
-
Field Summary
Fields inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
FLAT, GRID, MARGIN_HEIGHT, MARGIN_WIDTH, VERTICAL_SPACING
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Creates the field editors for the preference page.void
init
(org.eclipse.ui.IWorkbench workbench) Initializes the preference page with the Eclipse workbench.Methods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
addField, adjustGridLayout, applyFont, checkState, createContents, dispose, getFieldEditorParent, initialize, performDefaults, performOk, propertyChange, setVisible
Methods inherited from class org.eclipse.jface.preference.PreferencePage
applyData, applyDialogFont, computeSize, contributeButtons, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, noDefaultButton, okToLeave, performApply, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage
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
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
Methods inherited from interface org.eclipse.jface.preference.IPreferencePage
computeSize, isValid, okToLeave, performCancel, performOk, setContainer, setSize
-
Constructor Details
-
PluginPreferencesPage
public PluginPreferencesPage()Constructs aPluginPreferencesPage
instance.This sets up the preference page layout using the Eclipse preference store.
-
-
Method Details
-
init
public void init(org.eclipse.ui.IWorkbench workbench) Initializes the preference page with the Eclipse workbench.- Specified by:
init
in interfaceorg.eclipse.ui.IWorkbenchPreferencePage
- Parameters:
workbench
- theIWorkbench
instance associated with the preference page.
-
createFieldEditors
protected void createFieldEditors()Creates the field editors for the preference page.This method dynamically adds configuration settings based on the session type. It displays chat instructions and either SAP AI Core or Ollama configuration settings.
- Specified by:
createFieldEditors
in classorg.eclipse.jface.preference.FieldEditorPreferencePage
-