From: David ‘Bombe’ Roden Date: Fri, 7 Mar 2008 22:40:36 +0000 (+0000) Subject: Initial import. X-Git-Url: https://git.pterodactylus.net/?p=jSite2.git;a=commitdiff_plain;h=c785ca4d7b634f79e1f30202915633aa92e4152c Initial import. git-svn-id: http://trooper/svn/projects/jSite/trunk@546 c3eda9e8-030b-0410-8277-bc7414b0a119 --- diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..fb50116 --- /dev/null +++ b/.classpath @@ -0,0 +1,6 @@ + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..0ccf87d --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + jSite2 + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/.settings/org.eclipse.jdt.ui.prefs b/.settings/org.eclipse.jdt.ui.prefs new file mode 100644 index 0000000..d88838e --- /dev/null +++ b/.settings/org.eclipse.jdt.ui.prefs @@ -0,0 +1,3 @@ +#Fri Mar 07 23:24:03 CET 2008 +eclipse.preferences.version=1 +org.eclipse.jdt.ui.text.custom_code_templates= diff --git a/src/net/pterodactylus/jsite/core/Project.java b/src/net/pterodactylus/jsite/core/Project.java new file mode 100644 index 0000000..8a1de1d --- /dev/null +++ b/src/net/pterodactylus/jsite/core/Project.java @@ -0,0 +1,118 @@ +/* + * jSite2 - Project.java - + * Copyright © 2008 David Roden + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +package net.pterodactylus.jsite.core; + +/** + * Container for project information. + * + * @author David ‘Bombe’ Roden <bombe@freenetproject.org> + * @version $Id$ + */ +public class Project { + + /** The name of the project. */ + private String name; + + /** The local path of the project. */ + private String localPath; + + /** The public key. */ + private String publicKey; + + /** The private key. */ + private String privateKey; + + /** + * Returns the name of the project. + * + * @return The name of the project + */ + String getName() { + return name; + } + + /** + * Sets the name of the project. + * + * @param name + * The name of the project + */ + void setName(String name) { + this.name = name; + } + + /** + * Returns the local path of the project. + * + * @return The local path of the project + */ + String getLocalPath() { + return localPath; + } + + /** + * Sets the local path of the project. + * + * @param localPath + * The local path of the project + */ + void setLocalPath(String localPath) { + this.localPath = localPath; + } + + /** + * Returns the public key of the project. + * + * @return The public key of the project + */ + String getPublicKey() { + return publicKey; + } + + /** + * Sets the public key of the project. + * + * @param publicKey + * The public key of the project + */ + void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + /** + * Returns the private key of the project. + * + * @return The private key of the project + */ + String getPrivateKey() { + return privateKey; + } + + /** + * Sets the private key of the project. + * + * @param privateKey + * The private key of the project + */ + void setPrivateKey(String privateKey) { + this.privateKey = privateKey; + } + +} diff --git a/src/net/pterodactylus/jsite/gui/MainWindow.java b/src/net/pterodactylus/jsite/gui/MainWindow.java new file mode 100644 index 0000000..3e8e965 --- /dev/null +++ b/src/net/pterodactylus/jsite/gui/MainWindow.java @@ -0,0 +1,32 @@ +/* + * jSite2 - MainWindow.java - + * Copyright © 2008 David Roden + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +package net.pterodactylus.jsite.gui; + +import javax.swing.JFrame; + +/** + * Defines the main window of the application. + * + * @author David ‘Bombe’ Roden <bombe@freenetproject.org> + * @version $Id$ + */ +public class MainWindow extends JFrame { + +} diff --git a/src/net/pterodactylus/jsite/main/Main.java b/src/net/pterodactylus/jsite/main/Main.java new file mode 100644 index 0000000..383aa0c --- /dev/null +++ b/src/net/pterodactylus/jsite/main/Main.java @@ -0,0 +1,39 @@ +/* + * jSite2 - Main.java - + * Copyright © 2008 David Roden + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +package net.pterodactylus.jsite.main; + +/** + * Main class that is called by the VM. + * + * @author David ‘Bombe’ Roden <bombe@freenetproject.org> + * @version $Id$ + */ +public class Main { + + /** + * Main entry method for the VM. + * + * @param args + * The command-line arguments + */ + public static void main(String[] args) { + } + +} diff --git a/src/net/pterodactylus/jsite/main/Version.java b/src/net/pterodactylus/jsite/main/Version.java new file mode 100644 index 0000000..a98f9a7 --- /dev/null +++ b/src/net/pterodactylus/jsite/main/Version.java @@ -0,0 +1,42 @@ +/* + * jSite2 - Version.java - + * Copyright © 2008 David Roden + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +package net.pterodactylus.jsite.main; + +/** + * Container for version information. + * + * @author David Roden <bombe@freenetproject.org> + * @version $Id$ + */ +public class Version { + + /** The version identifier. */ + private static final String VERSION = "0.9"; + + /** + * Returns the version information. + * + * @return The version information + */ + public static final String getVersion() { + return VERSION; + } + +}