Class DeploymentSelectionAdapter
java.lang.Object
org.eclipse.swt.events.SelectionAdapter
com.developer.nefarious.zjoule.plugin.login.events.DeploymentSelectionAdapter
- All Implemented Interfaces:
EventListener
,org.eclipse.swt.events.SelectionListener
,org.eclipse.swt.internal.SWTEventListener
public class DeploymentSelectionAdapter
extends org.eclipse.swt.events.SelectionAdapter
Handles selection events for the deployment dropdown in the second page of the login wizard.
The DeploymentSelectionAdapter
listens for changes to the selected deployment configuration,
updates the page's state, and saves the selected deployment to memory.
-
Constructor Summary
ConstructorDescriptionDeploymentSelectionAdapter
(SecondLoginWizardPage secondLoginWizardPage, IMemoryObject<Deployment> memoryDeployment) Constructs a newDeploymentSelectionAdapter
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
widgetSelected
(org.eclipse.swt.events.SelectionEvent e) Handles selection events triggered by the deployment dropdown.Methods inherited from class org.eclipse.swt.events.SelectionAdapter
widgetDefaultSelected
-
Constructor Details
-
DeploymentSelectionAdapter
public DeploymentSelectionAdapter(SecondLoginWizardPage secondLoginWizardPage, IMemoryObject<Deployment> memoryDeployment) Constructs a newDeploymentSelectionAdapter
.- Parameters:
secondLoginWizardPage
- theSecondLoginWizardPage
containing the deployment dropdown.memoryDeployment
- theIMemoryObject<Deployment>
used to store the selected deployment.
-
-
Method Details
-
widgetSelected
public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) Handles selection events triggered by the deployment dropdown.If a deployment is selected, it is saved to memory and the page is marked as complete. If no selection is made, the page is marked as incomplete.
- Specified by:
widgetSelected
in interfaceorg.eclipse.swt.events.SelectionListener
- Overrides:
widgetSelected
in classorg.eclipse.swt.events.SelectionAdapter
- Parameters:
e
- theSelectionEvent
triggered by the dropdown.
-