diff --git a/build.gradle.kts b/build.gradle.kts index 0faf717..181d0e1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -15,7 +15,7 @@ dependencies { implementation("org.watertemplate:watertemplate-engine:1.2.2") implementation("com.google.guava:guava:31.1-jre") implementation("org.rauschig:jarchivelib:1.2.0") - implementation("org.jsoup:jsoup:1.7.2") + implementation("org.jsoup:jsoup:1.15.4") testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.2") testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.2") diff --git a/src/main/java/com/en_circle/slt/plugin/SltProjectListener.java b/src/main/java/com/en_circle/slt/plugin/SltProjectListener.java new file mode 100644 index 0000000..b28bf23 --- /dev/null +++ b/src/main/java/com/en_circle/slt/plugin/SltProjectListener.java @@ -0,0 +1,15 @@ +package com.en_circle.slt.plugin; + +import com.en_circle.slt.plugin.services.SltProjectService; +import com.intellij.openapi.project.Project; +import com.intellij.openapi.project.ProjectManagerListener; +import org.jetbrains.annotations.NotNull; + +public class SltProjectListener implements ProjectManagerListener { + + @Override + public void projectOpened(@NotNull Project project) { + SltProjectService.getInstance(project); + } + +} diff --git a/src/main/java/com/en_circle/slt/plugin/services/SltProjectService.java b/src/main/java/com/en_circle/slt/plugin/services/SltProjectService.java index 81e1b91..17034b0 100644 --- a/src/main/java/com/en_circle/slt/plugin/services/SltProjectService.java +++ b/src/main/java/com/en_circle/slt/plugin/services/SltProjectService.java @@ -72,12 +72,14 @@ public void showCLHSSymbol(String symbolName) { hyperspecView.showUrl(url); } }); - return; + } else { + Messages.showInfoMessage(String.format(SltBundle.message("slt.ui.clhs.nosymbol.message"), symbolName), + SltBundle.message("slt.ui.clhs.nosymbol.title")); } + } else { + Messages.showInfoMessage(String.format(SltBundle.message("slt.ui.clhs.loading.message"), symbolName), + SltBundle.message("slt.ui.clhs.loading.title")); } - - Messages.showInfoMessage(String.format(SltBundle.message("slt.ui.clhs.nosymbol.message"), symbolName), - SltBundle.message("slt.ui.clhs.nosymbol.title")); } public void setHyperspecView(SltHyperspecView hyperspecView) { diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 341982f..603cd51 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -190,6 +190,8 @@ +