Class ResourceGroupSelectionAdapter
java.lang.Object
org.eclipse.swt.events.SelectionAdapter
com.developer.nefarious.zjoule.plugin.login.events.ResourceGroupSelectionAdapter
- All Implemented Interfaces:
EventListener
,org.eclipse.swt.events.SelectionListener
,org.eclipse.swt.internal.SWTEventListener
public class ResourceGroupSelectionAdapter
extends org.eclipse.swt.events.SelectionAdapter
Handles selection events for the resource group dropdown in the second page of the login wizard.
The ResourceGroupSelectionAdapter
listens for changes to the selected resource group,
updates the deployment dropdown with available deployments for the selected group,
and saves the selected resource group to memory.
-
Constructor Summary
ConstructorDescriptionResourceGroupSelectionAdapter
(SecondLoginWizardPage secondLoginWizardPage, ILoginClient loginClient, IMemoryObject<String> memoryResourceGroup) Constructs a newResourceGroupSelectionAdapter
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
widgetSelected
(org.eclipse.swt.events.SelectionEvent event) Handles selection events triggered by the resource group dropdown.Methods inherited from class org.eclipse.swt.events.SelectionAdapter
widgetDefaultSelected
-
Constructor Details
-
ResourceGroupSelectionAdapter
public ResourceGroupSelectionAdapter(SecondLoginWizardPage secondLoginWizardPage, ILoginClient loginClient, IMemoryObject<String> memoryResourceGroup) Constructs a newResourceGroupSelectionAdapter
.- Parameters:
secondLoginWizardPage
- theSecondLoginWizardPage
containing the resource group dropdown.loginClient
- theILoginClient
for retrieving deployments.memoryResourceGroup
- theIMemoryObject<String>
used to store the selected resource group.
-
-
Method Details
-
widgetSelected
public void widgetSelected(org.eclipse.swt.events.SelectionEvent event) Handles selection events triggered by the resource group dropdown.When a new resource group is selected:
- Resets the deployment dropdown and page status.
- Fetches and populates available deployments for the selected group.
- Specified by:
widgetSelected
in interfaceorg.eclipse.swt.events.SelectionListener
- Overrides:
widgetSelected
in classorg.eclipse.swt.events.SelectionAdapter
- Parameters:
event
- theSelectionEvent
triggered by the dropdown.
-