first cut for strict project matching mode to ensure live hovers are detected and shown only for relevant projects
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user