make delete and clone buttons project specific
[jSite2.git] / src / net / pterodactylus / jsite / gui / ProjectPanel.java
index e15b257..73d901f 100644 (file)
@@ -211,8 +211,8 @@ public class ProjectPanel extends JPanel implements DocumentListener, I18nable {
                JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.TRAILING, 12, 12));
                buttonPanel.setBorder(BorderFactory.createEmptyBorder(-12, -12, -12, -12));
 
-               buttonPanel.add(new JButton(swingInterface.getDeleteProjectAction()));
-               buttonPanel.add(new JButton(swingInterface.getCloneProjectAction()));
+               buttonPanel.add(new JButton(swingInterface.getDeleteProjectAction(project)));
+               buttonPanel.add(new JButton(swingInterface.getCloneProjectAction(project)));
 
                return buttonPanel;
        }
@@ -238,7 +238,7 @@ public class ProjectPanel extends JPanel implements DocumentListener, I18nable {
        /**
         * Lets the user select a new base path and repopulates the file list.
         */
-       private void changeBasePath() {
+       void changeBasePath() {
                JFileChooser fileChooser = new JFileChooser(project.getBasePath());
                fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
                fileChooser.setApproveButtonText(I18n.get("projectPanel.button.approve.name"));
@@ -284,6 +284,7 @@ public class ProjectPanel extends JPanel implements DocumentListener, I18nable {
        public void updateI18n() {
                nameLabel.updateI18n();
                descriptionLabel.updateI18n();
+               basePathLabel.updateI18n();
                changeBasePathAction.updateI18n();
                editFilesAction.updateI18n();
        }