generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
73 additions
and
26 deletions.
There are no files selected for viewing
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
8 changes: 0 additions & 8 deletions
8
src/main/kotlin/com/github/cnrture/quickprojectwizard/gradle/Version.kt
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
33 changes: 33 additions & 0 deletions
33
src/main/kotlin/com/github/cnrture/quickprojectwizard/util/NotificationUtil.kt
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,33 @@ | ||
package com.github.cnrture.quickprojectwizard.util | ||
|
||
import com.intellij.ide.BrowserUtil | ||
import com.intellij.notification.NotificationGroupManager | ||
import com.intellij.notification.NotificationType | ||
import com.intellij.openapi.actionSystem.AnAction | ||
import com.intellij.openapi.actionSystem.AnActionEvent | ||
|
||
object NotificationUtil { | ||
fun showInfo( | ||
title: String, | ||
message: String, | ||
) { | ||
val notification = NotificationGroupManager.getInstance() | ||
.getNotificationGroup("QPW Notification Group") | ||
.createNotification( | ||
title = title, | ||
content = message, | ||
type = NotificationType.INFORMATION, | ||
) | ||
notification.addAction(object : AnAction("Contact Developer") { | ||
override fun actionPerformed(e: AnActionEvent) { | ||
BrowserUtil.browse("https://bento.me/canerture") | ||
} | ||
}) | ||
notification.addAction(object : AnAction("Open Plugin Page") { | ||
override fun actionPerformed(e: AnActionEvent) { | ||
BrowserUtil.browse("https://plugins.jetbrains.com/plugin/25221-quickprojectwizard?noRedirect=true") | ||
} | ||
}) | ||
notification.notify(null) | ||
} | ||
} |
6 changes: 5 additions & 1 deletion
6
src/main/kotlin/com/github/cnrture/quickprojectwizard/xmlarch/ui/EmptyActivityXML.kt
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