private Freenet7Interface freenetInterface;
- protected Action projectLocalPathBrowseAction;
- protected Action projectAddAction;
- protected Action projectDeleteAction;
- protected Action projectCloneAction;
- protected Action projectCopyURIAction;
- protected Action projectGenerateKeyAction;
+ private Action projectLocalPathBrowseAction;
+ private Action projectAddAction;
+ private Action projectDeleteAction;
+ private Action projectCloneAction;
+ private Action projectCopyURIAction;
+ private Action projectGenerateKeyAction;
private JFileChooser pathChooser;
private SortedListModel projectListModel;
private void createActions() {
projectLocalPathBrowseAction = new AbstractAction(I18n.getMessage("jsite.project.action.browse")) {
+ @SuppressWarnings("synthetic-access")
public void actionPerformed(ActionEvent actionEvent) {
actionLocalPathBrowse();
}
projectAddAction = new AbstractAction(I18n.getMessage("jsite.project.action.add-project")) {
+ @SuppressWarnings("synthetic-access")
public void actionPerformed(ActionEvent actionEvent) {
actionAdd();
}
projectDeleteAction = new AbstractAction(I18n.getMessage("jsite.project.action.delete-project")) {
+ @SuppressWarnings("synthetic-access")
public void actionPerformed(ActionEvent actionEvent) {
actionDelete();
}
projectCloneAction = new AbstractAction(I18n.getMessage("jsite.project.action.clone-project")) {
+ @SuppressWarnings("synthetic-access")
public void actionPerformed(ActionEvent actionEvent) {
actionClone();
}
projectCopyURIAction = new AbstractAction(I18n.getMessage("jsite.project.action.copy-uri")) {
+ @SuppressWarnings("synthetic-access")
public void actionPerformed(ActionEvent actionEvent) {
actionCopyURI();
}
projectGenerateKeyAction = new AbstractAction(I18n.getMessage("jsite.project.action.generate-new-key")) {
+ @SuppressWarnings("synthetic-access")
public void actionPerformed(ActionEvent actionEvent) {
actionGenerateNewKey();
}
// ACTIONS
//
- protected void actionLocalPathBrowse() {
+ private void actionLocalPathBrowse() {
Project project = (Project) projectList.getSelectedValue();
if (project == null) {
return;
}
}
- protected void actionAdd() {
+ private void actionAdd() {
String[] keyPair = null;
if (!freenetInterface.hasNode()) {
JOptionPane.showMessageDialog(this, I18n.getMessage("jsite.project-files.no-node-selected"), null, JOptionPane.ERROR_MESSAGE);
projectList.setSelectedIndex(projectListModel.size() - 1);
}
- protected void actionDelete() {
+ private void actionDelete() {
int selectedIndex = projectList.getSelectedIndex();
if (selectedIndex > -1) {
if (JOptionPane.showConfirmDialog(this, MessageFormat.format(I18n.getMessage("jsite.project.action.delete-project.confirm"), ((Project) projectList.getSelectedValue()).getName()), null, JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE) == JOptionPane.OK_OPTION) {
}
}
- protected void actionClone() {
+ private void actionClone() {
int selectedIndex = projectList.getSelectedIndex();
if (selectedIndex > -1) {
Project newProject = new Project((Project) projectList.getSelectedValue());
}
}
- protected void actionCopyURI() {
+ private void actionCopyURI() {
int selectedIndex = projectList.getSelectedIndex();
if (selectedIndex > -1) {
Project selectedProject = (Project) projectList.getSelectedValue();
}
}
- protected void actionGenerateNewKey() {
+ private void actionGenerateNewKey() {
if (JOptionPane.showConfirmDialog(this, I18n.getMessage("jsite.project.warning.generate-new-key"), null, JOptionPane.OK_CANCEL_OPTION) == JOptionPane.CANCEL_OPTION) {
return;
}