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;
}
/**
* 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"));
public void updateI18n() {
nameLabel.updateI18n();
descriptionLabel.updateI18n();
+ basePathLabel.updateI18n();
changeBasePathAction.updateI18n();
editFilesAction.updateI18n();
}