/**
* A panel that contains all information about a project and lets the user edit
* the properties of the project.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
public class ProjectPanel extends JPanel implements DocumentListener, I18nable {
/** Logger. */
- @SuppressWarnings("unused")
private static final Logger logger = Logging.getLogger(ProjectPanel.class.getName());
/** The Swing interface. */
/**
* Creates a new project panel.
- *
+ *
* @param swingInterface
* The Swing interface
* @param project
/**
* Returns the project that is displayed in this panel.
- *
+ *
* @return The project of this panel
*/
public Project getProject() {
/**
* Adds the given node to the node combo boxes in all {@link ProjectPanel}s.
- *
+ *
* @param node
* The node to add
*/
/**
* Removes the given node from the node combo boxes in all
* {@link ProjectPanel}s.
- *
+ *
* @param node
* The node to remove
*/
/**
* {@inheritDoc}
*/
- @SuppressWarnings("synthetic-access")
public void actionPerformed(ActionEvent actionEvent) {
changeBasePath();
}
/**
* Creates the properties panel.
- *
+ *
* @return The properties panel
*/
private JPanel createPropertiesPanel() {
/**
* Creates the button panel.
- *
+ *
* @return The button panel
*/
private JPanel createButtonPanel() {
JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.TRAILING, 12, 12));
buttonPanel.setBorder(BorderFactory.createEmptyBorder(-12, -12, -12, -12));
- buttonPanel.add(new JButton(swingInterface.getDeleteProjectAction(project)));
+ buttonPanel.add(new JButton(swingInterface.getInsertProjectAction(project)));
buttonPanel.add(new JButton(swingInterface.getCloneProjectAction(project)));
+ buttonPanel.add(new JButton(swingInterface.getDeleteProjectAction(project)));
return buttonPanel;
}
/**
* Updates the project from changes in the text fields.
- *
+ *
* @param document
* The document that was changed
*/
/**
* Cell cenderer for the node combo box.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
private static class NodeComboBoxCellRenderer extends DefaultListCellRenderer {