diff --git a/build.gradle b/build.gradle index 52f0b04..8e60f99 100644 --- a/build.gradle +++ b/build.gradle @@ -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' diff --git a/src/main/java/org/zkoss/zkidea/project/ZKProjectsManager.java b/src/main/java/org/zkoss/zkidea/project/ZKProjectsManager.java index c0915f8..3301bd8 100644 --- a/src/main/java/org/zkoss/zkidea/project/ZKProjectsManager.java +++ b/src/main/java/org/zkoss/zkidea/project/ZKProjectsManager.java @@ -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); + } + }); } }); } diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 9b4f5a4..21d25eb 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -11,6 +11,11 @@ ]]> 0.1.11

+ +

0.1.10