public boolean openConnectionPresent() { MPSPlugin.assertNotInEDT(); if (myPlugin == null) { return false; } try { IIDEAHandler handler = myPlugin.getProjectCreator(); if (handler != null) { handler.ping(); } } catch (RemoteException e) { myPlugin = null; } return myPlugin != null; }
public boolean isIDEAPresent() { MPSPlugin.assertNotInEDT(); try { IMPSPlugin plugin = getPlugin(); if (plugin == null) { return false; } IIDEAHandler handler = plugin.getProjectCreator(); if (handler == null) { return false; } handler.ping(); return true; } catch (RemoteException e) { return false; } }