Skip to content

Commit

Permalink
1. Fixed #5
Browse files Browse the repository at this point in the history
2. Support #6
  • Loading branch information
jumperchen committed Jul 31, 2015
1 parent 2976db5 commit a8d79da
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .idea/codeStyleSettings.xml

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

3 changes: 3 additions & 0 deletions .idea/compiler.xml

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

44 changes: 38 additions & 6 deletions 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.4</version>
<version>0.1.5</version>
<vendor email="info@zkoss.org" url="http://www.zkoss.org">ZK Framework</vendor>
<depends>org.jetbrains.idea.maven</depends>

Expand All @@ -11,11 +11,43 @@
<p> This plugin can be installed on IntelliJ platform 141.1532 or greater. </p>
]]></description>

<!--<change-notes><![CDATA[-->
<!--Add change notes here.<br>-->
<!--<em>most HTML tags may be used</em>-->
<!--]]>-->
<!--</change-notes>-->
<change-notes><![CDATA[
<p>0.1.5</p>
<ul>
<li> [enhancement] #6 - JDK 6 or 7 support </li>
<li> [bug] #5 - v0.1.4 cannot work well on Windows environment </li>
</ul>
<br>
<p>0.1.4</p>
<ul>
<li> Fixed an issue about stackoverflow exception </li>
</ul>
<br>
<p>0.1.3</p>
<ul>
<li> Support ZK Maven archetypes to create project </li>
<li> some bugs fixed </li>
</ul>
<br>
<p>0.1.2</p>
<ul>
<li> Support MVVM annotation content assistant </li>
<li> Support to upgrade zul.xsd file automatically </li>
<li> Support MVVM annotation to go to declaration for Java class </li>
</ul>
<br>
<p>0.1.1</p>
<ul>
<li> Update zul.xsd to ZK 7.0.6-FL version </li>
</ul>
<br>
<p>0.1.0</p>
<ul>
<li> ZUL editor supports content assistant. </li>
<li> ZUL editor supports syntax checking.</li>
</ul>
<br>
]]></change-notes>

<!-- please see https://confluence.jetbrains.com/display/IDEADEV/Build+Number+Ranges for description -->
<idea-version since-build="131"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
*/
package org.zkoss.zkidea.completion;

import java.util.Arrays;
import java.util.List;

import com.intellij.codeInsight.completion.CompletionContributor;
import com.intellij.codeInsight.completion.CompletionParameters;
import com.intellij.codeInsight.completion.CompletionResultSet;
Expand All @@ -23,9 +26,6 @@
import com.intellij.psi.xml.XmlFile;
import org.zkoss.zkidea.dom.ZulDomUtil;

import java.util.Arrays;
import java.util.List;

/**
* @author jumperchen
*/
Expand All @@ -52,6 +52,7 @@ public void fillCompletionVariants(CompletionParameters parameters, CompletionRe
CompletionResultSet completionResultSet = result.withPrefixMatcher(query);

// TODO: support idspace resolver.
// TODO: should ignore different namespace
// get annotation value
String annotVal = "";
int end = value.indexOf(CompletionUtilCore.DUMMY_IDENTIFIER);
Expand Down
4 changes: 4 additions & 0 deletions src/org/zkoss/zkidea/project/ZKPathManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ public static String getPluginTempPath() {
}

public static String getPluginResourcePath(String classPath) {
// fix for #5 windows issue
if ("\\".equals(File.separator)) {
classPath = classPath.replaceAll("/", "\\\\");
}
if (classPath.startsWith("/") || classPath.startsWith("\\"))
return getPluginTempPath() + File.separator + "classes" + classPath;
return getPluginTempPath() + File.separator + "classes" + File.separator + classPath;
Expand Down
2 changes: 1 addition & 1 deletion zkidea.iml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PLUGIN_MODULE" version="4">
<component name="DevKit.ModuleBuildProperties" url="file://$MODULE_DIR$/META-INF/plugin.xml" />
<component name="NewModuleRootManager" inherit-compiler-output="true">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
Expand Down

0 comments on commit a8d79da

Please sign in to comment.