generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
bf4608a
commit e65267b
Showing
11 changed files
with
40 additions
and
122 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.codelabware.intellij; | ||
|
||
import com.intellij.DynamicBundle; | ||
import org.jetbrains.annotations.Nls; | ||
import org.jetbrains.annotations.NonNls; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.jetbrains.annotations.PropertyKey; | ||
|
||
import java.util.function.Supplier; | ||
|
||
/** | ||
* @author <a href="https://github.com/LiLittleCat">LiLittleCat</a> | ||
* @since 0.0.1 | ||
*/ | ||
public class MyBundle extends DynamicBundle { | ||
@NonNls | ||
private static final String BUNDLE = "messages.MyBundle"; | ||
private static final MyBundle INSTANCE = new MyBundle(); | ||
|
||
private MyBundle() { | ||
super(BUNDLE); | ||
} | ||
|
||
@NotNull | ||
public static @Nls String message(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, Object @NotNull ... params) { | ||
return INSTANCE.getMessage(key, params); | ||
} | ||
|
||
@NotNull | ||
public static Supplier<@Nls String> messagePointer(@NotNull @PropertyKey(resourceBundle = BUNDLE) String key, Object @NotNull ... params) { | ||
return INSTANCE.getLazyMessage(key, params); | ||
} | ||
} |
21 changes: 0 additions & 21 deletions
21
src/main/kotlin/com/github/lilittlecat/intellijcodelabware/MyBundle.kt
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...n/kotlin/com/github/lilittlecat/intellijcodelabware/listeners/MyProjectManagerListener.kt
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
src/main/kotlin/com/github/lilittlecat/intellijcodelabware/services/MyApplicationService.kt
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
src/main/kotlin/com/github/lilittlecat/intellijcodelabware/services/MyProjectService.kt
This file was deleted.
Oops, something went wrong.
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,18 +1,11 @@ | ||
<!-- Plugin Configuration File. Read more: https://plugins.jetbrains.com/docs/intellij/plugin-configuration-file.html --> | ||
<idea-plugin> | ||
<id>com.github.lilittlecat.intellijcodelabware</id> | ||
<name>IntelliJ Platform Plugin intellij-code-labware</name> | ||
<vendor>lilittlecat</vendor> | ||
<name>Code Labware</name> | ||
<vendor url="https://github.com/CodeLabware" email="lilittlecat@outlook.com">Code Labware</vendor> | ||
|
||
<depends>com.intellij.modules.platform</depends> | ||
|
||
<extensions defaultExtensionNs="com.intellij"> | ||
<applicationService serviceImplementation="com.github.lilittlecat.intellijcodelabware.services.MyApplicationService"/> | ||
<projectService serviceImplementation="com.github.lilittlecat.intellijcodelabware.services.MyProjectService"/> | ||
</extensions> | ||
|
||
<applicationListeners> | ||
<listener class="com.github.lilittlecat.intellijcodelabware.listeners.MyProjectManagerListener" | ||
topic="com.intellij.openapi.project.ProjectManagerListener"/> | ||
</applicationListeners> | ||
|
||
</idea-plugin> |
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,3 +1,3 @@ | ||
name=My Plugin | ||
name=Code Labware | ||
applicationService=Application service | ||
projectService=Project service: {0} |
39 changes: 0 additions & 39 deletions
39
src/test/kotlin/com/github/lilittlecat/intellijcodelabware/MyPluginTest.kt
This file was deleted.
Oops, something went wrong.