mongobrowser-commit Mailing List for mongobrowser (Page 6)
Status: Pre-Alpha
Brought to you by:
dbrosius
You can subscribe to this list here.
| 2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(60) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2010 |
Jan
(61) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(9) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <dbr...@us...> - 2009-12-24 00:39:02
|
Revision: 15
http://mongobrowser.svn.sourceforge.net/mongobrowser/?rev=15&view=rev
Author: dbrosius
Date: 2009-12-24 00:38:56 +0000 (Thu, 24 Dec 2009)
Log Message:
-----------
Initial Checkin
Added Paths:
-----------
trunk/mongobrowser/etc/
trunk/mongobrowser/etc/mongobrowser.jnlp
Added: trunk/mongobrowser/etc/mongobrowser.jnlp
===================================================================
--- trunk/mongobrowser/etc/mongobrowser.jnlp (rev 0)
+++ trunk/mongobrowser/etc/mongobrowser.jnlp 2009-12-24 00:38:56 UTC (rev 15)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<jnlp
+ spec="1.0+"
+ codebase="http://mongobrowser.sourceforge.net/jnlp"
+ href="mongobrowser.jnlp">
+ <information>
+ <title>MongoBrowser</title>
+ <vendor>MeBigFatGuy.com</vendor>
+ <homepage href="http://mongobrowser.sourceforge.net"/>
+ <description>A Cubism Artwork generator</description>
+ <description kind="short">Inspired by work from Roger Alsing</description>
+ <offline-allowed/>
+ </information>
+ <security>
+ <all-permissions/>
+ </security>
+ <resources>
+ <j2se version="1.6+" initial-heap-size="400m" max-heap-size="800m"/>
+ <jar href="mongobrowser-$VERSION.jar"/>
+ <jar href="mongo-1.1.jar"/>
+ <jar href="forms-1.2.1.jar"/>
+ </resources>
+ <application-desc main-class="com.mebigfatguy.mongobrowser.MongoBrowser"/>
+</jnlp>
+
Property changes on: trunk/mongobrowser/etc/mongobrowser.jnlp
___________________________________________________________________
Added: svn:mime-type
+ text/xml
Added: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <dbr...@us...> - 2009-12-24 00:11:54
|
Revision: 8
http://mongobrowser.svn.sourceforge.net/mongobrowser/?rev=8&view=rev
Author: dbrosius
Date: 2009-12-24 00:11:48 +0000 (Thu, 24 Dec 2009)
Log Message:
-----------
Initial Checkin
Added Paths:
-----------
trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/actions/DisconnectAction.java
Added: trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/actions/DisconnectAction.java
===================================================================
--- trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/actions/DisconnectAction.java (rev 0)
+++ trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/actions/DisconnectAction.java 2009-12-24 00:11:48 UTC (rev 8)
@@ -0,0 +1,24 @@
+package com.mebigfatguy.mongobrowser.actions;
+
+import java.awt.event.ActionEvent;
+
+import javax.swing.AbstractAction;
+
+import com.mebigfatguy.mongobrowser.MongoBundle;
+import com.mebigfatguy.mongobrowser.MongoContext;
+
+public class DisconnectAction extends AbstractAction {
+
+ private MongoContext context;
+
+ public DisconnectAction(MongoContext ctxt) {
+ super(MongoBundle.getString(MongoBundle.Key.Disconnect));
+ context = ctxt;
+ }
+
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ context.setDatabase(null);
+ context.setServer(null);
+ }
+}
Property changes on: trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/actions/DisconnectAction.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:mimetype
+ text/plain
Added: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <dbr...@us...> - 2009-12-24 00:11:26
|
Revision: 7
http://mongobrowser.svn.sourceforge.net/mongobrowser/?rev=7&view=rev
Author: dbrosius
Date: 2009-12-24 00:11:18 +0000 (Thu, 24 Dec 2009)
Log Message:
-----------
Initial Checkin
Added Paths:
-----------
trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/actions/
trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/actions/ConnectAction.java
Added: trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/actions/ConnectAction.java
===================================================================
--- trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/actions/ConnectAction.java (rev 0)
+++ trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/actions/ConnectAction.java 2009-12-24 00:11:18 UTC (rev 7)
@@ -0,0 +1,39 @@
+package com.mebigfatguy.mongobrowser.actions;
+
+import java.awt.event.ActionEvent;
+import java.net.UnknownHostException;
+
+import javax.swing.AbstractAction;
+import javax.swing.JOptionPane;
+
+import com.mebigfatguy.mongobrowser.MongoBundle;
+import com.mebigfatguy.mongobrowser.MongoContext;
+import com.mebigfatguy.mongobrowser.dialogs.ConnectionDialog;
+import com.mongodb.Mongo;
+
+public class ConnectAction extends AbstractAction {
+
+ private MongoContext context;
+
+ public ConnectAction(MongoContext ctxt) {
+ super(MongoBundle.getString(MongoBundle.Key.Connect));
+ context = ctxt;
+ }
+
+ @Override
+ public void actionPerformed(ActionEvent e) {
+ try {
+ ConnectionDialog cd = new ConnectionDialog();
+ cd.setLocationRelativeTo(null);
+ cd.setModal(true);
+ cd.setVisible(true);
+ if (cd.isOK()) {
+ String host = cd.getHost();
+ int port = cd.getPort();
+ context.setServer(new Mongo(host, port));
+ }
+ } catch (UnknownHostException uhe) {
+ JOptionPane.showMessageDialog(null, uhe.getMessage());
+ }
+ }
+}
Property changes on: trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/actions/ConnectAction.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:mimetype
+ text/plain
Added: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <dbr...@us...> - 2009-12-24 00:10:48
|
Revision: 6
http://mongobrowser.svn.sourceforge.net/mongobrowser/?rev=6&view=rev
Author: dbrosius
Date: 2009-12-24 00:10:42 +0000 (Thu, 24 Dec 2009)
Log Message:
-----------
Initial Checkin
Added Paths:
-----------
trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/MongoContext.java
Added: trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/MongoContext.java
===================================================================
--- trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/MongoContext.java (rev 0)
+++ trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/MongoContext.java 2009-12-24 00:10:42 UTC (rev 6)
@@ -0,0 +1,13 @@
+package com.mebigfatguy.mongobrowser;
+
+import com.mongodb.DB;
+import com.mongodb.Mongo;
+
+public interface MongoContext {
+
+ void setServer(Mongo server);
+ Mongo getServer();
+
+ void setDatabase(DB db);
+ DB getDatabase();
+}
Property changes on: trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/MongoContext.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:mimetype
+ text/plain
Added: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <dbr...@us...> - 2009-12-24 00:10:17
|
Revision: 5
http://mongobrowser.svn.sourceforge.net/mongobrowser/?rev=5&view=rev
Author: dbrosius
Date: 2009-12-24 00:10:09 +0000 (Thu, 24 Dec 2009)
Log Message:
-----------
Initial Checkin
Added Paths:
-----------
trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/MongoBundle.java
Added: trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/MongoBundle.java
===================================================================
--- trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/MongoBundle.java (rev 0)
+++ trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/MongoBundle.java 2009-12-24 00:10:09 UTC (rev 5)
@@ -0,0 +1,68 @@
+package com.mebigfatguy.mongobrowser;
+
+import java.util.ResourceBundle;
+
+/**
+ * manages the resource bundle properties file for this application
+ */
+public class MongoBundle {
+
+ /**
+ * an enumeration of all the possible entries in the bundle
+ */
+ public enum Key {
+ OK("mongo.ok"),
+ Cancel("mongo.cancel"),
+ Title("mongo.title"),
+ Servers("mongo.servers"),
+ Connect("mongo.connect"),
+ Disconnect("mongo.disconnect"),
+ ConnectToServer("mongo.connecttoserver"),
+ Server("mongo.server"),
+ Port("mongo.port"),
+ Database("mongo.database"),
+ NewDatabase("mongo.newdatabase"),
+ NewCollection("mongo.newcollection"),
+ NewObject("mongo.newobject"),
+ NewKeyValue("mongo.newkeyvalue");
+
+ String id;
+
+ /**
+ * creates a key given the properties file name
+ *
+ * @param id the properties file entry name
+ */
+ Key(String id) {
+ this.id = id;
+ }
+
+ /**
+ * retrieves the properties file entry name for this Key
+ *
+ * @return the properties file entry name id
+ */
+ public String id() {
+ return id;
+ }
+ };
+
+ private static ResourceBundle bundle = ResourceBundle.getBundle("com/mebigfatguy/mongobrowser/resources/resource");
+
+ /**
+ * protects this class from being instantiated as it is meant to be accessed as a static class
+ */
+ private MongoBundle() {
+
+ }
+
+ /**
+ * retrieves a string from a resource bundle given a key
+ *
+ * @param key the key of the property item that is to be retrieved
+ * @return the string representing the localized name
+ */
+ public static String getString(Key key) {
+ return bundle.getString(key.id());
+ }
+}
Property changes on: trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/MongoBundle.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:mimetype
+ text/plain
Added: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <dbr...@us...> - 2009-12-24 00:08:47
|
Revision: 4
http://mongobrowser.svn.sourceforge.net/mongobrowser/?rev=4&view=rev
Author: dbrosius
Date: 2009-12-24 00:08:41 +0000 (Thu, 24 Dec 2009)
Log Message:
-----------
Initial Checkin
Added Paths:
-----------
trunk/mongobrowser/src/
trunk/mongobrowser/src/com/
trunk/mongobrowser/src/com/mebigfatguy/
trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/
trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/MongoBrowser.java
Added: trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/MongoBrowser.java
===================================================================
--- trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/MongoBrowser.java (rev 0)
+++ trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/MongoBrowser.java 2009-12-24 00:08:41 UTC (rev 4)
@@ -0,0 +1,12 @@
+package com.mebigfatguy.mongobrowser;
+
+import com.mebigfatguy.mongobrowser.dialogs.MongoBrowserFrame;
+
+public class MongoBrowser {
+
+ public static void main(String[] args) {
+ MongoBrowserFrame frame = new MongoBrowserFrame();
+ frame.setLocationRelativeTo(null);
+ frame.setVisible(true);
+ }
+}
Property changes on: trunk/mongobrowser/src/com/mebigfatguy/mongobrowser/MongoBrowser.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: svn:mimetype
+ text/plain
Added: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <dbr...@us...> - 2009-12-23 23:58:47
|
Revision: 3
http://mongobrowser.svn.sourceforge.net/mongobrowser/?rev=3&view=rev
Author: dbrosius
Date: 2009-12-23 23:58:39 +0000 (Wed, 23 Dec 2009)
Log Message:
-----------
3rd party libs
Added Paths:
-----------
trunk/mongobrowser/lib/
trunk/mongobrowser/lib/forms-1.2.1.jar
trunk/mongobrowser/lib/mongo-1.1.jar
Added: trunk/mongobrowser/lib/forms-1.2.1.jar
===================================================================
(Binary files differ)
Property changes on: trunk/mongobrowser/lib/forms-1.2.1.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/mongobrowser/lib/mongo-1.1.jar
===================================================================
(Binary files differ)
Property changes on: trunk/mongobrowser/lib/mongo-1.1.jar
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|