public void run() { for (String interpreter : skipped) { try { addPlatform(new File(interpreter)); } catch (IOException ex) { Exceptions.printStackTrace(ex); } } } });
RubyPlatform addPlatform(final File interpreter) { try { RubyPlatform platform = RubyPlatformManager.addPlatform(interpreter); if (platform != null) { nbPlafs = getSortedPlatforms(); // refresh fireContentsChanged(this, 0, nbPlafs.length - 1); } return platform; } catch (IOException e) { // tell the user that something goes wrong LOGGER.log(Level.WARNING, e.getLocalizedMessage(), e); } return null; } }
try { if (getPlatformByFile(ruby) == null) { addPlatform(ruby);