public void platformChanged() { RubyPlatform platform = (RubyPlatform) platforms.getSelectedItem(); if (platform != null) { uiProperties.setPlatform(platform); configs.get(getSelectedConfig()).put(RubyProjectProperties.PLATFORM_ACTIVE, platform.getID()); updateEnabled(); } } };
public static void storePlatform(final EditableProperties ep, final RubyPlatform platform) { if (platform == null) { LOGGER.fine("Project has invalid platform (null)."); return; } ep.setProperty(PLATFORM_ACTIVE, platform.getID()); }
public void platformChanged() { RubyPlatform platform = (RubyPlatform) platforms.getSelectedItem(); if (platform != null) { uiProperties.setPlatform(platform); configs.get(getSelectedConfig()).put(RailsProjectProperties.PLATFORM_ACTIVE, platform.getID()); } } };
/** * Find a platform by its ID. * @param id an ID (as in {@link #getID}) * @return the platform with that ID, or null */ public static synchronized RubyPlatform getPlatformByID(String id) { for (RubyPlatform p : getPlatformsInternal()) { if (p.getID().equals(id)) { return p; } } return null; }
public static void storeWizardPlatform(JComboBox platforms) { RubyPlatform selectedPlatform = PlatformComponentFactory.getPlatform(platforms); if (selectedPlatform != null) { RubyPreferences.getPreferences().put(LAST_PLATFORM_ID, selectedPlatform.getID()); } }
public @Override String toString() { return "RubyPlatform[id:" + getID() + ", label:" + getLabel() + ", " + getInterpreter() + ", info: " + info + "]"; // NOI18N }
public @Override void removeNotify() { closed = true; removeFilterDocumentListeners(); cancelRunningTasks(); if (getSelectedPlatform() != null) { RubyPreferences.getPreferences().put(LAST_PLATFORM_ID, getSelectedPlatform().getID()); } super.removeNotify(); }
lastSelectedPlatformID = plaf.getID(); plfNameValue.setText(plaf.getInfo().getLongDescription()); plfInterpreterValue.setText(plaf.getInterpreter());
private static void clearProperties(RubyPlatform plaf, EditableProperties props) { String id = PLATFORM_PREFIX + plaf.getID(); props.remove(id + PLATFORM_INTEPRETER); String idDot = id + '.'; props.remove(PLATFORM_PREFIX + idDot + Info.RUBY_KIND); props.remove(PLATFORM_PREFIX + idDot + Info.RUBY_VERSION); props.remove(PLATFORM_PREFIX + idDot + Info.JRUBY_VERSION); props.remove(PLATFORM_PREFIX + idDot + Info.RUBY_PATCHLEVEL); props.remove(PLATFORM_PREFIX + idDot + Info.RUBY_RELEASE_DATE); // props.remove(PLATFORM_PREFIX + idDot + Info.RUBY_EXECUTABLE); props.remove(PLATFORM_PREFIX + idDot + Info.RUBY_PLATFORM); props.remove(PLATFORM_PREFIX + idDot + Info.RUBY_LIB_DIR); props.remove(PLATFORM_PREFIX + idDot + Info.GEM_HOME); props.remove(PLATFORM_PREFIX + idDot + Info.GEM_PATH); props.remove(PLATFORM_PREFIX + idDot + Info.GEM_VERSION); }