Skip to content

Commit

Permalink
Update files, delete *.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
LiLittleCat committed Feb 22, 2023
1 parent bf4608a commit e65267b
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 122 deletions.
2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- Keep a Changelog guide -> https://keepachangelog.com -->

# intellij-code-labware Changelog
# Code Labware Changelog

## [Unreleased]
### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# intellij-code-labware
# Code Labware

![Build](https://github.com/CodeLabware/intellij-code-labware/workflows/Build/badge.svg)
[![Version](https://img.shields.io/jetbrains/plugin/v/PLUGIN_ID.svg)](https://plugins.jetbrains.com/plugin/PLUGIN_ID)
Expand Down
33 changes: 33 additions & 0 deletions src/main/java/com/codelabware/intellij/MyBundle.java
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);
}
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

13 changes: 3 additions & 10 deletions src/main/resources/META-INF/plugin.xml
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>
2 changes: 1 addition & 1 deletion src/main/resources/messages/MyBundle.properties
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}

This file was deleted.

0 comments on commit e65267b

Please sign in to comment.