Skip to content

Commit

Permalink
v1.11 update
Browse files Browse the repository at this point in the history
  • Loading branch information
starcwang committed Apr 9, 2020
1 parent 2182330 commit 8e8b8c6
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'com.star.easydoc'
version '1.10'
version '1.11'

sourceCompatibility = 1.8

Expand All @@ -30,6 +30,10 @@ patchPluginXml {
changeNotes """
This plugin can help you complete the Chinese javadoc document quickly.<br>
Support three type of javadoc: field, method and class.<br>
<h3>v1.11 update</h3>
<ul>
<li>fix some bugs</li>
</ul>
<h3>v1.10 update</h3>
<ul>
<li>support auto translate</li>
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/com/star/easydoc/view/CommonConfigView.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
import javax.swing.*;

import com.google.common.collect.Lists;
import com.intellij.openapi.components.ServiceManager;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.ui.CollectionListModel;
import com.intellij.ui.ListCellRendererWrapper;
import com.intellij.ui.ToolbarDecorator;
import com.intellij.ui.components.JBList;
import com.star.easydoc.config.EasyJavadocConfigComponent;
import com.star.easydoc.model.EasyJavadocConfiguration;
import com.star.easydoc.util.BeanUtil;
import com.star.easydoc.util.JsonUtil;
Expand All @@ -27,7 +29,7 @@
public class CommonConfigView {
private static final Logger LOGGER = Logger.getInstance(CommonConfigView.class);

private EasyJavadocConfiguration config;
private EasyJavadocConfiguration config = ServiceManager.getService(EasyJavadocConfigComponent.class).getState();
private JPanel panel;
private JPanel wordMapPanel;
private JTextField authorTextField;
Expand All @@ -46,8 +48,7 @@ public class CommonConfigView {
private JButton exportButton;
private JBList<Entry<String, String>> typeMapList;

public CommonConfigView(EasyJavadocConfiguration config) {
this.config = config;
public CommonConfigView() {
refreshWordMap();

simpleDocButton.addChangeListener(e -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
public class CommonConfigurable implements Configurable {

private EasyJavadocConfiguration config = ServiceManager.getService(EasyJavadocConfigComponent.class).getState();
private CommonConfigView view = new CommonConfigView(config);
private CommonConfigView view = new CommonConfigView();
private static final Set<String> ENABLE_TRANSLATOR_SET = ImmutableSet.of("有道翻译", "关闭(只使用自定义翻译)");


Expand Down
13 changes: 13 additions & 0 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
Support three type of javadoc: field, method and class.<br>
<a href="https://github.com/starcwang/easy_javadoc">easy-javadoc source code and document</a><br>
<img src="https://raw.githubusercontent.com/starcwang/easy_javadoc/master/doc/k03vffH6Hg.gif" /><br>
<h3>v1.11 update</h3>
<ul>
<li>fix some bugs</li>
</ul>
<h3>v1.10 update</h3>
<ul>
<li>support auto translate</li>
Expand Down Expand Up @@ -61,6 +65,15 @@
]]></description>

<change-notes><![CDATA[
<h3>v1.11 update</h3>
<ul>
<li>fix some bugs</li>
</ul>
<h3>v1.10 update</h3>
<ul>
<li>support auto translate</li>
<li>fix some bugs</li>
</ul>
<h3>v1.9 update</h3>
<ul>
<li>fix some bugs</li>
Expand Down

0 comments on commit 8e8b8c6

Please sign in to comment.