public void disconnectFromNode(Node node);
/**
- * Creates a new project with the given name. The returned {@link Project}
- * will contain a newly generated key pair.
+ * Creates a new project. The returned {@link Project} will contain a newly
+ * generated key pair.
*
- * @param projectName
- * The name of the project
* @return A newly created project
* @throws IOException
* if an I/O error occured communicating with the node
* @throws NoNodeException
* if no node is configured
*/
- public Project createProject(String projectName) throws IOException, NoNodeException;
+ public Project createProject() throws IOException, NoNodeException;
}
/**
* {@inheritDoc}
*/
- public Project createProject(String projectName) throws IOException, NoNodeException {
+ public Project createProject() throws IOException, NoNodeException {
Project project = new Project();
- project.setName(projectName);
String[] keyPair = nodeManager.generateKeyPair();
project.setPrivateKey(keyPair[0]);
project.setPublicKey(keyPair[1]);
*/
private void addProject() {
try {
- Project project = core.createProject("New Project");
+ 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);
} catch (NoNodeException nne1) {