Author: bombe
Date: 2008-08-15 20:21:57 +0000 (Fri, 15 Aug 2008)
New Revision: 21918
Modified:
trunk/apps/jSite/src/de/todesbaum/jsite/gui/ProjectPage.java
trunk/apps/jSite/src/de/todesbaum/jsite/main/Version.java
Log:
version 0.5.1:
show correct edition when inserting a new project
fix selection of new project after adding
fix NPE when selecting a new project
Modified: trunk/apps/jSite/src/de/todesbaum/jsite/gui/ProjectPage.java
===================================================================
--- trunk/apps/jSite/src/de/todesbaum/jsite/gui/ProjectPage.java
2008-08-15 19:51:51 UTC (rev 21917)
+++ trunk/apps/jSite/src/de/todesbaum/jsite/gui/ProjectPage.java
2008-08-15 20:21:57 UTC (rev 21918)
@@ -69,7 +69,7 @@
/**
* Wizard page that lets the user manage his projects and start inserts.
- *
+ *
* @author David ?Bombe? Roden <bombe at freenetproject.org>
*/
public class ProjectPage extends TWizardPage implements ListSelectionListener,
DocumentListener, ClipboardOwner {
@@ -127,7 +127,7 @@
/**
* Creates a new project page.
- *
+ *
* @param wizard
* The wizard this page belongs to
*/
@@ -179,7 +179,7 @@
/**
* Adds the given listener to the list of listeners.
- *
+ *
* @param listener
* The listener to add
*/
@@ -189,7 +189,7 @@
/**
* Removes the given listener from the list of listeners.
- *
+ *
* @param listener
* The listener to remove
*/
@@ -289,7 +289,7 @@
/**
* Creates the information panel.
- *
+ *
* @return The information panel
*/
private JComponent createInformationPanel() {
@@ -405,7 +405,7 @@
/**
* Sets the project list.
- *
+ *
* @param projects
* The list of projects
*/
@@ -418,7 +418,7 @@
/**
* Returns the list of projects.
- *
+ *
* @return The list of projects
*/
public Project[] getProjects() {
@@ -427,7 +427,7 @@
/**
* Sets the freenet interface to use.
- *
+ *
* @param freenetInterface
* The freenetInterface to use
*/
@@ -437,7 +437,7 @@
/**
* Returns the currently selected project.
- *
+ *
* @return The currently selected project
*/
public Project getSelectedProject() {
@@ -447,7 +447,7 @@
/**
* Updates the currently selected project with changed information from
a
* textfield.
- *
+ *
* @param documentEvent
* The document event to process
*/
@@ -516,11 +516,12 @@
newProject.setName(I18n.getMessage("jsite.project.new-project.name"));
newProject.setInsertURI(keyPair[0]);
newProject.setRequestURI(keyPair[1]);
- newProject.setEdition(0);
+ newProject.setEdition(-1);
+ newProject.setPath("");
projectListModel.add(newProject);
projectScrollPane.revalidate();
projectScrollPane.repaint();
- projectList.setSelectedIndex(projectListModel.size() - 1);
+
projectList.setSelectedIndex(projectListModel.indexOf(newProject));
}
/**
Modified: trunk/apps/jSite/src/de/todesbaum/jsite/main/Version.java
===================================================================
--- trunk/apps/jSite/src/de/todesbaum/jsite/main/Version.java 2008-08-15
19:51:51 UTC (rev 21917)
+++ trunk/apps/jSite/src/de/todesbaum/jsite/main/Version.java 2008-08-15
20:21:57 UTC (rev 21918)
@@ -21,17 +21,17 @@
/**
* Container for version information.
- *
+ *
* @author David ?Bombe? Roden <bombe at freenetproject.org>
*/
public class Version {
/** The version. */
- private static final String VERSION = "0.5";
+ private static final String VERSION = "0.5.1";
/**
* Returns the version.
- *
+ *
* @return The version
*/
public static final String getVersion() {