Content assists for application properties

This commit is contained in:
BoykoAlex
2016-11-11 09:20:13 -05:00
parent 01f39c7722
commit 61f7252f15
27 changed files with 1271 additions and 218 deletions

View File

@@ -16,6 +16,7 @@ import org.jboss.jandex.MethodInfo;
import org.jboss.jandex.PrimitiveType;
import org.jboss.jandex.Type;
import org.jboss.jandex.Type.Kind;
import org.springframework.ide.vscode.commons.java.Flags;
import org.springframework.ide.vscode.commons.java.IAnnotation;
import org.springframework.ide.vscode.commons.java.IField;
import org.springframework.ide.vscode.commons.java.IJavaType;
@@ -28,8 +29,6 @@ import org.springframework.ide.vscode.commons.util.HtmlSnippet;
public class Wrappers {
private static final int AccEnum = 0x4000;
public static IType wrap(IndexView index, ClassInfo info) {
if (info == null) {
return null;
@@ -75,7 +74,7 @@ public class Wrappers {
@Override
public boolean isEnum() {
return (info.flags() & AccEnum) != 0;
return Flags.isEnum(info.flags());
}
@Override
@@ -161,7 +160,7 @@ public class Wrappers {
@Override
public boolean isEnumConstant() {
return (field.flags() & AccEnum) != 0;
return Flags.isEnum(field.flags());
}
@Override

View File

@@ -30,4 +30,10 @@ public interface IClasspath {
*/
Stream<Path> getClasspathEntries() throws Exception;
/**
* Classpath resources paths relative to the source folder path
* @return classpath resource relative paths
*/
Stream<String> getClasspathResources();
}