-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show notification if the download of an AppMap CLI binary failed
- Loading branch information
Showing
5 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
plugin-core/src/main/java/appland/cli/FailedDownloadNotificationListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package appland.cli; | ||
|
||
import appland.notifications.AppMapNotifications; | ||
import com.intellij.openapi.project.Project; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public final class FailedDownloadNotificationListener implements AppLandDownloadListener { | ||
@NotNull private final Project project; | ||
|
||
public FailedDownloadNotificationListener(@NotNull Project project) { | ||
this.project = project; | ||
} | ||
|
||
@Override | ||
public void downloadFinished(@NotNull CliTool type, boolean success) { | ||
if (!success) { | ||
AppMapNotifications.showFailedCliBinaryDownloadNotification(project); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters