@Override public String getDisplayName() { return project.getPlatform().getLabel(); }
public String getNodeName() { return NbBundle.getMessage(Passenger.class, "LBL_ServerNodeName", getDisplayName(), platform.getLabel()); }
public String getNodeName() { return NbBundle.getMessage(Mongrel.class, "LBL_ServerNodeName", getDisplayName(), platform.getLabel()); }
public String getNodeName() { return NbBundle.getMessage(WEBrick.class, "LBL_ServerNodeName", getDisplayName(), platform.getLabel()); }
public String getNodeName() { return NbBundle.getMessage(GlassFishGem.class, "LBL_ServerNodeName", getDisplayName(), platform.getLabel()); }
private JMenuItem createMenu() { JMenu menu = new JMenu(getMessage("PlatformNode.Change")); for (final RubyPlatform platform : RubyPlatformManager.getSortedPlatforms()) { JMenuItem item = new JMenuItem(platform.getLabel()); item.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { try { project.changeAndStorePlatform(platform); } catch (IOException ex) { LOGGER.log(Level.SEVERE, "Unable to change the platform: " + ex.getLocalizedMessage(), ex); } } }); menu.add(item); } return menu; } }
private void possiblyNotifyUser(boolean warn, boolean valid, String cmd) { if (warn && !valid) { String msg = NbBundle.getMessage(RubyPlatform.class, "RubyPlatform.NotInstalledCmd", cmd, getLabel()); NotifyDescriptor nd = new NotifyDescriptor.Message(msg, NotifyDescriptor.Message.ERROR_MESSAGE); DialogDisplayer.getDefault().notify(nd); } }
private static void showWarning(final RubyPlatform platform) { String msg = NbBundle.getMessage(RubyPlatform.class, "InvalidRubyPlatform", platform.getLabel()); JButton closeButton = getCloseButton(); Object[] options = new Object[]{closeButton}; showDialog(msg, options); }
boolean hasRubyGemsInstalled(boolean warn) { String problems = getRubyGemsProblems(); if (problems != null && warn) { Util.notifyLocalized(RubyPlatform.class, "RubyPlatformValidator.DoesNotHaveRubyGems", // NOI18N NotifyDescriptor.WARNING_MESSAGE, platform.getLabel(), problems); } return problems == null; }
public @Override String toString() { return "RubyPlatform[id:" + getID() + ", label:" + getLabel() + ", " + getInterpreter() + ", info: " + info + "]"; // NOI18N }
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { // #93658: GTK needs name to render cell renderer "natively" setName("ComboBox.listRenderer"); // NOI18N if (isSelected) { setBackground(list.getSelectionBackground()); setForeground(list.getSelectionForeground()); } else { setBackground(list.getBackground()); setForeground(list.getForeground()); } String label; if (value instanceof String) { label = (String) value; } else { RubyPlatform plaf = ((RubyPlatform) value); if (plaf == null || !plaf.isValid()) { label = plaf != null ? plaf.getLabel() : NbBundle.getMessage(PlatformComponentFactory.class, "PlatformComponentFactory.invalid.platform"); setForeground(INVALID_PLAF_COLOR); } else { label = plaf.getLabel(); } } setText(label); return this; }
additionalArgs.add("--noreadline"); // NOI18N String displayName = NbBundle.getMessage(IrbAction.class, "CTL_IrbTopComponentWithPlatform", platform.getLabel());