Browse files

issue59: add .app file for osx

  • Loading branch information...
1 parent 3ea932d commit e0adc9f2980b31465e9720874525fd12a18a495e @agirbal committed Mar 18, 2012
Showing with 309 additions and 302 deletions.
  1. BIN lib/bson.jar
  2. +14 −31 nbproject/build-impl.xml
  3. +5 −5 nbproject/genfiles.properties
  4. +6 −9 nbproject/project.properties
  5. +1 −18 nbproject/project.xml
  6. +0 −45 osx-app/JMongo.app/Contents/Info.plist
  7. BIN osx-app/JMongo.app/Contents/Resources/JMONGO.icns
  8. BIN osx-app/JMongo.app/Contents/Resources/Java/JMongoBrowser.jar
  9. BIN osx-app/JMongo.app/Contents/Resources/Java/SwingFast.jar
  10. BIN osx-app/JMongo.app/Contents/Resources/Java/bson.jar
  11. BIN osx-app/JMongo.app/Contents/Resources/Java/mongo.jar
  12. 0 package/{linux-files → linux}/launchJMongoBrowser.sh
  13. +50 −0 package/osx/JMongoBrowser.app/Contents/Info.plist
  14. 0 {osx-app/JMongo.app → package/osx/JMongoBrowser.app}/Contents/MacOS/JavaApplicationStub
  15. 0 {osx-app/JMongo.app → package/osx/JMongoBrowser.app}/Contents/PkgInfo
  16. BIN package/osx/JMongoBrowser.app/Contents/Resources/mongo.icns
  17. 0 package/{mac-files → osx}/launchJMongoBrowser.command
  18. 0 package/{mac-files → osx}/mongo_leaf.png
  19. +31 −0 package/osx/package.sh
  20. +6 −6 package/package.sh
  21. +1 −1 package/version
  22. 0 package/{windows-files → windows}/JMongoBrowser.exe
  23. BIN resource/img/Superman.png
  24. BIN resource/img/superman.png
  25. +112 −107 resource/xml/JMongoBrowser.xml
  26. +1 −1 resource/xml/dbNode.xml
  27. +2 −2 resource/xml/docView.xml
  28. +1 −1 resource/xml/indexNode.xml
  29. +1 −1 resource/xml/replSetNode.xml
  30. +1 −1 resource/xml/routerNode.xml
  31. +1 −1 resource/xml/serverNode.xml
  32. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/AppPreferences.java
  33. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/AutoUpdateDialog.java
  34. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/BasePanel.java
  35. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/BaseTreeNode.java
  36. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/CmdField.java
  37. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/CollectionNode.java
  38. +9 −6 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/CollectionPanel.java
  39. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/ConnectDialog.java
  40. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/DBObjectWrapper.java
  41. +2 −2 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/DbJob.java
  42. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/DbNode.java
  43. +2 −2 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/DbPanel.java
  44. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/DocBuilderDialog.java
  45. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/DocBuilderField.java
  46. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/DocField.java
  47. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/DocFieldArray.java
  48. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/DocFieldObject.java
  49. +2 −2 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/DocFieldText.java
  50. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/DocView.java
  51. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/EditBinaryDialog.java
  52. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/EditBooleanDialog.java
  53. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/EditCodeDialog.java
  54. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/EditDateDialog.java
  55. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/EditDoubleDialog.java
  56. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/EditFieldDialog.java
  57. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/EditLongDialog.java
  58. +2 −2 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/EditObjectIdDialog.java
  59. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/EditPatternDialog.java
  60. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/EditStringDialog.java
  61. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/EditTimestampDialog.java
  62. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/EditUuidDialog.java
  63. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/ErrorDialog.java
  64. +2 −2 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/ExportDialog.java
  65. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/ExportFile.java
  66. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/GlobalStore.java
  67. +2 −2 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/ImportDialog.java
  68. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/IndexNode.java
  69. +2 −2 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/IndexPanel.java
  70. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/JMongoBrowser.java
  71. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/JobBar.java
  72. +2 −2 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/MainMenu.java
  73. +2 −2 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/MainToolBar.java
  74. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/MongoNode.java
  75. +2 −2 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/MongoPanel.java
  76. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/MongoUtils.java
  77. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/OptionDialog.java
  78. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/ReplSetNode.java
  79. +2 −2 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/ReplSetPanel.java
  80. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/Resource.java
  81. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/RouterNode.java
  82. +2 −2 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/RouterPanel.java
  83. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/ServerNode.java
  84. +2 −2 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/ServerPanel.java
  85. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/TreeNodeDBObject.java
  86. +1 −1 src/{org/mongo/jmongob → com/edgytech/jmongobrowser}/Workspace.java
View
BIN lib/bson.jar
Binary file not shown.
View
45 nbproject/build-impl.xml
@@ -20,10 +20,10 @@ is divided into following sections:
-->
<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="JMongoBrowser-impl">
- <fail message="Please build using Ant 1.7.1 or higher.">
+ <fail message="Please build using Ant 1.8.0 or higher.">
<condition>
<not>
- <antversion atleast="1.7.1"/>
+ <antversion atleast="1.8.0"/>
</not>
</condition>
</fail>
@@ -197,6 +197,7 @@ is divided into following sections:
<property name="javac.fork" value="${jdkBug6558476}"/>
<property name="jar.index" value="false"/>
<property name="jar.index.metainf" value="${jar.index}"/>
+ <property name="copylibs.rebase" value="true"/>
<available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
</target>
<target name="-post-init">
@@ -379,6 +380,7 @@ is divided into following sections:
<property environment="env"/>
<resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
<java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
+ <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg value="${profiler.info.jvmargs.agent}"/>
<jvmarg line="${profiler.info.jvmargs}"/>
<env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
@@ -509,7 +511,7 @@ is divided into following sections:
</chainedmapper>
</pathconvert>
<taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
- <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
+ <copylibs compress="${jar.compress}" index="${jar.index}" indexMetaInf="${jar.index.metainf}" jarfile="${dist.jar}" manifest="@{manifest}" rebase="${copylibs.rebase}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
<fileset dir="${build.classes.dir}"/>
<manifest>
<attribute name="Class-Path" value="${jar.classpath}"/>
@@ -571,20 +573,6 @@ is divided into following sections:
<propertyfile file="${built-jar.properties}">
<entry key="${basedir}" value=""/>
</propertyfile>
- <antcall target="-maybe-call-dep">
- <param name="call.built.properties" value="${built-jar.properties}"/>
- <param location="${project.MongoDB_Java_Driver}" name="call.subproject"/>
- <param location="${project.MongoDB_Java_Driver}/build.xml" name="call.script"/>
- <param name="call.target" value="jar"/>
- <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
- </antcall>
- <antcall target="-maybe-call-dep">
- <param name="call.built.properties" value="${built-jar.properties}"/>
- <param location="${project.SwingFast}" name="call.subproject"/>
- <param location="${project.SwingFast}/build.xml" name="call.script"/>
- <param name="call.target" value="jar"/>
- <param name="transfer.built-jar.properties" value="${built-jar.properties}"/>
- </antcall>
</target>
<target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
<target depends="init" name="-check-automatic-build">
@@ -849,6 +837,14 @@ is divided into following sections:
-->
<target depends="init" if="have.sources" name="-javadoc-build">
<mkdir dir="${dist.javadoc.dir}"/>
+ <condition else="" property="javadoc.endorsed.classpath.cmd.line.arg" value="-J${endorsed.classpath.cmd.line.arg}">
+ <and>
+ <isset property="endorsed.classpath.cmd.line.arg"/>
+ <not>
+ <equals arg1="${endorsed.classpath.cmd.line.arg}" arg2=""/>
+ </not>
+ </and>
+ </condition>
<javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
<classpath>
<path path="${javac.classpath}"/>
@@ -863,6 +859,7 @@ is divided into following sections:
<include name="**/*.java"/>
<exclude name="*.java"/>
</fileset>
+ <arg line="${javadoc.endorsed.classpath.cmd.line.arg}"/>
</javadoc>
<copy todir="${dist.javadoc.dir}">
<fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
@@ -1025,20 +1022,6 @@ is divided into following sections:
<propertyfile file="${built-clean.properties}">
<entry key="${basedir}" value=""/>
</propertyfile>
- <antcall target="-maybe-call-dep">
- <param name="call.built.properties" value="${built-clean.properties}"/>
- <param location="${project.MongoDB_Java_Driver}" name="call.subproject"/>
- <param location="${project.MongoDB_Java_Driver}/build.xml" name="call.script"/>
- <param name="call.target" value="clean"/>
- <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
- </antcall>
- <antcall target="-maybe-call-dep">
- <param name="call.built.properties" value="${built-clean.properties}"/>
- <param location="${project.SwingFast}" name="call.subproject"/>
- <param location="${project.SwingFast}/build.xml" name="call.script"/>
- <param name="call.target" value="clean"/>
- <param name="transfer.built-clean.properties" value="${built-clean.properties}"/>
- </antcall>
</target>
<target depends="init" name="-do-clean">
<delete dir="${build.dir}"/>
View
10 nbproject/genfiles.properties
@@ -1,8 +1,8 @@
-build.xml.data.CRC32=b767bcb9
+build.xml.data.CRC32=64f26677
build.xml.script.CRC32=9d7f4f72
-build.xml.stylesheet.CRC32=28e38971@1.44.1.45
+build.xml.stylesheet.CRC32=28e38971@1.50.1.46
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
-nbproject/build-impl.xml.data.CRC32=b767bcb9
-nbproject/build-impl.xml.script.CRC32=cd1edd7f
-nbproject/build-impl.xml.stylesheet.CRC32=0ae3a408@1.44.1.45
+nbproject/build-impl.xml.data.CRC32=64f26677
+nbproject/build-impl.xml.script.CRC32=3b6ca0b4
+nbproject/build-impl.xml.stylesheet.CRC32=fcddb364@1.50.1.46
View
15 nbproject/project.properties
@@ -1,5 +1,6 @@
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
+annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
application.title=JMongoBrowser
@@ -26,14 +27,15 @@ dist.jar=${dist.dir}/JMongoBrowser.jar
dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=
excludes=
+file.reference.mongo.jar=lib/mongo.jar
+file.reference.SwingFast.jar=lib/SwingFast.jar
file.reference.trunk-resource=resource
file.reference.trunk-src=src
includes=**
jar.compress=false
javac.classpath=\
- ${reference.MongoDB_Java_Driver.jar}:\
- ${reference.SwingFast.jar}:\
- ${reference.MongoDB_Java_Driver.jar.1}
+ ${file.reference.mongo.jar}:\
+ ${file.reference.SwingFast.jar}
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
@@ -59,16 +61,11 @@ javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
-main.class=org.mongo.jmongob.JMongoBrowser
+main.class=com.edgytech.jmongobrowser.JMongoBrowser
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false
platform.active=default_platform
-project.MongoDB_Java_Driver=../mongo-java-driver
-project.SwingFast=../../ag/SwingFast/trunk
-reference.MongoDB_Java_Driver.jar=${project.MongoDB_Java_Driver}/mongo.jar
-reference.MongoDB_Java_Driver.jar.1=${project.MongoDB_Java_Driver}/bson.jar
-reference.SwingFast.jar=${project.SwingFast}/dist/SwingFast.jar
resource.dir=${file.reference.trunk-resource}
run.classpath=\
${javac.classpath}:\
View
19 nbproject/project.xml
@@ -10,23 +10,6 @@
</source-roots>
<test-roots/>
</data>
- <references xmlns="http://www.netbeans.org/ns/ant-project-references/2">
- <reference>
- <foreign-project>MongoDB_Java_Driver</foreign-project>
- <artifact-type>jar</artifact-type>
- <script>${project.MongoDB_Java_Driver}/build.xml</script>
- <target>jar</target>
- <clean-target>clean</clean-target>
- <id>jar</id>
- </reference>
- <reference>
- <foreign-project>SwingFast</foreign-project>
- <artifact-type>jar</artifact-type>
- <script>${project.SwingFast}/build.xml</script>
- <target>jar</target>
- <clean-target>clean</clean-target>
- <id>jar</id>
- </reference>
- </references>
+ <references xmlns="http://www.netbeans.org/ns/ant-project-references/2"/>
</configuration>
</project>
View
45 osx-app/JMongo.app/Contents/Info.plist
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
-<plist version="0.9">
-<dict>
- <key>CFBundleName</key>
- <string>JMongo</string>
- <key>CFBundleIdentifier</key>
- <string>org.mongo.jmongob.JMongoBrowser</string>
- <key>CFBundleVersion</key>
- <string>100.0</string>
- <key>CFBundleAllowMixedLocalizations</key>
- <string>true</string>
- <key>CFBundleExecutable</key>
- <string>JavaApplicationStub</string>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleIconFile</key>
- <string>JMONGO.icns</string>
- <key>Java</key>
- <dict>
- <key>MainClass</key>
- <string>org.mongo.jmongob.JMongoBrowser</string>
- <key>JVMVersion</key>
- <string>1.5+</string>
- <key>ClassPath</key>
- <array>
- <string>$JAVAROOT/JMongoBrowser.jar</string>
- <string>$JAVAROOT/SwingFast.jar</string>
- <string>$JAVAROOT/mongo.jar</string>
- <string>$JAVAROOT/bson.jar</string>
- </array>
- <key>Properties</key>
- <dict>
- <key>apple.laf.useScreenMenuBar</key>
- <string>true</string>
- </dict>
- </dict>
-</dict>
-</plist>
View
BIN osx-app/JMongo.app/Contents/Resources/JMONGO.icns
Binary file not shown.
View
BIN osx-app/JMongo.app/Contents/Resources/Java/JMongoBrowser.jar
Binary file not shown.
View
BIN osx-app/JMongo.app/Contents/Resources/Java/SwingFast.jar
Binary file not shown.
View
BIN osx-app/JMongo.app/Contents/Resources/Java/bson.jar
Binary file not shown.
View
BIN osx-app/JMongo.app/Contents/Resources/Java/mongo.jar
Binary file not shown.
View
0 package/linux-files/launchJMongoBrowser.sh → package/linux/launchJMongoBrowser.sh
File renamed without changes.
View
50 package/osx/JMongoBrowser.app/Contents/Info.plist
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
+<plist version="0.9">
+ <dict>
+ <key>CFBundleName</key>
+ <string>JMongoBrowser</string>
+ <key>CFBundleIdentifier</key>
+ <string>JMongoBrowser.class</string>
+ <key>CFBundleVersion</key>
+ <string>100.0</string>
+ <key>CFBundleAllowMixedLocalizations</key>
+ <string>true</string>
+ <key>CFBundleExecutable</key>
+ <string>JavaApplicationStub</string>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.1.1</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleIconFile</key>
+ <string>mongo.icns</string>
+ <key>Java</key>
+ <dict>
+ <key>VMOptions</key>
+ <string>-Xms10m -Xmx256m</string>
+ <key>MainClass</key>
+ <string>com.edgytech.jmongobrowser.JMongoBrowser</string>
+ <key>JVMVersion</key>
+ <string>1.6+</string>
+ <key>ClassPath</key>
+ <array>
+ <string>$JAVAROOT/JMongoBrowser.jar</string>
+ <string>$JAVAROOT/SwingFast.jar</string>
+ <string>$JAVAROOT/mongo.jar</string>
+ <string>$JAVAROOT/bson.jar</string>
+ </array>
+ <key>Properties</key>
+ <dict>
+ <key>apple.laf.useScreenMenuBar</key>
+ <string>true</string>
+ </dict>
+ </dict>
+ </dict>
+</plist>
+<!-- must have even number of lines for sed N -->
View
0 ...go.app/Contents/MacOS/JavaApplicationStub → ...er.app/Contents/MacOS/JavaApplicationStub
File renamed without changes.
View
0 osx-app/JMongo.app/Contents/PkgInfo → ...ge/osx/JMongoBrowser.app/Contents/PkgInfo
File renamed without changes.
View
BIN package/osx/JMongoBrowser.app/Contents/Resources/mongo.icns
Binary file not shown.
View
0 ...age/mac-files/launchJMongoBrowser.command → package/osx/launchJMongoBrowser.command
File renamed without changes.
View
0 package/mac-files/mongo_leaf.png → package/osx/mongo_leaf.png
File renamed without changes
View
31 package/osx/package.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+pkgdir=`dirname $0`
+pkgdir=`dirname pkgdir`
+echo Moving to package folder $pkgdir
+cd $pkgdir
+version=`cat version`
+vdash=`echo $version | sed -e s/'\.'/-/g`
+
+cp ../dist/lib/{SwingFast,mongo}.jar ../lib/
+
+function package_build {
+ os=$1
+ arch=$2
+ appdir=JMongoBrowser-${os}-${arch}_${vdash}
+ echo Creating folder $appdir
+ rm -rf $appdir ${appdir}.zip
+ mkdir $appdir
+
+ cp -r ${os}/JMongoBrowser.app $appdir
+ app=${appdir}/JMongoBrowser.app
+ sed -i "" -e "N; s/\(.*CFBundleShortVersionString.*\n\).*/\1 <string>$version<\/string>/" $app/Contents/Info.plist
+
+ cp ../dist/JMongoBrowser.jar $app/Contents/Resources/Java/
+ cp ../lib/*.jar $app/Contents/Resources/Java/
+
+ zip -r ${appdir}.zip $appdir
+}
+
+package_build osx all
+
View
12 package/package.sh
@@ -4,20 +4,20 @@ pkgdir=`dirname $0`
echo Moving to package folder $pkgdir
cd $pkgdir
version=`cat version`
+vdash=`echo $version | sed -e s/'\.'/-/g`
-cp ../dist/lib/SwingFast.jar ../lib/
-cp ../dist/lib/{bson,mongo}.jar ../lib/
+cp ../dist/lib/{SwingFast,mongo}.jar ../lib/
function package_build {
os=$1
arch=$2
- appdir=JMongoBrowser-${os}-${arch}_${version}
+ appdir=JMongoBrowser-${os}-${arch}_${vdash}
echo Creating folder $appdir
rm -rf $appdir ${appdir}.zip
mkdir $appdir
- cp ./common-files/* $appdir/
- cp ${os}-files/* $appdir/
+ cp ./common-files/* $appdir/
+ cp ${os}/* $appdir/
cp ../dist/JMongoBrowser.jar $appdir/
mkdir $appdir/lib
cp ../lib/*.jar $appdir/lib/
@@ -27,5 +27,5 @@ function package_build {
package_build windows all
package_build linux all
-package_build mac all
+./osx/package.sh
View
2 package/version
@@ -1 +1 @@
-1-1-2
+1.1.2
View
0 package/windows-files/JMongoBrowser.exe → package/windows/JMongoBrowser.exe
File renamed without changes.
View
BIN resource/img/Superman.png
Deleted file not rendered
View
BIN resource/img/superman.png
Deleted file not rendered
View
219 resource/xml/JMongoBrowser.xml
@@ -8,11 +8,11 @@
Purpose of the document follows.
-->
-<org.mongo.jmongob.JMongoBrowser id="jmongob" start="start" stop="stop">
+<com.edgytech.jmongobrowser.JMongoBrowser id="jmongob" start="start" stop="stop">
<IconGroup id="icons" folder="img" resource="true"/>
<IconGroup id="etIcons" folder="com/edgytech/swingfast/img" resource="true"/>
- <org.mongo.jmongob.GlobalStore id="globalStore">
- <org.mongo.jmongob.OptionDialog id="optionDialog">
+ <com.edgytech.jmongobrowser.GlobalStore id="globalStore">
+ <com.edgytech.jmongobrowser.OptionDialog id="optionDialog">
<TabbedDiv>
<Div id="queryOption">
<CheckBox id="slaveOk" toolTipText="When turned on, read queries will be directed to slave servers instead of the primary server"/>
@@ -34,28 +34,28 @@
<ComboBox id="rpPreference" label="Read Preference" items="None;Primary;Secondary" value="0" toolTipText="The read preference mode. Primary to read from master, Secondary to read from slaves."/>
</Div>
</TabbedDiv>
- </org.mongo.jmongob.OptionDialog>
- <org.mongo.jmongob.ErrorDialog id="errorDialog">
+ </com.edgytech.jmongobrowser.OptionDialog>
+ <com.edgytech.jmongobrowser.ErrorDialog id="errorDialog">
<Text id="errorIcon" icon="error.png" iconGroup="icons"/>
<Text id="errorIn" label="Error in" field="true"/>
<Text id="errorMsg" label="Message" field="true"/>
<Text id="errorCode" label="Code" field="true"/>
<TextArea id="errorTrace" label="Trace" rows="20" columns="50" editable="false"/>
- </org.mongo.jmongob.ErrorDialog>
- <org.mongo.jmongob.AutoUpdateDialog id="autoUpdateDialog">
+ </com.edgytech.jmongobrowser.ErrorDialog>
+ <com.edgytech.jmongobrowser.AutoUpdateDialog id="autoUpdateDialog">
<ComboBox id="autoType" lable="Update Type" items="Refresh;Append"/>
<IntSpinner id="autoInterval" label="Interval" minValue="0" value="5000" toolTipText="Interval between each update, in milliseconds"/>
<IntSpinner id="autoCount" label="Count" minValue="0" value="100" toolTipText="Number of times to update, 0 means forever"/>
- </org.mongo.jmongob.AutoUpdateDialog>
- <org.mongo.jmongob.ExportDialog id="exportDialog">
+ </com.edgytech.jmongobrowser.AutoUpdateDialog>
+ <com.edgytech.jmongobrowser.ExportDialog id="exportDialog">
<FileChooserField id="outputFile">
<FileChooserDialog type="SAVE" mode="FILES_ONLY"/>
</FileChooserField>
<ComboBox id="format" items="JSON;JSON Array;CSV;BSON" toolTipText="Format to use for the export"/>
<TextField id="fields" toolTipText="Comma-separated list of fields to export, mandatory for CSV format"/>
<CheckBox id="continueOnError" toolTipText="Continue after an error occurs"/>
- </org.mongo.jmongob.ExportDialog>
- <org.mongo.jmongob.ImportDialog id="importDialog">
+ </com.edgytech.jmongobrowser.ExportDialog>
+ <com.edgytech.jmongobrowser.ImportDialog id="importDialog">
<FileChooserField id="inputFile">
<FileChooserDialog type="OPEN" mode="FILES_ONLY"/>
</FileChooserField>
@@ -65,9 +65,9 @@
<CheckBox id="upsert" toolTipText="Upsert values instead of insert"/>
<TextField id="upsertFields" toolTipText="Comma-separated list of fields to upsert by. If not specified, save() will be used."/>
<CheckBox id="bulk" value="false" toolTipText="If turned on, the bulk insert function of the driver will be used. It may be faster but more client memory will be used, and error reporting is not accurate."/>
- </org.mongo.jmongob.ImportDialog>
+ </com.edgytech.jmongobrowser.ImportDialog>
<ConfirmDialog id="lockingOperationDialog" text="Are you sure you want to run this command? It can potentially lock the db for a long time."/>
- <org.mongo.jmongob.MongoPanel id="mongoPanel">
+ <com.edgytech.jmongobrowser.MongoPanel id="mongoPanel">
<MenuBar id="menu" zone="NORTH" minHeight="50" prefHeight="50">
<Text id="icon" icon="mongo_leaf_32.png" iconGroup="icons" toolTipText="Mongo"/>
<Menu id="mongo">
@@ -87,7 +87,7 @@
<MenuSeparator/>
<MenuItem id="currentOps" call="currentOps">
<FormDialog>
- <org.mongo.jmongob.DocBuilderField id="currentOpsQuery" label="Query Filter" toolTipText="Optional, a query to filter operations. Use {'$all': 1} to also see internal commands."/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="currentOpsQuery" label="Query Filter" toolTipText="Optional, a query to filter operations. Use {'$all': 1} to also see internal commands."/>
</FormDialog>
</MenuItem>
<MenuItem id="killOp" call="killOp">
@@ -131,15 +131,15 @@
<Div zone="NORTH" gap="true" bgColor="255;255;255">
<Text id="version" label="Driver Version" field="true"/>
<Text id="queryOptions" field="true"/>
- <org.mongo.jmongob.DocField id="writeConcern"/>
+ <com.edgytech.jmongobrowser.DocField id="writeConcern"/>
<Text id="masterServer" field="true"/>
<Text id="seedServers" field="true"/>
<Text id="activeServers" field="true"/>
<Text id="maxObjectSize" field="true"/>
</Div>
</Zone>
- </org.mongo.jmongob.MongoPanel>
- <org.mongo.jmongob.DbPanel id="dbPanel">
+ </com.edgytech.jmongobrowser.MongoPanel>
+ <com.edgytech.jmongobrowser.DbPanel id="dbPanel">
<MenuBar id="menu" zone="NORTH" minHeight="50" prefHeight="50">
<Text id="icon" icon="database.png" iconGroup="icons" toolTipText="Database"/>
<Menu id="database">
@@ -164,7 +164,7 @@
<FormDialog>
<Text value="Input either a command name, or a JSON command"/>
<TextField id="commandStr" label="Command Name"/>
- <org.mongo.jmongob.DocBuilderField id="commandJson" label="JSON Command"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="commandJson" label="JSON Command"/>
<CheckBox id="commandHelp" label="Show Help"/>
</FormDialog>
</MenuItem>
@@ -215,13 +215,13 @@
</FileChooserField>
<TextField id="uploadFileName" label="File Name" toolTipText="Optional, Name of the file as stored on the server"/>
<TextField id="uploadContentType" toolTipText="Optional, Content type to associate with file"/>
- <org.mongo.jmongob.DocBuilderField id="uploadMetadata" label="Metadata" toolTipText="Optional, JSON object representing the file's metadata"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="uploadMetadata" label="Metadata" toolTipText="Optional, JSON object representing the file's metadata"/>
</FormDialog>
</MenuItem>
<MenuItem id="downloadFile" call="downloadFile">
<FormDialog id="downloadFileDialog">
<Text value="Specify a query object or a file name"/>
- <org.mongo.jmongob.DocBuilderField id="downloadQuery" label="Query" toolTipText="Find the file using this query"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="downloadQuery" label="Query" toolTipText="Find the file using this query"/>
<TextField id="downloadFileName" label="File Name" toolTipText="Name of the file as stored on the server"/>
<FileChooserField id="downloadFilePath" label="Save As">
<FileChooserDialog type="SAVE" selectionMode="FILES_ONLY"/>
@@ -231,7 +231,7 @@
<MenuItem id="deleteFile" call="deleteFile">
<FormDialog id="deleteFileDialog">
<Text value="Specify a query object or a file name"/>
- <org.mongo.jmongob.DocBuilderField id="deleteQuery" label="Query" toolTipText="Find the file using this query"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="deleteQuery" label="Query" toolTipText="Find the file using this query"/>
<TextField id="deleteFileName" label="File Name" toolTipText="Name of the file as stored on the server"/>
</FormDialog>
</MenuItem>
@@ -265,18 +265,18 @@
<Div zone="NORTH" gap="true" bgColor="255;255;255">
<Text id="name" field="true"/>
<Text id="queryOptions" field="true"/>
- <org.mongo.jmongob.DocField id="writeConcern"/>
- <org.mongo.jmongob.CmdField id="stats" cmd="dbstats"/>
+ <com.edgytech.jmongobrowser.DocField id="writeConcern"/>
+ <com.edgytech.jmongobrowser.CmdField id="stats" cmd="dbstats"/>
</Div>
</Zone>
- </org.mongo.jmongob.DbPanel>
- <org.mongo.jmongob.CollectionPanel id="collectionPanel">
+ </com.edgytech.jmongobrowser.DbPanel>
+ <com.edgytech.jmongobrowser.CollectionPanel id="collectionPanel">
<MenuBar id="menu" zone="NORTH" minHeight="50" prefHeight="50">
<Text id="icon" icon="folder.png" iconGroup="icons" toolTipText="Collection"/>
<Menu id="collection">
<MenuItem id="ensureIndex" call="ensureIndex">
<FormDialog>
- <org.mongo.jmongob.DocBuilderField id="eiKeys" label="Index Keys" toolTipText="keys to index by, in JSON format" nonEmpty="true"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="eiKeys" label="Index Keys" toolTipText="keys to index by, in JSON format" nonEmpty="true"/>
<CheckBox id="eiUnique" label="Unique" toolTipText="If checked, index will be unique"/>
<CheckBox id="eiDropDups" label="Drop Duplicates" toolTipText="If creating a unique index, remove documents with duplicate keys"/>
<CheckBox id="eiSparse" label="Sparse" toolTipText="Make index sparse, meaning that documents missing the key will not be indexed"/>
@@ -304,9 +304,9 @@
<MenuItem id="statsCmd" label="Stats" call="stats"/>
<MenuItem id="group" call="group">
<FormDialog>
- <org.mongo.jmongob.DocBuilderField id="grpKeys" label="Keys" toolTipText="Keys to group by, in JSON format" nonEmpty="true"/>
- <org.mongo.jmongob.DocBuilderField id="grpQuery" label="Query" toolTipText="Query to filter the input, in JSON format"/>
- <org.mongo.jmongob.DocBuilderField id="grpInitialValue" label="Initial Value" toolTipText="Initial value for the job, in JSON format" nonEmpty="true" value='{"count": 0}'/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="grpKeys" label="Keys" toolTipText="Keys to group by, in JSON format" nonEmpty="true"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="grpQuery" label="Query" toolTipText="Query to filter the input, in JSON format"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="grpInitialValue" label="Initial Value" toolTipText="Initial value for the job, in JSON format" nonEmpty="true" value='{"count": 0}'/>
<TextArea id="grpReduce" label="Reduce JS Function" toolTipText="reduce javascript function with signature 'void function(obj, out)' where obj is the object to process and out is the current result for that key" nonEmpty="true" value="function(obj,out){ out.count += 1; }"/>
<TextArea id="grpFinalize" label="Finalize JS Function" toolTipText="optional finalize javascript function with signature 'void function(out)' where out is the result for that key"/>
</FormDialog>
@@ -316,88 +316,93 @@
<TextArea id="mrMap" label="Map JS Function" toolTipText="map javascript function with signature 'void function map()' which should contain one or more calls to emit(key, obj)" nonEmpty="true" value="function(){ emit(this._id, {count: 1}); }"/>
<TextArea id="mrReduce" label="Reduce JS Function" toolTipText="reduce javascript function with signature 'result reduce(key, values)' where key is the emit key and values is the list of values to reduce.'" nonEmpty="true" value="function(key, values) { total = 0; for (var i = 0; i &lt; values.length; ++i) { total += values[i].count; }; return {count: total}; }"/>
<TextArea id="mrFinalize" label="Finalize JS Function" toolTipText="optional finalize javascript function with signature 'result finalize(key, out)' where out is the result for that key"/>
- <org.mongo.jmongob.DocBuilderField id="mrQuery" label="Query" toolTipText="Query to filter the input, in JSON format"/>
- <org.mongo.jmongob.DocBuilderField id="mrSort" label="Sort" toolTipText="Sort key for the input, in JSON format. Sort by the emit key to optimize performance."/>
+ <Div id="input">
+ <com.edgytech.jmongobrowser.DocBuilderField id="mrQuery" label="Query" toolTipText="Query to filter the input, in JSON format"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="mrSort" label="Sort" toolTipText="Sort key for the input, in JSON format. Sort by the emit key to optimize performance."/>
<IntSpinner id="mrLimit" label="Limit" toolTipText="Limit of the number of input entries to process" minValue="0"/>
+ </Div>
+ <Div id="output">
<ComboBox id="mrType" label="Output Type" items="replace;merge;reduce;inline" toolTipText="How to process the output"/>
<TextField id="mrOut" label="Output Collection" toolTipText="Name of the output collection" nonEmpty="true"/>
<TextField id="mrOutDB" label="Output Database" toolTipText="Name of the output database, if different from the input database"/>
<CheckBox id="mrOutSharded" label="Sharded Output" value="false" toolTipText="If true, the result collection will be sharded using the _id key."/>
+ <CheckBox id="mrNonAtomic" label="Non Atomic" value="false" toolTipText="If true, the output will be applied without taking a lock, which means partial results can be seen." />
+ </Div>
<CheckBox id="mrJSMode" value="false" label="JS Mode"/>
</FormDialog>
</MenuItem>
<MenuItem id="geoNear" call="geoNear">
<FormDialog>
- <org.mongo.jmongob.DocBuilderField id="gnOrigin" label="Origin" toolTipText="Point of origin, in JSON format"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="gnOrigin" label="Origin" toolTipText="Point of origin, in JSON format"/>
<IntSpinner id="gnNum" label="Num" toolTipText="Maximum number of entries to return" minValue="0" value="100"/>
<IntSpinner id="gnMaxDistance" label="Max Distance" toolTipText="Maximum distance from the point of origin" minValue="0"/>
<DoubleSpinner id="gnDistanceMultiplier" label="Distance Multiplier" toolTipText="Distance multiplier" minValue="0"/>
- <org.mongo.jmongob.DocBuilderField id="gnQuery" label="Query" toolTipText="Query to filter the results by, in JSON format"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="gnQuery" label="Query" toolTipText="Query to filter the results by, in JSON format"/>
<CheckBox id="gnSpherical" label="Spherical" toolTipText="Takes into account that earth is a sphere. Coordinates must be in decimal degrees and the distance must be in radians (divide by 6371 km or 3959 miles)."/>
- <org.mongo.jmongob.DocBuilderField id="gnSearch" label="Search" toolTipText="Search criteria for geo haystack indexing, in JSON format"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="gnSearch" label="Search" toolTipText="Search criteria for geo haystack indexing, in JSON format"/>
</FormDialog>
</MenuItem>
</Menu>
<Menu id="document">
<MenuItem id="find" call="find" key="f" keyMod="cmd+shift">
<FormDialog>
- <org.mongo.jmongob.DocBuilderField id="findQuery" label="Query" toolTipText="Query to find by, in JSON format"/>
- <org.mongo.jmongob.DocBuilderField id="findFields" label="Fields" toolTipText="Fields to include in results, in JSON format"/>
- <org.mongo.jmongob.DocBuilderField id="findSort" label="Sort" toolTipText="Sort object, in JSON format"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="findQuery" label="Query" toolTipText="Query to find by, in JSON format"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="findFields" label="Fields" toolTipText="Fields to include in results, in JSON format"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="findSort" label="Sort" toolTipText="Sort object, in JSON format"/>
<IntSpinner id="findSkip" label="Skip" minValue="0" value="0" toolTipText="Number of documents to skip"/>
<IntSpinner id="findLimit" label="Limit" minValue="0" value="0" toolTipText="Maximum number of documents to return"/>
<IntSpinner id="findBatchSize" label="Batch Size" value="0" toolTipText="If positive, the ideal batch size to return from server. If negative, instructs the server to close the cursor after 1 batch of given size."/>
- <org.mongo.jmongob.DocBuilderField id="findHint" label="Hint" toolTipText="Object with keys that represent the index to use. Use '$natural' to force full scan."/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="findHint" label="Hint" toolTipText="Object with keys that represent the index to use. Use '$natural' to force full scan."/>
<CheckBox id="findExplain" label="Explain" toolTipText="Explain the find processing"/>
<CheckBox id="findExport" label="Export to File" toolTipText="Export to file, like mongoexport utility"/>
</FormDialog>
</MenuItem>
<MenuItem id="findOne" call="findOne" key="o" keyMod="cmd+shift">
<FormDialog>
- <org.mongo.jmongob.DocBuilderField id="foQuery" label="Query" toolTipText="Query to find by, in JSON format"/>
- <org.mongo.jmongob.DocBuilderField id="foFields" label="Fields" toolTipText="Fields to include in results, in JSON format"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="foQuery" label="Query" toolTipText="Query to find by, in JSON format"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="foFields" label="Fields" toolTipText="Fields to include in results, in JSON format"/>
</FormDialog>
</MenuItem>
<MenuItem id="count" call="count" key="c" keyMod="cmd+shift">
<FormDialog>
- <org.mongo.jmongob.DocBuilderField id="countQuery" label="Query" toolTipText="Query to find by, in JSON format"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="countQuery" label="Query" toolTipText="Query to find by, in JSON format"/>
<IntSpinner id="countSkip" label="Skip" minValue="0" value="0" toolTipText="Number of documents to skip"/>
<IntSpinner id="countLimit" label="Limit" minValue="0" value="0" toolTipText="Maximum number of documents to return"/>
</FormDialog>
</MenuItem>
<MenuSeparator/>
<MenuItem id="insert" call="insert">
<FormDialog>
- <org.mongo.jmongob.DocBuilderField id="insertDoc" label="JSON Document" toolTipText="Document to insert in JSON format" nonEmpty="true"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="insertDoc" label="JSON Document" toolTipText="Document to insert in JSON format" nonEmpty="true"/>
<IntSpinner id="insertCount" label="Insert Count" minValue="1" value="1" toolTipText="Number of documents to insert"/>
<CheckBox id="insertBulk" label="Bulk Insert" value="false" toolTipText="If multiple objects are inserted, use the bulk operation, faster but uses more memory."/>
</FormDialog>
</MenuItem>
<MenuItem id="save" call="save">
<FormDialog>
- <org.mongo.jmongob.DocBuilderField id="saveDoc" label="JSON Document" toolTipText="Document to save in JSON format" nonEmpty="true"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="saveDoc" label="JSON Document" toolTipText="Document to save in JSON format" nonEmpty="true"/>
</FormDialog>
</MenuItem>
<MenuItem id="update" call="update">
<FormDialog>
- <org.mongo.jmongob.DocBuilderField id="upQuery" label="Query" toolTipText="Query to match, in JSON format"/>
- <org.mongo.jmongob.DocBuilderField id="upUpdate" label="Update" toolTipText="Update to apply to document, in JSON format" nonEmpty="true"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="upQuery" label="Query" toolTipText="Query to match, in JSON format"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="upUpdate" label="Update" toolTipText="Update to apply to document, in JSON format" nonEmpty="true"/>
<CheckBox id="upUpsert" label="Upsert" toolTipText="Insert document if not present"/>
<CheckBox id="upMulti" label="Multi" toolTipText="Update all matched documents"/>
<CheckBox id="upSafe" label="Safe" toolTipText="Displays a confirmation dialog with count information before applying update."/>
</FormDialog>
</MenuItem>
<MenuItem id="remove" call="remove">
<FormDialog>
- <org.mongo.jmongob.DocBuilderField id="removeQuery" label="Query" toolTipText="Query to remove by, in JSON format"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="removeQuery" label="Query" toolTipText="Query to remove by, in JSON format"/>
</FormDialog>
</MenuItem>
<MenuItem id="findAndModify" call="findAndModify">
<FormDialog>
- <org.mongo.jmongob.DocBuilderField id="famQuery" label="Query" toolTipText="Query to match, in JSON format"/>
- <org.mongo.jmongob.DocBuilderField id="famFields" label="Fields" toolTipText="Fields to be returned, in JSON format"/>
- <org.mongo.jmongob.DocBuilderField id="famSort" label="Sort" toolTipText="Sort to find 1st document by, in JSON format"/>
- <org.mongo.jmongob.DocBuilderField id="famUpdate" label="Update" toolTipText="Update to apply to document, in JSON format"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="famQuery" label="Query" toolTipText="Query to match, in JSON format"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="famFields" label="Fields" toolTipText="Fields to be returned, in JSON format"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="famSort" label="Sort" toolTipText="Sort to find 1st document by, in JSON format"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="famUpdate" label="Update" toolTipText="Update to apply to document, in JSON format"/>
<CheckBox id="famRemove" label="Remove" toolTipText="Remove the document found"/>
<CheckBox id="famReturnNew" label="Return New" toolTipText="Return the document after update"/>
<CheckBox id="famUpsert" label="Upsert" toolTipText="Insert document if not present"/>
@@ -411,7 +416,7 @@
<FormDialog>
<Text value="Either pick a key from an existing index, or specify your own"/>
<ComboBox id="shardKeyCombo" label="Existing Key" items="None" toolTipText="Choose this option if you want to use an existing index for sharding"/>
- <org.mongo.jmongob.DocBuilderField id="shardCustomKey" label="Custom Key" toolTipText="Specify a custom shard key. An index may be created to back that key."/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="shardCustomKey" label="Custom Key" toolTipText="Specify a custom shard key. An index may be created to back that key."/>
<CheckBox id="shardUniqueIndex" label="Unique" toolTipText="If true, will make sure the underlying index has a unique constraint." value="false"/>
<Text text="Choose the shard key carefully, this operation cannot be undone."/>
</FormDialog>
@@ -420,13 +425,13 @@
<MenuItem id="findChunks" call="findChunks"/>
<MenuItem id="moveChunk" call="moveChunk">
<FormDialog>
- <org.mongo.jmongob.DocBuilderField id="mvckQuery" label="Chunk Query" toolTipText="Query to find the chunk by"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="mvckQuery" label="Chunk Query" toolTipText="Query to find the chunk by"/>
<TextField id="mvckToShard" label="To Shard" nonEmpty="true" toolTipText="Name of shard to send the chunk to"/>
</FormDialog>
</MenuItem>
<MenuItem id="splitChunk" call="splitChunk">
<FormDialog>
- <org.mongo.jmongob.DocBuilderField id="spckQuery" label="Chunk Query" toolTipText="Query to find the chunk by"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="spckQuery" label="Chunk Query" toolTipText="Query to find the chunk by"/>
<CheckBox id="spckOnValue" label="Split on Value" value="false" toolTipText="If true, split chunk on provided query value, otherwise split chunk in the middle"/>
</FormDialog>
</MenuItem>
@@ -459,12 +464,12 @@
<Text id="name" field="true"/>
<Text id="fullName" field="true"/>
<Text id="queryOptions" field="true"/>
- <org.mongo.jmongob.DocField id="writeConcern"/>
- <org.mongo.jmongob.CmdField id="stats" cmd="collstats"/>
+ <com.edgytech.jmongobrowser.DocField id="writeConcern"/>
+ <com.edgytech.jmongobrowser.CmdField id="stats" cmd="collstats"/>
</Div>
</Zone>
- </org.mongo.jmongob.CollectionPanel>
- <org.mongo.jmongob.IndexPanel id="indexPanel">
+ </com.edgytech.jmongobrowser.CollectionPanel>
+ <com.edgytech.jmongobrowser.IndexPanel id="indexPanel">
<MenuBar id="menu" zone="NORTH" minHeight="50" prefHeight="50">
<Text id="icon" icon="index.png" iconGroup="icons" toolTipText="Index"/>
<Menu id="index">
@@ -481,12 +486,12 @@
<Div zone="NORTH" gap="true" bgColor="255;255;255">
<Text id="name" field="true"/>
<Text id="ns" label="NS" field="true"/>
- <org.mongo.jmongob.DocField id="key"/>
- <org.mongo.jmongob.DocField id="info"/>
+ <com.edgytech.jmongobrowser.DocField id="key"/>
+ <com.edgytech.jmongobrowser.DocField id="info"/>
</Div>
</Zone>
- </org.mongo.jmongob.IndexPanel>
- <org.mongo.jmongob.ServerPanel id="serverPanel">
+ </com.edgytech.jmongobrowser.IndexPanel>
+ <com.edgytech.jmongobrowser.ServerPanel id="serverPanel">
<MenuBar id="menu" zone="NORTH" minHeight="50" prefHeight="50">
<Text id="icon" icon="server.png" iconGroup="icons" toolTipText="Server"/>
<Menu id="server">
@@ -498,7 +503,7 @@
<MenuSeparator/>
<MenuItem id="currentOps" call="currentOps">
<FormDialog>
- <org.mongo.jmongob.DocBuilderField id="currentOpsQuery" label="Query Filter" toolTipText="Optional, a query to filter operations. Use {'$all': 1} to also see internal commands."/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="currentOpsQuery" label="Query Filter" toolTipText="Optional, a query to filter operations. Use {'$all': 1} to also see internal commands."/>
</FormDialog>
</MenuItem>
<MenuItem id="killOp" call="killOp">
@@ -509,7 +514,7 @@
<MenuSeparator/>
<MenuItem id="setParameter" call="setParameter">
<FormDialog>
- <org.mongo.jmongob.DocBuilderField id="setParameterValue" label="Parameter" nonEmpty="true" toolTipText="Modify a parameter without restarting the server, for example {logLevel: 4}"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="setParameterValue" label="Parameter" nonEmpty="true" toolTipText="Modify a parameter without restarting the server, for example {logLevel: 4}"/>
</FormDialog>
</MenuItem>
<MenuItem id="setLogLevel" call="setLogLevel">
@@ -536,11 +541,11 @@
<Text id="replication" field="true" toolTipText="Replication status" icon="overlay/tick_circle.png" iconGroup="icons"/>
<Text id="maxObjectSize" field="true"/>
<Text id="durability" field="true" icon="overlay/shield_blue.png" iconGroup="icons"/>
- <org.mongo.jmongob.CmdField id="serverStatus" cmd="serverStatus"/>
+ <com.edgytech.jmongobrowser.CmdField id="serverStatus" cmd="serverStatus"/>
</Div>
</Zone>
- </org.mongo.jmongob.ServerPanel>
- <org.mongo.jmongob.ReplSetPanel id="replSetPanel">
+ </com.edgytech.jmongobrowser.ServerPanel>
+ <com.edgytech.jmongobrowser.ReplSetPanel id="replSetPanel">
<MenuBar id="menu" zone="NORTH" minHeight="50" prefHeight="50">
<Text id="icon" icon="replSet.png" iconGroup="icons" toolTipText="Server"/>
<Menu id="replSet">
@@ -565,8 +570,8 @@
<Text id="maxObjectSize" field="true"/>
</Div>
</Zone>
- </org.mongo.jmongob.ReplSetPanel>
- <org.mongo.jmongob.RouterPanel id="routerPanel">
+ </com.edgytech.jmongobrowser.ReplSetPanel>
+ <com.edgytech.jmongobrowser.RouterPanel id="routerPanel">
<MenuBar id="menu" zone="NORTH" minHeight="50" prefHeight="50">
<Text id="icon" icon="superman_icon.png" iconGroup="icons" toolTipText="MongoS router"/>
<Menu id="router" label="MongoS">
@@ -592,7 +597,7 @@
<TextArea id="regenServers" label="Servers" rows="10" columns="50" editable="true" toolTipText="List of servers containing the data, one by line, in format host:port/shardName. You must provide at least one available server per shard." nonEmpty="true"/>
<TextField id="regenDB" label="Database" toolTipText="Database to scan" nonEmpty="true"/>
<TextField id="regenCollection" label="Collection" toolTipText="Collection to scan" nonEmpty="true"/>
- <org.mongo.jmongob.DocBuilderField id="regenShardKey" label="Sharding Key" nonEmpty="true"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="regenShardKey" label="Sharding Key" nonEmpty="true"/>
<CheckBox id="regenKeyUnique" label="Unique Key" toolTipText="Whether sharding key is unique" value="false"/>
</FormDialog>
<FormDialog id="regenRSList" label="Replica Set List" okLabel="Next">
@@ -610,27 +615,27 @@
<Text id="address" field="true"/>
</Div>
</Zone>
- </org.mongo.jmongob.RouterPanel>
- <org.mongo.jmongob.EditBinaryDialog>
+ </com.edgytech.jmongobrowser.RouterPanel>
+ <com.edgytech.jmongobrowser.EditBinaryDialog>
<IntSpinner id="size"/>
- </org.mongo.jmongob.EditBinaryDialog>
- <org.mongo.jmongob.EditBooleanDialog>
+ </com.edgytech.jmongobrowser.EditBinaryDialog>
+ <com.edgytech.jmongobrowser.EditBooleanDialog>
<CheckBox id="value" label="True"/>
- </org.mongo.jmongob.EditBooleanDialog>
- <org.mongo.jmongob.EditCodeDialog>
+ </com.edgytech.jmongobrowser.EditBooleanDialog>
+ <com.edgytech.jmongobrowser.EditCodeDialog>
<TextField id="value" label="Code"/>
<TextField id="scope"/>
- </org.mongo.jmongob.EditCodeDialog>
- <org.mongo.jmongob.EditDateDialog>
+ </com.edgytech.jmongobrowser.EditCodeDialog>
+ <com.edgytech.jmongobrowser.EditDateDialog>
<DateSpinner id="value" label="Date"/>
- </org.mongo.jmongob.EditDateDialog>
- <org.mongo.jmongob.EditDoubleDialog>
+ </com.edgytech.jmongobrowser.EditDateDialog>
+ <com.edgytech.jmongobrowser.EditDoubleDialog>
<DoubleSpinner id="value"/>
- </org.mongo.jmongob.EditDoubleDialog>
- <org.mongo.jmongob.EditLongDialog>
+ </com.edgytech.jmongobrowser.EditDoubleDialog>
+ <com.edgytech.jmongobrowser.EditLongDialog>
<LongSpinner id="value"/>
- </org.mongo.jmongob.EditLongDialog>
- <org.mongo.jmongob.EditObjectIdDialog>
+ </com.edgytech.jmongobrowser.EditLongDialog>
+ <com.edgytech.jmongobrowser.EditObjectIdDialog>
<Text value="Fill in either a String, or values, or leave blank to auto-generate"/>
<TextField id="string" toolTipText="A 24 character string describing the id"/>
<IntSpinner id="time" toolTipText="Creation time in second"/>
@@ -641,33 +646,33 @@
<Text id="currentInc" field="true"/>
<Text value="Add a namespace to make a DBRef"/>
<TextField id="namespace" toolTipText="Namespace identifying the collection of the reference"/>
- </org.mongo.jmongob.EditObjectIdDialog>
- <org.mongo.jmongob.EditPatternDialog>
+ </com.edgytech.jmongobrowser.EditObjectIdDialog>
+ <com.edgytech.jmongobrowser.EditPatternDialog>
<TextField id="value"/>
- </org.mongo.jmongob.EditPatternDialog>
- <org.mongo.jmongob.EditStringDialog>
+ </com.edgytech.jmongobrowser.EditPatternDialog>
+ <com.edgytech.jmongobrowser.EditStringDialog>
<TextField id="value"/>
- </org.mongo.jmongob.EditStringDialog>
- <org.mongo.jmongob.EditTimestampDialog>
+ </com.edgytech.jmongobrowser.EditStringDialog>
+ <com.edgytech.jmongobrowser.EditTimestampDialog>
<IntSpinner id="time"/>
<IntSpinner id="increment"/>
- </org.mongo.jmongob.EditTimestampDialog>
- <org.mongo.jmongob.EditUuidDialog>
+ </com.edgytech.jmongobrowser.EditTimestampDialog>
+ <com.edgytech.jmongobrowser.EditUuidDialog>
<TextField id="value"/>
- </org.mongo.jmongob.EditUuidDialog>
- <org.mongo.jmongob.DocBuilderDialog id="docBuilderDialog">
+ </com.edgytech.jmongobrowser.EditUuidDialog>
+ <com.edgytech.jmongobrowser.DocBuilderDialog id="docBuilderDialog">
<Scroller fixedSize="600;400">
<Zone>
<Div id="div" zone="NORTH"/>
</Zone>
</Scroller>
- </org.mongo.jmongob.DocBuilderDialog>
- </org.mongo.jmongob.GlobalStore>
+ </com.edgytech.jmongobrowser.DocBuilderDialog>
+ </com.edgytech.jmongobrowser.GlobalStore>
<Frame id="frame" title="JMongoBrowser" masterFrame="true" menuId="mainmenu" icon="mongo_leaf_32.png" iconGroup="icons" contexts="default;Connect" preferredSize="1100;700" bgColor="255;255;255">
- <org.mongo.jmongob.MainMenu id="mainMenu" start="start">
+ <com.edgytech.jmongobrowser.MainMenu id="mainMenu" start="start">
<Menu id="file" alt="f">
<MenuItem id="connect" alt="c" key="k" keyMod="cmd" call="connect">
- <org.mongo.jmongob.ConnectDialog id="connectDialog">
+ <com.edgytech.jmongobrowser.ConnectDialog id="connectDialog">
<Text value="Either provide a URI ..."/>
<TextField id="uri" label="URI" toolTipText="Enter URI of mongo dbs like 'mongodb://...'"/>
<Text value="Or the settings below"/>
@@ -685,7 +690,7 @@
<CheckBox id="autoConnectRetry" value="false" toolTipText="If true, then driver will keep retrying to connect to the server in case of connection failure"/>
<CheckBox id="safe" label="Safe Writes" value="true" toolTipText="Sets the global WriteConcern as SAFE, which means that writes are acknowledged by the server"/>
</Div>
- </org.mongo.jmongob.ConnectDialog>
+ </com.edgytech.jmongobrowser.ConnectDialog>
</MenuItem>
<MenuSeparator/>
<MenuItem id="exit" label="Quit" alt="q" key="q" keyMod="cmd" call="exit"/>
@@ -694,7 +699,7 @@
<MenuItem id="importFile" alt="i" call="importFile"/>
<MenuSeparator/>
<MenuItem id="preferences" alt="p" key="comma" keyMod="cmd">
- <org.mongo.jmongob.AppPreferences id="prefDialog" start="start" buttons="OK_CANCEL_RESET">
+ <com.edgytech.jmongobrowser.AppPreferences id="prefDialog" start="start" buttons="OK_CANCEL_RESET">
<TabbedDiv id="optionTabs">
<Div id="general" gap="true">
<Div id="view" gap="true" titled="true">
@@ -712,20 +717,20 @@
</Div>
</TabbedDiv>
<Text value="* setting requires an application restart."/>
- </org.mongo.jmongob.AppPreferences>
+ </com.edgytech.jmongobrowser.AppPreferences>
</MenuItem>
</Menu>
<Menu id="help" alt="h">
<MenuItem id="about" alt="a">
- <InfoDialog signIcon="edgytech-small.png" signIconGroup="etIcons" signBorderColor="128;128;128" text="&lt;html&gt;JMongoBrowser v1.1.2&lt;br&gt;By Edgytech / Antoine Girbal"/>
+ <InfoDialog signIcon="edgytech-small.png" signIconGroup="etIcons" signBorderColor="128;128;128" text="&lt;html&gt;JMongoBrowser&lt;br&gt;By Edgytech / Antoine Girbal"/>
</MenuItem>
</Menu>
- </org.mongo.jmongob.MainMenu>
+ </com.edgytech.jmongobrowser.MainMenu>
<Zone id="mainZone" bgColor="255;255;255">
-<!-- <org.mongo.jmongob.MainToolBar id="mainToolBar" zone="NORTH" minHeight="50" prefHeight="50" start="start" stop="stop" contexts="Connect">
+<!-- <com.edgytech.jmongobrowser.MainToolBar id="mainToolBar" zone="NORTH" minHeight="50" prefHeight="50" start="start" stop="stop" contexts="Connect">
<ToolBarSeparator/>
<MemoryBar id="memBar" focusable="false" maximumSize="120;-1"/>
- </org.mongo.jmongob.MainToolBar> -->
+ </com.edgytech.jmongobrowser.MainToolBar> -->
<SplitPane axis="X" zone="CENTER" resizeWeight="0.2" bgColor="255;255;255">
<Scroller id="treeScroll" preferredSize="125;-1" maximumSize="125;-1" verticalSpeed="50">
<Tree id="tree" label="Mongo Instances" bgColor="255;255;255">
@@ -736,17 +741,17 @@
</Scroller>
<SplitPane axis="Y" resizeWeight="0.3">
<Scroller preferredSize="-1;300">
- <org.mongo.jmongob.Workspace id="workspace" bgColor="255;255;255"/>
+ <com.edgytech.jmongobrowser.Workspace id="workspace" bgColor="255;255;255"/>
</Scroller>
<TabbedDiv id="tabbedResult" preferredSize="-1;700" layout="SCROLL" bgColor="255;255;255" opaque="false"/>
</SplitPane>
</SplitPane>
<Div id="jobDiv" axis="X" gap="true" zone="SOUTH" bgColor="255;255;255">
<Text value="Jobs:"/>
<Scroller>
- <org.mongo.jmongob.JobBar id="jobBar" axis="X" preferredSize="-1;30" bgColor="255;255;255" opaque="false"/>
+ <com.edgytech.jmongobrowser.JobBar id="jobBar" axis="X" preferredSize="-1;30" bgColor="255;255;255" opaque="false"/>
</Scroller>
</Div>
</Zone>
</Frame>
-</org.mongo.jmongob.JMongoBrowser>
+</com.edgytech.jmongobrowser.JMongoBrowser>
View
2 resource/xml/dbNode.xml
@@ -21,4 +21,4 @@
<MenuItem id="eval" bind="globalStore.dbPanel.eval"/>
<MenuItem id="options" bind="globalStore.dbPanel.menu.options"/>
</PopUpMenu>
-</TreeNodeLabel>
+</TreeNodeLabel>
View
4 resource/xml/docView.xml
@@ -32,7 +32,7 @@
<Menu id="document" enabled="false">
<MenuItem id="update" call="update" showDialog="false">
<FormDialog>
- <org.mongo.jmongob.DocBuilderField id="upUpdate" label="Update" toolTipText="Update to apply to document, in JSON format"/>
+ <com.edgytech.jmongobrowser.DocBuilderField id="upUpdate" label="Update" toolTipText="Update to apply to document, in JSON format"/>
<CheckBox id="upMulti" label="Multi" toolTipText="Update all matched documents"/>
</FormDialog>
</MenuItem>
@@ -50,4 +50,4 @@
<Tree id="docTree" label="Click on any JSON document to view" zone="NORTH"/>
</Zone>
</Scroller>
-</Zone>
+</Zone>
View
2 resource/xml/indexNode.xml
@@ -13,4 +13,4 @@
<MenuItem id="refresh" bind="globalStore.indexPanel.menu.refresh"/>
<MenuItem id="drop" bind="globalStore.indexPanel.menu.drop"/>
</PopUpMenu>
-</TreeNodeLabel>
+</TreeNodeLabel>
View
2 resource/xml/replSetNode.xml
@@ -12,4 +12,4 @@
<PopUpMenu>
<MenuItem id="refresh" bind="globalStore.replSetPanel.menu.replSet.refresh"/>
</PopUpMenu>
-</TreeNodeLabel>
+</TreeNodeLabel>
View
2 resource/xml/routerNode.xml
@@ -12,4 +12,4 @@
<PopUpMenu>
<MenuItem id="refresh" bind="globalStore.routerPanel.menu.router.refresh"/>
</PopUpMenu>
-</TreeNodeLabel>
+</TreeNodeLabel>
View
2 resource/xml/serverNode.xml
@@ -16,4 +16,4 @@
<MenuSeparator/>
<MenuItem id="rsStepDown" label="Step Down" bind="globalStore.serverPanel.menu.rsStepDown"/>
</PopUpMenu>
-</TreeNodeLabel>
+</TreeNodeLabel>
View
2 src/org/mongo/jmongob/AppPreferences.java → ...dgytech/jmongobrowser/AppPreferences.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.CheckBox;
import com.edgytech.swingfast.FormDialog;
View
2 src/org/mongo/jmongob/AutoUpdateDialog.java → ...ytech/jmongobrowser/AutoUpdateDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.FormDialog;
View
2 src/org/mongo/jmongob/BasePanel.java → ...com/edgytech/jmongobrowser/BasePanel.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.Text;
import com.edgytech.swingfast.Zone;
View
2 src/org/mongo/jmongob/BaseTreeNode.java → .../edgytech/jmongobrowser/BaseTreeNode.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.SwingFast;
import com.edgytech.swingfast.TreeNodeLabel;
View
2 src/org/mongo/jmongob/CmdField.java → src/com/edgytech/jmongobrowser/CmdField.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.mongodb.BasicDBObject;
import com.mongodb.CommandResult;
View
2 src/org/mongo/jmongob/CollectionNode.java → ...dgytech/jmongobrowser/CollectionNode.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.SwingFast;
import com.mongodb.CommandResult;
View
15 src/org/mongo/jmongob/CollectionPanel.java → ...gytech/jmongobrowser/CollectionPanel.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.ComboBox;
import com.edgytech.swingfast.ConfirmDialog;
@@ -32,7 +32,7 @@
import java.util.List;
import java.util.logging.Level;
import javax.swing.JPanel;
-import org.mongo.jmongob.CollectionPanel.Item;
+import com.edgytech.jmongobrowser.CollectionPanel.Item;
/**
*
@@ -85,6 +85,7 @@
mrOut,
mrOutDB,
mrOutSharded,
+ mrNonAtomic,
mrLimit,
mrJSMode,
group,
@@ -317,16 +318,18 @@ public void mapReduce() {
if (limit > 0) {
cmd.setLimit(limit);
}
- boolean jsMode = getBooleanFieldValue(Item.mrJSMode);
- if (jsMode) {
+
+ if (getBooleanFieldValue(Item.mrJSMode)) {
cmd.addExtraOption("jsMode", true);
}
final BasicDBObject cmdobj = (BasicDBObject) cmd.toDBObject();
- boolean shardedOut = getBooleanFieldValue(Item.mrOutSharded);
- if (shardedOut) {
+ if (getBooleanFieldValue(Item.mrOutSharded)) {
((BasicDBObject)cmdobj.get("out")).put("sharded", true);
}
+ if (getBooleanFieldValue(Item.mrNonAtomic)) {
+ ((BasicDBObject)cmdobj.get("out")).put("nonAtomic", true);
+ }
new DbJob() {
View
2 src/org/mongo/jmongob/ConnectDialog.java → ...edgytech/jmongobrowser/ConnectDialog.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.FormDialog;
import com.mongodb.MongoOptions;
View
2 src/org/mongo/jmongob/DBObjectWrapper.java → ...gytech/jmongobrowser/DBObjectWrapper.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.mongodb.BasicDBObject;
import com.mongodb.DBObject;
View
4 src/org/mongo/jmongob/DbJob.java → src/com/edgytech/jmongobrowser/DbJob.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.Div;
import com.edgytech.swingfast.EnumListener;
@@ -16,7 +16,7 @@
import java.util.Iterator;
import java.util.logging.Level;
import java.util.logging.Logger;
-import org.mongo.jmongob.DbJob.Item;
+import com.edgytech.jmongobrowser.DbJob.Item;
import org.xml.sax.SAXException;
/**
View
2 src/org/mongo/jmongob/DbNode.java → src/com/edgytech/jmongobrowser/DbNode.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.SwingFast;
import com.mongodb.CommandResult;
View
4 src/org/mongo/jmongob/DbPanel.java → src/com/edgytech/jmongobrowser/DbPanel.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.EnumListener;
import com.edgytech.swingfast.XmlComponentUnit;
@@ -19,7 +19,7 @@
import java.io.IOException;
import javax.swing.JPanel;
import org.bson.types.Code;
-import org.mongo.jmongob.DbPanel.Item;
+import com.edgytech.jmongobrowser.DbPanel.Item;
/**
*
View
2 src/org/mongo/jmongob/DocBuilderDialog.java → ...ytech/jmongobrowser/DocBuilderDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.FormDialog;
import com.edgytech.swingfast.Scroller;
View
2 src/org/mongo/jmongob/DocBuilderField.java → ...gytech/jmongobrowser/DocBuilderField.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.BoxPanel;
import com.edgytech.swingfast.Common;
View
2 src/org/mongo/jmongob/DocField.java → src/com/edgytech/jmongobrowser/DocField.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.Text;
import com.mongodb.DBObject;
View
2 src/org/mongo/jmongob/DocFieldArray.java → ...edgytech/jmongobrowser/DocFieldArray.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.mongodb.BasicDBList;
import com.mongodb.DBObject;
View
2 src/org/mongo/jmongob/DocFieldObject.java → ...dgytech/jmongobrowser/DocFieldObject.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.BoxPanel;
import com.edgytech.swingfast.Div;
View
4 src/org/mongo/jmongob/DocFieldText.java → .../edgytech/jmongobrowser/DocFieldText.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.BoxPanel;
import com.edgytech.swingfast.Div;
@@ -21,7 +21,7 @@
import org.bson.types.Code;
import org.bson.types.CodeWScope;
import org.bson.types.ObjectId;
-import org.mongo.jmongob.DocFieldText.Item;
+import com.edgytech.jmongobrowser.DocFieldText.Item;
import org.xml.sax.SAXException;
/**
View
2 src/org/mongo/jmongob/DocView.java → src/com/edgytech/jmongobrowser/DocView.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.EnumListener;
import com.edgytech.swingfast.Menu;
View
2 src/org/mongo/jmongob/EditBinaryDialog.java → ...ytech/jmongobrowser/EditBinaryDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import org.bson.types.Binary;
View
2 src/org/mongo/jmongob/EditBooleanDialog.java → ...tech/jmongobrowser/EditBooleanDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
/**
*
View
2 src/org/mongo/jmongob/EditCodeDialog.java → ...dgytech/jmongobrowser/EditCodeDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.TextField;
import com.mongodb.BasicDBObject;
View
2 src/org/mongo/jmongob/EditDateDialog.java → ...dgytech/jmongobrowser/EditDateDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.DateField;
import java.util.Date;
View
2 src/org/mongo/jmongob/EditDoubleDialog.java → ...ytech/jmongobrowser/EditDoubleDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
/**
*
View
2 src/org/mongo/jmongob/EditFieldDialog.java → ...gytech/jmongobrowser/EditFieldDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.AppUtils;
import com.edgytech.swingfast.FormDialog;
View
2 src/org/mongo/jmongob/EditLongDialog.java → ...dgytech/jmongobrowser/EditLongDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
/**
*
View
4 ...org/mongo/jmongob/EditObjectIdDialog.java → ...ech/jmongobrowser/EditObjectIdDialog.java
@@ -2,15 +2,15 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.EnumListener;
import com.edgytech.swingfast.XmlComponentUnit;
import com.mongodb.DBRef;
import com.mongodb.DBRefBase;
import javax.swing.JDialog;
import org.bson.types.ObjectId;
-import org.mongo.jmongob.EditObjectIdDialog.Item;
+import com.edgytech.jmongobrowser.EditObjectIdDialog.Item;
/**
*
View
2 src/org/mongo/jmongob/EditPatternDialog.java → ...tech/jmongobrowser/EditPatternDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.FieldChecker;
import com.edgytech.swingfast.XmlUnitField;
View
2 src/org/mongo/jmongob/EditStringDialog.java → ...ytech/jmongobrowser/EditStringDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
/**
*
View
2 ...rg/mongo/jmongob/EditTimestampDialog.java → ...ch/jmongobrowser/EditTimestampDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import org.bson.types.BSONTimestamp;
View
2 src/org/mongo/jmongob/EditUuidDialog.java → ...dgytech/jmongobrowser/EditUuidDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import java.util.UUID;
View
2 src/org/mongo/jmongob/ErrorDialog.java → ...m/edgytech/jmongobrowser/ErrorDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.InfoDialog;
import com.mongodb.MongoException;
View
4 src/org/mongo/jmongob/ExportDialog.java → .../edgytech/jmongobrowser/ExportDialog.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package org.mongo.jmongob;
+package com.edgytech.jmongobrowser;
import com.edgytech.swingfast.FieldChecker;
import com.edgytech.swingfast.FormDialog;
@@ -13,7 +13,7 @@
import java.io.FileNotFoundException;
import java.io.FileOutputStream;