Skip to content

Commit

Permalink
Merge pull request #26 from scribetw/issue25
Browse files Browse the repository at this point in the history
fix #25 - failed with RuntimeExceptionWithAttachments in IntellijJ 20…
  • Loading branch information
scribetw authored Apr 13, 2020
2 parents 2dc407d + e52e4f6 commit 28e29a6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sourceCompatibility = 1.6
targetCompatibility = 1.6

group 'org.zkoss.zkidea'
version '0.1.10'
version '0.1.11'

intellij {
version 'IC-141.1532.4'
Expand Down
9 changes: 7 additions & 2 deletions src/main/java/org/zkoss/zkidea/project/ZKProjectsManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,15 @@ private void updateZulSchema() {

ExternalResourceManager instance = ExternalResourceManager.getInstance();
if (!equals(pluginResourcePath, instance.getResourceLocation(ZulSchemaProvider.ZUL_PROJECT_SCHEMA_PATH, ""))) {
ApplicationManager.getApplication().runWriteAction(new Runnable() {
ApplicationManager.getApplication().invokeLater(new Runnable() {
@Override
public void run() {
ExternalResourceManager.getInstance().addResource(ZulSchemaProvider.ZUL_PROJECT_SCHEMA_URL, pluginResourcePath);
ApplicationManager.getApplication().runWriteAction(new Runnable() {
@Override
public void run() {
ExternalResourceManager.getInstance().addResource(ZulSchemaProvider.ZUL_PROJECT_SCHEMA_URL, pluginResourcePath);
}
});
}
});
}
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
]]></description>

<change-notes><![CDATA[
<p>0.1.11</p>
<ul>
<li> [bug] #25 - failed with RuntimeExceptionWithAttachments in IntellijJ 2020.1 </li>
</ul>
<br>
<p>0.1.10</p>
<ul>
<li> [bug] #20 - Error when starting IntelliJ IDEA 2017.2 </li>
Expand Down

0 comments on commit 28e29a6

Please sign in to comment.