| | |
| | | |
| | | private final boolean displayServerLocation; |
| | | |
| | | private final HashMap<FieldName, JLabel> hmLabels = new HashMap<FieldName, JLabel>(); |
| | | private final HashMap<FieldName, JTextComponent> hmFields = new HashMap<FieldName, JTextComponent>(); |
| | | private final HashMap<FieldName, JLabel> hmLabels = new HashMap<>(); |
| | | private final HashMap<FieldName, JTextComponent> hmFields = new HashMap<>(); |
| | | private JPanel bottomComponent; |
| | | private JCheckBox startCheckBox; |
| | | private JCheckBox enableWindowsServiceCheckBox; |
| | |
| | | /** Create the components and populate the Maps. */ |
| | | private void populateLabelAndFieldsMap() |
| | | { |
| | | final HashMap<FieldName, LabelFieldDescriptor> hm = new HashMap<FieldName, LabelFieldDescriptor>(); |
| | | final HashMap<FieldName, LabelFieldDescriptor> hm = new HashMap<>(); |
| | | |
| | | if (displayServerLocation) |
| | | { |
| | |
| | | } |
| | | buf.append(s); |
| | | |
| | | final TreeSet<LocalizableMessage> remoteServerLines = new TreeSet<LocalizableMessage>(); |
| | | final TreeSet<LocalizableMessage> remoteServerLines = new TreeSet<>(); |
| | | for (final ServerDescriptor server : remotePorts.keySet()) |
| | | { |
| | | String serverDisplay; |
| | |
| | | panel.setOpaque(false); |
| | | final GridBagConstraints gbc = new GridBagConstraints(); |
| | | |
| | | final List<FieldName> fieldNames = new LinkedList<FieldName>(); |
| | | final List<FieldName> fieldNames = new LinkedList<>(); |
| | | if (displayServerLocation) |
| | | { |
| | | fieldNames.add(FieldName.SERVER_LOCATION); |
| | |
| | | final StringBuilder sb = new StringBuilder(); |
| | | final JavaArguments serverArguments = userData.getJavaArguments(UserData.SERVER_SCRIPT_NAME); |
| | | final JavaArguments importArguments = userData.getJavaArguments(UserData.IMPORT_SCRIPT_NAME); |
| | | final List<String> linesToAdd = new ArrayList<String>(); |
| | | final List<String> linesToAdd = new ArrayList<>(); |
| | | |
| | | final boolean defaultServer = |
| | | userData.getDefaultJavaArguments(UserData.SERVER_SCRIPT_NAME).equals(serverArguments); |