first cut for strict project matching mode to ensure live hovers are detected and shown only for relevant projects

This commit is contained in:
Martin Lippert
2018-07-11 16:40:18 +02:00
parent 20ff5f406a
commit d7fc10794c
17 changed files with 188 additions and 38 deletions

View File

@@ -53,6 +53,7 @@ import com.sun.tools.attach.VirtualMachineDescriptor;
/**
* @author Martin Lippert
*/
@SuppressWarnings("restriction")
public class SpringBootApp {
private static final String SPRINGFRAMEWORK_BOOT_DOMAIN = "org.springframework.boot";
@@ -163,6 +164,11 @@ public class SpringBootApp {
return (String) props.get("sun.java.command");
}
public String getSystemProperty(String propName) throws IOException {
Properties props = this.vm.getSystemProperties();
return (String) props.get(propName);
}
public boolean containsSystemProperty(Object key) throws IOException {
Properties props = this.vm.getSystemProperties();
return props.containsKey(key);