Skip to content

Commit

Permalink
fix #20 - Error when starting IntelliJ IDEA 2017.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jumperchen committed Jul 19, 2017
1 parent 8bf5ed6 commit f6b5112
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
7 changes: 6 additions & 1 deletion META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<idea-plugin version="2">
<id>org.zkoss.zkidea</id>
<name>ZK</name>
<version>0.1.9</version>
<version>0.1.10</version>
<vendor email="info@zkoss.org" url="http://www.zkoss.org">ZK Framework</vendor>
<depends>org.jetbrains.idea.maven</depends>

Expand All @@ -12,6 +12,11 @@
]]></description>

<change-notes><![CDATA[
<p>0.1.10</p>
<ul>
<li> [bug] #20 - Error when starting IntelliJ IDEA 2017.2 </li>
</ul>
<br>
<p>0.1.9</p>
<ul>
<li> [bug] #19 - Exception on Intellij IU-163.12024.16 </li>
Expand Down
14 changes: 9 additions & 5 deletions src/org/zkoss/zkidea/project/ZKProjectsManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,15 @@ protected ZKProjectsManager(Project project) {

public void initComponent() {
StartupManagerEx startupManager = StartupManagerEx.getInstanceEx(this.myProject);
startupManager.registerStartupActivity(new Runnable() {
public void run() {
ZKProjectsManager.this.doInit();
}
});

// fix for issue #20
if (!this.myProject.isDefault()) {
startupManager.registerStartupActivity(new Runnable() {
public void run() {
ZKProjectsManager.this.doInit();
}
});
}
}

private void doInit() {
Expand Down

0 comments on commit f6b5112

Please sign in to comment.