diff --git a/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/LoginOptionsWizardDialog.java b/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/LoginOptionsWizardDialog.java
index ceae611..c73574f 100644
--- a/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/LoginOptionsWizardDialog.java
+++ b/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/LoginOptionsWizardDialog.java
@@ -6,7 +6,7 @@
public class LoginOptionsWizardDialog extends WizardDialog {
- public LoginOptionsWizardDialog(Shell parentShell, LoginWizard wizard) {
+ public LoginOptionsWizardDialog(final Shell parentShell, final LoginWizard wizard) {
super(parentShell, wizard);
}
diff --git a/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/SapLoginWizard.java b/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/SapLoginWizard.java
index 89c397d..87ec488 100644
--- a/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/SapLoginWizard.java
+++ b/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/SapLoginWizard.java
@@ -14,8 +14,8 @@
import com.developer.nefarious.zjoule.plugin.login.memory.TemporaryMemoryDeployment;
import com.developer.nefarious.zjoule.plugin.login.memory.TemporaryMemoryResourceGroup;
import com.developer.nefarious.zjoule.plugin.login.memory.TemporaryMemoryServiceKey;
-import com.developer.nefarious.zjoule.plugin.login.pages.FirstLoginWizardPage;
-import com.developer.nefarious.zjoule.plugin.login.pages.SecondLoginWizardPage;
+import com.developer.nefarious.zjoule.plugin.login.pages.FirstSapLoginWizardPage;
+import com.developer.nefarious.zjoule.plugin.login.pages.SecondSapLoginWizardPage;
/**
* A wizard for logging into SAP AI Core.
@@ -51,14 +51,14 @@ public SapLoginWizard(final Browser browser) {
*
* This method initializes:
*
- * - The {@link FirstLoginWizardPage} for entering credentials.
- * - The {@link SecondLoginWizardPage} for selecting resources and configurations.
+ * - The {@link FirstSapLoginWizardPage} for entering credentials.
+ * - The {@link SecondSapLoginWizardPage} for selecting resources and configurations.
*
*/
@Override
public void addPages() {
- addPage(new FirstLoginWizardPage(sapLoginClient));
- addPage(new SecondLoginWizardPage(sapLoginClient, TemporaryMemoryResourceGroup.getInstance(), TemporaryMemoryDeployment.getInstance()));
+ addPage(new FirstSapLoginWizardPage(sapLoginClient));
+ addPage(new SecondSapLoginWizardPage(sapLoginClient, TemporaryMemoryResourceGroup.getInstance(), TemporaryMemoryDeployment.getInstance()));
}
/**
diff --git a/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/events/DeploymentSelectionAdapter.java b/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/events/DeploymentSelectionAdapter.java
index 80b68c9..0d9e382 100644
--- a/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/events/DeploymentSelectionAdapter.java
+++ b/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/events/DeploymentSelectionAdapter.java
@@ -5,7 +5,7 @@
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
-import com.developer.nefarious.zjoule.plugin.login.pages.SecondLoginWizardPage;
+import com.developer.nefarious.zjoule.plugin.login.pages.SecondSapLoginWizardPage;
import com.developer.nefarious.zjoule.plugin.memory.IMemoryObject;
import com.developer.nefarious.zjoule.plugin.models.Deployment;
@@ -18,7 +18,7 @@
public class DeploymentSelectionAdapter extends SelectionAdapter {
/** The second login wizard page associated with this adapter. */
- private SecondLoginWizardPage secondLoginWizardPage;
+ private SecondSapLoginWizardPage secondLoginWizardPage;
/** The memory manager for storing the selected deployment. */
private IMemoryObject memoryDeployment;
@@ -26,12 +26,12 @@ public class DeploymentSelectionAdapter extends SelectionAdapter {
/**
* Constructs a new {@code DeploymentSelectionAdapter}.
*
- * @param secondLoginWizardPage the {@link SecondLoginWizardPage} containing the deployment dropdown.
+ * @param secondLoginWizardPage the {@link SecondSapLoginWizardPage} containing the deployment dropdown.
* @param memoryDeployment the {@link IMemoryObject} used to store the selected deployment.
*/
// @formatter:off
public DeploymentSelectionAdapter(
- final SecondLoginWizardPage secondLoginWizardPage,
+ final SecondSapLoginWizardPage secondLoginWizardPage,
final IMemoryObject memoryDeployment) {
// @formatter:on
this.secondLoginWizardPage = secondLoginWizardPage;
diff --git a/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/events/ResourceGroupSelectionAdapter.java b/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/events/ResourceGroupSelectionAdapter.java
index 567b821..adce5f9 100644
--- a/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/events/ResourceGroupSelectionAdapter.java
+++ b/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/events/ResourceGroupSelectionAdapter.java
@@ -7,7 +7,7 @@
import com.developer.nefarious.zjoule.plugin.login.api.GetDeploymentsResponse;
import com.developer.nefarious.zjoule.plugin.login.api.ISapLoginClient;
-import com.developer.nefarious.zjoule.plugin.login.pages.SecondLoginWizardPage;
+import com.developer.nefarious.zjoule.plugin.login.pages.SecondSapLoginWizardPage;
import com.developer.nefarious.zjoule.plugin.memory.IMemoryObject;
import com.developer.nefarious.zjoule.plugin.models.ServiceKey;
@@ -21,7 +21,7 @@
public class ResourceGroupSelectionAdapter extends SelectionAdapter {
/** The second login wizard page associated with this adapter. */
- private SecondLoginWizardPage secondLoginWizardPage;
+ private SecondSapLoginWizardPage secondLoginWizardPage;
/** The login client for retrieving deployments. */
private ISapLoginClient sapLoginClient;
@@ -32,13 +32,13 @@ public class ResourceGroupSelectionAdapter extends SelectionAdapter {
/**
* Constructs a new {@code ResourceGroupSelectionAdapter}.
*
- * @param secondLoginWizardPage the {@link SecondLoginWizardPage} containing the resource group dropdown.
+ * @param secondLoginWizardPage the {@link SecondSapLoginWizardPage} containing the resource group dropdown.
* @param sapLoginClient the {@link ISapLoginClient} for retrieving deployments.
* @param memoryResourceGroup the {@link IMemoryObject} used to store the selected resource group.
*/
// @formatter:off
public ResourceGroupSelectionAdapter(
- final SecondLoginWizardPage secondLoginWizardPage,
+ final SecondSapLoginWizardPage secondLoginWizardPage,
final ISapLoginClient sapLoginClient,
final IMemoryObject memoryResourceGroup) {
// @formatter:on
diff --git a/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/events/ServiceKeyModifyListener.java b/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/events/ServiceKeyModifyListener.java
index eb0a71b..c62695a 100644
--- a/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/events/ServiceKeyModifyListener.java
+++ b/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/events/ServiceKeyModifyListener.java
@@ -7,7 +7,7 @@
import com.developer.nefarious.zjoule.plugin.login.api.GetResourceGroupsResponse;
import com.developer.nefarious.zjoule.plugin.login.api.ISapLoginClient;
-import com.developer.nefarious.zjoule.plugin.login.pages.FirstLoginWizardPage;
+import com.developer.nefarious.zjoule.plugin.login.pages.FirstSapLoginWizardPage;
import com.developer.nefarious.zjoule.plugin.login.utils.JsonValidator;
import com.developer.nefarious.zjoule.plugin.models.ServiceKey;
import com.google.gson.Gson;
@@ -21,7 +21,7 @@
public class ServiceKeyModifyListener implements ModifyListener {
/** The first page of the login wizard associated with this listener. */
- private FirstLoginWizardPage firstLoginWizardPage;
+ private FirstSapLoginWizardPage firstLoginWizardPage;
/** The login client used for validating the service key and retrieving resource groups. */
private ISapLoginClient sapLoginClient;
@@ -32,13 +32,13 @@ public class ServiceKeyModifyListener implements ModifyListener {
/**
* Constructs a new {@code ServiceKeyModifyListener}.
*
- * @param firstLoginWizardPage the {@link FirstLoginWizardPage} containing the service key input field.
+ * @param firstLoginWizardPage the {@link FirstSapLoginWizardPage} containing the service key input field.
* @param sapLoginClient the {@link ISapLoginClient} for validating the service key and retrieving resource groups.
* @param gson the {@link Gson} instance for parsing the service key JSON.
*/
// @formatter:off
public ServiceKeyModifyListener(
- final FirstLoginWizardPage firstLoginWizardPage,
+ final FirstSapLoginWizardPage firstLoginWizardPage,
final ISapLoginClient sapLoginClient,
final Gson gson) {
// @formatter:on
diff --git a/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/pages/FirstLoginWizardPage.java b/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/pages/FirstSapLoginWizardPage.java
similarity index 95%
rename from com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/pages/FirstLoginWizardPage.java
rename to com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/pages/FirstSapLoginWizardPage.java
index 41c2fe5..a918b94 100644
--- a/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/pages/FirstLoginWizardPage.java
+++ b/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/pages/FirstSapLoginWizardPage.java
@@ -26,7 +26,7 @@
* Logic to propagate resource group information to subsequent wizard pages.
*
*/
-public class FirstLoginWizardPage extends WizardPage {
+public class FirstSapLoginWizardPage extends WizardPage {
/** The unique identifier for this wizard page. */
public static final String PAGE_ID = "First Page";
@@ -54,7 +54,7 @@ public class FirstLoginWizardPage extends WizardPage {
*
* @param sapLoginClient the {@link ISapLoginClient} used for API interactions during the login process.
*/
- public FirstLoginWizardPage(final ISapLoginClient sapLoginClient) {
+ public FirstSapLoginWizardPage(final ISapLoginClient sapLoginClient) {
super(PAGE_ID);
setTitle("Provide credentials");
setDescription("Attach the Service Key json file content for the SAP AI Core service.");
@@ -116,7 +116,7 @@ public ServiceKey getServiceKey() {
* @param getResourceGroupsResponse the response containing available resource groups.
*/
public void setResourceGroupsOnTheSecondPage(final GetResourceGroupsResponse getResourceGroupsResponse) {
- SecondLoginWizardPage secondPage = (SecondLoginWizardPage) getWizard().getPage(SecondLoginWizardPage.PAGE_ID);
+ SecondSapLoginWizardPage secondPage = (SecondSapLoginWizardPage) getWizard().getPage(SecondSapLoginWizardPage.PAGE_ID);
List resourceGroupsAvailableForSelection = ResourceGroupIdExtractor.extractResourceGroupIds(getResourceGroupsResponse);
secondPage.setResourceGroupsForSelection(resourceGroupsAvailableForSelection);
}
diff --git a/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/pages/SecondLoginWizardPage.java b/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/pages/SecondSapLoginWizardPage.java
similarity index 94%
rename from com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/pages/SecondLoginWizardPage.java
rename to com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/pages/SecondSapLoginWizardPage.java
index 42c1389..3262c1f 100644
--- a/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/pages/SecondLoginWizardPage.java
+++ b/com.developer.nefarious.zjoule.plugin/src/com/developer/nefarious/zjoule/plugin/login/pages/SecondSapLoginWizardPage.java
@@ -28,9 +28,9 @@
* A dropdown for selecting a resource group.
* A dropdown for selecting a deployment ID (enabled after selecting a resource group).
*
- * It also communicates with {@link FirstLoginWizardPage} to retrieve service key data.
+ * It also communicates with {@link FirstSapLoginWizardPage} to retrieve service key data.
*/
-public class SecondLoginWizardPage extends WizardPage {
+public class SecondSapLoginWizardPage extends WizardPage {
/** The unique identifier for this wizard page. */
public static final String PAGE_ID = "Second Page";
@@ -64,7 +64,7 @@ public class SecondLoginWizardPage extends WizardPage {
* @param memoryDeployment the {@link IMemoryObject} for deployment memory management.
*/
// @formatter:off
- public SecondLoginWizardPage(
+ public SecondSapLoginWizardPage(
final ISapLoginClient sapLoginClient,
final IMemoryObject memoryResourceGroup,
final IMemoryObject memoryDeployment) {
@@ -146,7 +146,7 @@ public Combo getResourceGroupDropdown() {
* @return the {@link ServiceKey} provided on the first page.
*/
public ServiceKey getServiceKey() {
- FirstLoginWizardPage firstPage = (FirstLoginWizardPage) getWizard().getPage(FirstLoginWizardPage.PAGE_ID);
+ FirstSapLoginWizardPage firstPage = (FirstSapLoginWizardPage) getWizard().getPage(FirstSapLoginWizardPage.PAGE_ID);
return firstPage.getServiceKey();
}
@@ -181,7 +181,7 @@ public void setVisible(final boolean visible) {
super.setVisible(visible);
if (visible) {
// Retrieve data from the first page
- FirstLoginWizardPage firstPage = (FirstLoginWizardPage) getWizard().getPage(FirstLoginWizardPage.PAGE_ID);
+ FirstSapLoginWizardPage firstPage = (FirstSapLoginWizardPage) getWizard().getPage(FirstSapLoginWizardPage.PAGE_ID);
String data = firstPage.getInputText();
// Dynamically populate resource group dropdown based on first page's data
diff --git a/com.developer.nefarious.zjoule.test/src/com/developer/nefarious/zjoule/test/login/events/DeploymentSelectionAdapterTest.java b/com.developer.nefarious.zjoule.test/src/com/developer/nefarious/zjoule/test/login/events/DeploymentSelectionAdapterTest.java
index 817035c..a35bf2a 100644
--- a/com.developer.nefarious.zjoule.test/src/com/developer/nefarious/zjoule/test/login/events/DeploymentSelectionAdapterTest.java
+++ b/com.developer.nefarious.zjoule.test/src/com/developer/nefarious/zjoule/test/login/events/DeploymentSelectionAdapterTest.java
@@ -16,7 +16,7 @@
import org.mockito.MockitoAnnotations;
import com.developer.nefarious.zjoule.plugin.login.events.DeploymentSelectionAdapter;
-import com.developer.nefarious.zjoule.plugin.login.pages.SecondLoginWizardPage;
+import com.developer.nefarious.zjoule.plugin.login.pages.SecondSapLoginWizardPage;
import com.developer.nefarious.zjoule.plugin.memory.IMemoryObject;
import com.developer.nefarious.zjoule.plugin.models.Deployment;
@@ -25,7 +25,7 @@ public class DeploymentSelectionAdapterTest {
private DeploymentSelectionAdapter cut;
@Mock
- private SecondLoginWizardPage mockSecondLoginWizardPage;
+ private SecondSapLoginWizardPage mockSecondLoginWizardPage;
@Mock
private IMemoryObject mockMemoryDeployment;
diff --git a/com.developer.nefarious.zjoule.test/src/com/developer/nefarious/zjoule/test/login/events/ResourceGroupSelectionAdapterTest.java b/com.developer.nefarious.zjoule.test/src/com/developer/nefarious/zjoule/test/login/events/ResourceGroupSelectionAdapterTest.java
index fc6ad5f..fcd8466 100644
--- a/com.developer.nefarious.zjoule.test/src/com/developer/nefarious/zjoule/test/login/events/ResourceGroupSelectionAdapterTest.java
+++ b/com.developer.nefarious.zjoule.test/src/com/developer/nefarious/zjoule/test/login/events/ResourceGroupSelectionAdapterTest.java
@@ -17,7 +17,7 @@
import com.developer.nefarious.zjoule.plugin.login.api.GetDeploymentsResponse;
import com.developer.nefarious.zjoule.plugin.login.api.ISapLoginClient;
import com.developer.nefarious.zjoule.plugin.login.events.ResourceGroupSelectionAdapter;
-import com.developer.nefarious.zjoule.plugin.login.pages.SecondLoginWizardPage;
+import com.developer.nefarious.zjoule.plugin.login.pages.SecondSapLoginWizardPage;
import com.developer.nefarious.zjoule.plugin.memory.IMemoryObject;
import com.developer.nefarious.zjoule.plugin.models.Deployment;
import com.developer.nefarious.zjoule.plugin.models.ServiceKey;
@@ -27,7 +27,7 @@ public class ResourceGroupSelectionAdapterTest {
private ResourceGroupSelectionAdapter cut;
@Mock
- private SecondLoginWizardPage mockSecondLoginWizardPage;
+ private SecondSapLoginWizardPage mockSecondLoginWizardPage;
@Mock
private ISapLoginClient mockSapLoginClient;
diff --git a/com.developer.nefarious.zjoule.test/src/com/developer/nefarious/zjoule/test/login/events/ServiceKeyModifyListenerTest.java b/com.developer.nefarious.zjoule.test/src/com/developer/nefarious/zjoule/test/login/events/ServiceKeyModifyListenerTest.java
index 8ac44bf..e2efe31 100644
--- a/com.developer.nefarious.zjoule.test/src/com/developer/nefarious/zjoule/test/login/events/ServiceKeyModifyListenerTest.java
+++ b/com.developer.nefarious.zjoule.test/src/com/developer/nefarious/zjoule/test/login/events/ServiceKeyModifyListenerTest.java
@@ -18,7 +18,7 @@
import com.developer.nefarious.zjoule.plugin.login.api.GetResourceGroupsResponse;
import com.developer.nefarious.zjoule.plugin.login.api.ISapLoginClient;
import com.developer.nefarious.zjoule.plugin.login.events.ServiceKeyModifyListener;
-import com.developer.nefarious.zjoule.plugin.login.pages.FirstLoginWizardPage;
+import com.developer.nefarious.zjoule.plugin.login.pages.FirstSapLoginWizardPage;
import com.developer.nefarious.zjoule.plugin.login.utils.JsonValidator;
import com.developer.nefarious.zjoule.plugin.models.ServiceKey;
import com.google.gson.Gson;
@@ -30,7 +30,7 @@ public class ServiceKeyModifyListenerTest {
private ServiceKeyModifyListener cut;
@Mock
- private FirstLoginWizardPage mockFirstLoginWizardPage;
+ private FirstSapLoginWizardPage mockFirstLoginWizardPage;
@Mock
private ISapLoginClient mockSapLoginClient;