generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from picimako/040
v0.4.0
- Loading branch information
Showing
18 changed files
with
1,688 additions
and
56 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
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.idea | ||
.qodana | ||
build | ||
.intellijPlatform |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
[versions] | ||
# libraries | ||
annotations = "24.1.0" | ||
junit = "4.13.2" | ||
|
||
# plugins | ||
kotlin = "1.9.24" | ||
changelog = "2.2.0" | ||
gradleIntelliJPlugin = "1.17.4" | ||
kotlin = "1.9.25" | ||
changelog = "2.2.1" | ||
intelliJPlatform = "2.0.1" | ||
|
||
[libraries] | ||
annotations = { group = "org.jetbrains", name = "annotations", version.ref = "annotations" } | ||
junit = { group = "junit", name = "junit", version.ref = "junit" } | ||
|
||
[plugins] | ||
changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" } | ||
gradleIntelliJPlugin = { id = "org.jetbrains.intellij", version.ref = "gradleIntelliJPlugin" } | ||
intelliJPlatform = { id = "org.jetbrains.intellij.platform", version.ref = "intelliJPlatform" } | ||
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" } |
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
42 changes: 42 additions & 0 deletions
42
src/main/java/com/picimako/lucas/ProjectStartupActivity.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,42 @@ | ||
//Copyright 2024 Tamás Balog. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. | ||
package com.picimako.lucas; | ||
|
||
import com.intellij.ide.BrowserUtil; | ||
import com.intellij.ide.util.RunOnceUtil; | ||
import com.intellij.notification.NotificationGroupManager; | ||
import com.intellij.notification.NotificationType; | ||
import com.intellij.notification.Notifications; | ||
import com.intellij.openapi.actionSystem.AnAction; | ||
import com.intellij.openapi.actionSystem.AnActionEvent; | ||
import com.intellij.openapi.project.Project; | ||
import com.intellij.openapi.startup.ProjectActivity; | ||
import kotlin.Unit; | ||
import kotlin.coroutines.Continuation; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
/** | ||
* Performs actions on project startup. | ||
*/ | ||
public final class ProjectStartupActivity implements ProjectActivity { | ||
|
||
@Override | ||
public @Nullable Object execute(@NotNull Project project, @NotNull Continuation<? super Unit> continuation) { | ||
RunOnceUtil.runOnceForApp("Lucas v0.4.0 - JDK 21", () -> { | ||
var notification = NotificationGroupManager.getInstance().getNotificationGroup("Lucas JDK 21 Configuration") | ||
.createNotification("Lucas v0.4.0 is built on JDK 21, and it requires manual configuration which is detailed in the documentation.", NotificationType.WARNING) | ||
.setSubtitle("Lucas JDK 21 Configuration") | ||
.addAction(new AnAction("Open Documentation") { | ||
|
||
@Override | ||
public void actionPerformed(@NotNull AnActionEvent e) { | ||
BrowserUtil.browse("https://github.com/picimako/lucas/blob/main/README.md#intellij-20242-and-jdk-21-support"); | ||
} | ||
}); | ||
|
||
Notifications.Bus.notify(notification, project); | ||
}); | ||
|
||
return Unit.INSTANCE; | ||
} | ||
} |
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
Oops, something went wrong.