- fileOptionsPanel.add(mimeTypeLabel, new GridBagConstraints(0, 7, 1, 1, 0.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.NONE, new Insets(6, 18, 0, 0), 0, 0));
- fileOptionsPanel.add(fileOptionsMIMETypeComboBox, new GridBagConstraints(1, 7, 4, 1, 1.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.HORIZONTAL, new Insets(6, 6, 0, 0), 0, 0));
-
- containerComboBoxModel = new DefaultComboBoxModel();
- fileOptionsContainerComboBox = new JComboBox(containerComboBoxModel);
- fileOptionsContainerComboBox.setToolTipText(I18n.getMessage("jsite.project-files.container.tooltip"));
- fileOptionsContainerComboBox.setName("project-files.container");
- fileOptionsContainerComboBox.addActionListener(this);
- fileOptionsContainerComboBox.setEnabled(false);
- fileOptionsContainerComboBox.setVisible(false);
-
- final TLabel containerLabel = new TLabel(I18n.getMessage("jsite.project-files.container") + ":", KeyEvent.VK_C, fileOptionsContainerComboBox);
- containerLabel.setVisible(false);
- JButton addContainerButton = new JButton(addContainerAction);
- addContainerButton.setVisible(false);
- JButton editContainerButton = new JButton(editContainerAction);
- editContainerButton.setVisible(false);
- JButton deleteContainerButton = new JButton(deleteContainerAction);
- deleteContainerButton.setVisible(false);
- fileOptionsPanel.add(containerLabel, new GridBagConstraints(0, 8, 1, 1, 0.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.NONE, new Insets(6, 18, 0, 0), 0, 0));
- fileOptionsPanel.add(fileOptionsContainerComboBox, new GridBagConstraints(1, 8, 1, 1, 1.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.HORIZONTAL, new Insets(6, 6, 0, 0), 0, 0));
- fileOptionsPanel.add(addContainerButton, new GridBagConstraints(2, 8, 1, 1, 0.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.HORIZONTAL, new Insets(6, 6, 0, 0), 0, 0));
- fileOptionsPanel.add(editContainerButton, new GridBagConstraints(3, 8, 1, 1, 0.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.HORIZONTAL, new Insets(6, 6, 0, 0), 0, 0));
- fileOptionsPanel.add(deleteContainerButton, new GridBagConstraints(4, 8, 1, 1, 0.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.HORIZONTAL, new Insets(6, 6, 0, 0), 0, 0));
-
- JPanel fileOptionsReplacementPanel = new JPanel(new FlowLayout(FlowLayout.LEADING, 6, 6));
- fileOptionsReplacementPanel.setBorder(new EmptyBorder(-6, -6, -6, -6));
-
- replacementCheckBox = new JCheckBox(I18n.getMessage("jsite.project-files.replacement"));
- replacementCheckBox.setName("project-files.replace-edition");
- replacementCheckBox.setToolTipText(I18n.getMessage("jsite.project-files.replacement.tooltip"));
- replacementCheckBox.addActionListener(this);
- replacementCheckBox.setEnabled(false);
- replacementCheckBox.setVisible(false);
- fileOptionsReplacementPanel.add(replacementCheckBox);
-
- replaceEditionRangeSpinner = new JSpinner(new SpinnerNumberModel(0, 0, 99, 1));
- replaceEditionRangeSpinner.setName("project-files.replace-edition-range");
- replaceEditionRangeSpinner.setToolTipText(I18n.getMessage("jsite.project-files.replacement.edition-range.tooltip"));
- replaceEditionRangeSpinner.addChangeListener(this);
- replaceEditionRangeSpinner.setEnabled(false);
- replaceEditionRangeSpinner.setVisible(false);
- final JLabel editionRangeLabel = new JLabel(I18n.getMessage("jsite.project-files.replacement.edition-range"));
- editionRangeLabel.setVisible(false);
- fileOptionsReplacementPanel.add(editionRangeLabel);
- fileOptionsReplacementPanel.add(replaceEditionRangeSpinner);
-
- fileOptionsPanel.add(fileOptionsReplacementPanel, new GridBagConstraints(0, 9, 5, 1, 1.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.HORIZONTAL, new Insets(6, 18, 0, 0), 0, 0));