import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
+import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
private void addProject() {
try {
Project project = core.createProject();
- project.setName(I18n.get("")); /* TODO - i18n */
- project.setDescription(I18n.get("")); /* TODO - i18n */
- System.out.println("private: " + project.getPrivateKey() + ", public: " + project.getPublicKey());
mainWindow.addProject(project);
+ project.setName(I18n.get("general.newProject.name"));
+ project.setDescription(I18n.get("general.newProject.description", new Date()));
} catch (NoNodeException nne1) {
/* TODO - add i18n */
JOptionPane.showMessageDialog(mainWindow, I18n.get(""), I18n.get(""), JOptionPane.ERROR_MESSAGE);
*/
public void loadingProjectsDone(String directory) {
mainWindow.setStatusBarText(I18n.get("mainWindow.statusBar.projectLoadingDone"));
+ for (Project project: core.getProjects()) {
+ mainWindow.addProject(project);
+ }
}
/**