diff --git a/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/dashboard/ui/wizards/LicenseIssuedNotification.java b/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/dashboard/ui/wizards/LicenseIssuedNotification.java index f6808f5f6..43117a26c 100644 --- a/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/dashboard/ui/wizards/LicenseIssuedNotification.java +++ b/bundles/org.eclipse.passage.loc.dashboard.ui/src/org/eclipse/passage/loc/dashboard/ui/wizards/LicenseIssuedNotification.java @@ -12,8 +12,6 @@ *******************************************************************************/ package org.eclipse.passage.loc.dashboard.ui.wizards; -import java.awt.Desktop; -import java.io.IOException; import java.nio.file.Path; import org.eclipse.jface.dialogs.MessageDialog; @@ -21,6 +19,7 @@ import org.eclipse.passage.loc.internal.api.IssuedLicense; import org.eclipse.passage.loc.internal.dashboard.ui.i18n.IssueLicensePageMessages; import org.eclipse.passage.loc.internal.licenses.ui.i18n.LicensesUiMessages; +import org.eclipse.swt.program.Program; import org.eclipse.swt.widgets.Shell; public final class LicenseIssuedNotification { @@ -61,11 +60,7 @@ private void show(String title, String description, Path residence) { }, 0); int result = dialog.open(); if (result == 1) { - try { - Desktop.getDesktop().open(residence.toFile()); - } catch (IOException e) { - e.printStackTrace(); - } + Program.launch(residence.toAbsolutePath().toString()); } }