diff --git a/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/dashboard/ui/wizards/floating/IssueFloatingLicenseWizard.java b/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/dashboard/ui/wizards/floating/IssueFloatingLicenseWizard.java index aaacb22c4..93a34f5b8 100644 --- a/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/dashboard/ui/wizards/floating/IssueFloatingLicenseWizard.java +++ b/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/dashboard/ui/wizards/floating/IssueFloatingLicenseWizard.java @@ -15,6 +15,7 @@ import java.util.function.Supplier; import org.eclipse.e4.core.contexts.IEclipseContext; +import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.jface.wizard.Wizard; import org.eclipse.passage.lic.floating.model.api.FloatingLicensePack; import org.eclipse.passage.lic.internal.api.ServiceInvocationResult; @@ -23,6 +24,7 @@ import org.eclipse.passage.loc.dashboard.ui.wizards.license.WizardInfoBar; import org.eclipse.passage.loc.internal.api.IssuedFloatingLicense; import org.eclipse.passage.loc.internal.dashboard.ui.i18n.IssueLicensePageMessages; +import org.eclipse.swt.SWT; public final class IssueFloatingLicenseWizard extends Wizard { @@ -58,7 +60,18 @@ public boolean performFinish() { new DiagnosticDialog(getShell(), result.diagnostic()).open(); return false; } + new WizardInfoBar(this).wipe(); + reportSuccess(result.data().get()); return true; } + private void reportSuccess(IssuedFloatingLicense data) { + MessageDialog.open(MessageDialog.INFORMATION, // + getShell(), // + IssueLicensePageMessages.IssueFloatingLicenseWizard_success, + String.format(IssueLicensePageMessages.IssueFloatingLicenseWizard_success_description, + data.residence().toAbsolutePath()), + SWT.NONE); + } + } diff --git a/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/internal/dashboard/ui/i18n/IssueLicensePageMessages.java b/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/internal/dashboard/ui/i18n/IssueLicensePageMessages.java index 08400e049..ac3f0d4bb 100644 --- a/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/internal/dashboard/ui/i18n/IssueLicensePageMessages.java +++ b/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/internal/dashboard/ui/i18n/IssueLicensePageMessages.java @@ -54,6 +54,8 @@ public final class IssueLicensePageMessages extends NLS { public static String IssueLicensingMailJob_task_text; public static String IssueFloatingLicenseWizard_failure; public static String IssueFloatingLicenseWizard_title; + public static String IssueFloatingLicenseWizard_success; + public static String IssueFloatingLicenseWizard_success_description; public static String Floating_DataPage_description; public static String Floating_DataPage_title; diff --git a/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/internal/dashboard/ui/i18n/IssueLicensePageMessages.properties b/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/internal/dashboard/ui/i18n/IssueLicensePageMessages.properties index 9c16da586..5d6e6579c 100644 --- a/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/internal/dashboard/ui/i18n/IssueLicensePageMessages.properties +++ b/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/internal/dashboard/ui/i18n/IssueLicensePageMessages.properties @@ -50,5 +50,7 @@ IssueLicensingMailJob_task_text=Processing mail request IssueFloatingLicenseWizard_failure=Floating license issuing failed IssueFloatingLicenseWizard_title=Issue Floating License +IssueFloatingLicenseWizard_success = Floating License has been issued successfully +IssueFloatingLicenseWizard_success_description=Floating License Pack files are stored in %s Floating_DataPage_title=Floating license information Floating_DataPage_description=Provide the information regarding the requested floating license