Browse files

renaming to umongo

  • Loading branch information...
1 parent 4fadcb6 commit 3f0c09f298f8ea657be196cac2ed7284d39633fe @agirbal committed May 31, 2012
Showing with 283 additions and 287 deletions.
  1. +1 −1 README
  2. +3 −3 build.xml
  3. +3 −3 nbproject/build-impl.xml
  4. +4 −4 nbproject/genfiles.properties
  5. +3 −3 nbproject/project.properties
  6. +1 −1 nbproject/project.xml
  7. +1 −1 package/issuesToNotes.sh
  8. +10 −10 package/l4j/config.xml
  9. +1 −1 package/linux/{launchJMongoBrowser.sh → launch-umongo.sh}
  10. +1 −1 package/osx/{launchJMongoBrowser.command → launch-umongo.command}
  11. +4 −4 package/osx/package.sh
  12. +4 −4 package/osx/{JMongoBrowser.app → umongo.app}/Contents/Info.plist
  13. 0 package/osx/{JMongoBrowser.app → umongo.app}/Contents/MacOS/JavaApplicationStub
  14. 0 package/osx/{JMongoBrowser.app → umongo.app}/Contents/PkgInfo
  15. 0 package/osx/{JMongoBrowser.app → umongo.app}/Contents/Resources/mongo.icns
  16. +2 −2 package/package.sh
  17. +118 −118 resource/xml/{JMongoBrowser.xml → umongo.xml}
  18. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/AppPreferences.java
  19. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/AutoUpdateDialog.java
  20. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/BasePanel.java
  21. +2 −2 src/com/edgytech/{jmongobrowser → umongo}/BaseTreeNode.java
  22. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/CmdField.java
  23. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/CollectionNode.java
  24. +11 −11 src/com/edgytech/{jmongobrowser → umongo}/CollectionPanel.java
  25. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/ConnectDialog.java
  26. +7 −7 src/com/edgytech/{jmongobrowser → umongo}/DbJob.java
  27. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/DbNode.java
  28. +5 −5 src/com/edgytech/{jmongobrowser → umongo}/DbPanel.java
  29. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/DocBuilderDialog.java
  30. +2 −2 src/com/edgytech/{jmongobrowser → umongo}/DocBuilderField.java
  31. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/DocField.java
  32. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/DocFieldArray.java
  33. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/DocFieldObject.java
  34. +3 −3 src/com/edgytech/{jmongobrowser → umongo}/DocFieldText.java
  35. +5 −5 src/com/edgytech/{jmongobrowser → umongo}/DocView.java
  36. +7 −7 src/com/edgytech/{jmongobrowser → umongo}/DocumentFieldMenu.java
  37. +5 −5 src/com/edgytech/{jmongobrowser → umongo}/DocumentMenu.java
  38. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/EditBinaryDialog.java
  39. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/EditBooleanDialog.java
  40. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/EditCodeDialog.java
  41. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/EditDateDialog.java
  42. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/EditDoubleDialog.java
  43. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/EditFieldDialog.java
  44. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/EditLongDialog.java
  45. +2 −2 src/com/edgytech/{jmongobrowser → umongo}/EditObjectIdDialog.java
  46. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/EditPatternDialog.java
  47. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/EditStringDialog.java
  48. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/EditTimestampDialog.java
  49. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/EditUuidDialog.java
  50. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/ErrorDialog.java
  51. +2 −2 src/com/edgytech/{jmongobrowser → umongo}/ExportDialog.java
  52. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/ExportFile.java
  53. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/GlobalStore.java
  54. +2 −2 src/com/edgytech/{jmongobrowser → umongo}/ImportDialog.java
  55. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/IndexNode.java
  56. +3 −3 src/com/edgytech/{jmongobrowser → umongo}/IndexPanel.java
  57. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/JobBar.java
  58. +6 −6 src/com/edgytech/{jmongobrowser → umongo}/MainMenu.java
  59. +2 −2 src/com/edgytech/{jmongobrowser → umongo}/MainToolBar.java
  60. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/MongoNode.java
  61. +5 −5 src/com/edgytech/{jmongobrowser → umongo}/MongoPanel.java
  62. +2 −2 src/com/edgytech/{jmongobrowser → umongo}/MongoUtils.java
  63. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/OptionDialog.java
  64. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/ReplSetNode.java
  65. +3 −3 src/com/edgytech/{jmongobrowser → umongo}/ReplSetPanel.java
  66. +2 −2 src/com/edgytech/{jmongobrowser → umongo}/Resource.java
  67. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/RouterNode.java
  68. +4 −4 src/com/edgytech/{jmongobrowser → umongo}/RouterPanel.java
  69. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/ServerNode.java
  70. +3 −3 src/com/edgytech/{jmongobrowser → umongo}/ServerPanel.java
  71. +2 −2 src/com/edgytech/{jmongobrowser → umongo}/TreeNodeDocument.java
  72. +2 −2 src/com/edgytech/{jmongobrowser → umongo}/TreeNodeDocumentField.java
  73. +7 −11 src/com/edgytech/{jmongobrowser/JMongoBrowser.java → umongo/UMongo.java}
  74. +1 −1 src/com/edgytech/{jmongobrowser → umongo}/Workspace.java
View
2 README
@@ -1,6 +1,6 @@
Right now, you can only build the app using the netbeans project.
-All binaries are available in GitHub or from http://www.edgytech.com/jmongobrowser/
+All binaries are available in GitHub or from http://www.edgytech.com/umongo/
Will put together build script soon :)
AG
View
6 build.xml
@@ -7,8 +7,8 @@
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
-<project name="JMongoBrowser" default="default" basedir=".">
- <description>Builds, tests, and runs the project JMongoBrowser.</description>
+<project name="umongo" default="default" basedir=".">
+ <description>Builds, tests, and runs the project umongo.</description>
<import file="nbproject/build-impl.xml"/>
<!--
@@ -59,7 +59,7 @@
An example of overriding the target for project execution could look like this:
- <target name="run" depends="JMongoBrowser-impl.jar">
+ <target name="run" depends="umongo-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
View
6 nbproject/build-impl.xml
@@ -19,7 +19,7 @@ is divided into following sections:
- cleanup
-->
-<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">
+<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="umongo-impl">
<fail message="Please build using Ant 1.8.0 or higher.">
<condition>
<not>
@@ -563,7 +563,7 @@ is divided into following sections:
<delete file="${built-jar.properties}" quiet="true"/>
</target>
<target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
- <echo level="warn" message="Cycle detected: JMongoBrowser was already built"/>
+ <echo level="warn" message="Cycle detected: umongo was already built"/>
</target>
<target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
<mkdir dir="${build.dir}"/>
@@ -1019,7 +1019,7 @@ is divided into following sections:
<delete file="${built-clean.properties}" quiet="true"/>
</target>
<target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
- <echo level="warn" message="Cycle detected: JMongoBrowser was already built"/>
+ <echo level="warn" message="Cycle detected: umongo was already built"/>
</target>
<target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
<mkdir dir="${build.dir}"/>
View
8 nbproject/genfiles.properties
@@ -1,8 +1,8 @@
-build.xml.data.CRC32=0d6a653a
-build.xml.script.CRC32=9d7f4f72
+build.xml.data.CRC32=79151be6
+build.xml.script.CRC32=47015eeb
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=0d6a653a
-nbproject/build-impl.xml.script.CRC32=09b2de18
+nbproject/build-impl.xml.data.CRC32=79151be6
+nbproject/build-impl.xml.script.CRC32=10ef37f7
nbproject/build-impl.xml.stylesheet.CRC32=fcddb364@1.50.1.46
View
6 nbproject/project.properties
@@ -3,7 +3,7 @@ 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
+application.title=umongo
application.vendor=antoine
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
@@ -23,7 +23,7 @@ debug.test.classpath=\
${run.test.classpath}
# This directory is removed when the project is cleaned:
dist.dir=dist
-dist.jar=${dist.dir}/JMongoBrowser.jar
+dist.jar=${dist.dir}/umongo.jar
dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=
excludes=
@@ -60,7 +60,7 @@ javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
-main.class=com.edgytech.jmongobrowser.JMongoBrowser
+main.class=com.edgytech.umongo.UMongo
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false
View
2 nbproject/project.xml
@@ -3,7 +3,7 @@
<type>org.netbeans.modules.java.j2seproject</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
- <name>JMongoBrowser</name>
+ <name>umongo</name>
<source-roots>
<root id="src.dir"/>
<root id="resource.dir"/>
View
2 package/issuesToNotes.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-grep "agirbal/JMongoBrowser/issues/[0-9]\+" $1 | sed -e s/'.*<a href="\/agirbal\/JMongoBrowser\/issues\/\(.*\)">\(.*\)<\/a>.*'/'* [issue\1](https:\/\/github.com\/agirbal\/JMongoBrowser\/issues\/\1): \2'/
+grep "agirbal/umongo/issues/[0-9]\+" $1 | sed -e s/'.*<a href="\/agirbal\/umongo\/issues\/\(.*\)">\(.*\)<\/a>.*'/'* [issue\1](https:\/\/github.com\/agirbal\/umongo\/issues\/\1): \2'/
View
20 package/l4j/config.xml
@@ -1,12 +1,12 @@
<!-- Bold elements are required -->
<launch4jConfig>
<headerType>gui</headerType>
- <outfile>JMongoBrowser.exe</outfile>
- <jar>./JMongoBrowser.jar</jar>
+ <outfile>umongo.exe</outfile>
+ <jar>./umongo.jar</jar>
<dontWrapJar>true</dontWrapJar>
- <errTitle>JMongoBrowser error</errTitle>
+ <errTitle>umongo error</errTitle>
<downloadUrl>http://java.com/download</downloadUrl>
- <supportUrl>http://10gen.com</supportUrl>
+ <supportUrl>http://www.edgytech.com</supportUrl>
<cmdLine></cmdLine>
<priority>normal</priority>
<customProcName>false</customProcName>
@@ -21,7 +21,7 @@
... -->
<classPath>
- <mainClass>org.mongo.jmongob.JMongoBrowser</mainClass>
+ <mainClass>com.edgytech.umongo.UMongo</mainClass>
<cp>./lib/*.jar</cp>
</classPath>
@@ -42,14 +42,14 @@
<versionInfo>
<fileVersion>1.0.1.0</fileVersion>
<txtFileVersion>win_1.0.1.0</txtFileVersion>
- <fileDescription>JMongoBrowser</fileDescription>
+ <fileDescription>umongo</fileDescription>
<copyright>@10gen.com All rights reserved</copyright>
<productVersion>1.0.1.0</productVersion>
<txtProductVersion>win_1.0.1.0</txtProductVersion>
- <productName>JMongoBrowser</productName>
- <companyName>10gen</companyName>
- <internalName>JMongoBrowser</internalName>
- <originalFilename>JMongoBrowser.exe</originalFilename>
+ <productName>umongo</productName>
+ <companyName>EdgyTech</companyName>
+ <internalName>umongo</internalName>
+ <originalFilename>umongo.exe</originalFilename>
</versionInfo>
<!-- <messages>
<startupErr>text</startupErr>
View
2 package/linux/launchJMongoBrowser.sh → package/linux/launch-umongo.sh
@@ -6,5 +6,5 @@ if [ -z $minHeap ]; then minHeap=64; fi
if [ -z $maxHeap ]; then maxHeap=512; fi
# sometimes runs better with opengl forced, but also has visual bugs: -Dsun.java2d.opengl=true
-java -classpath './lib/*.jar' -Xms${minHeap}M -Xmx${maxHeap}M -Djava.util.logging.config.file=./logging.properties -jar JMongoBrowser.jar
+java -classpath './lib/*.jar' -Xms${minHeap}M -Xmx${maxHeap}M -Djava.util.logging.config.file=./logging.properties -jar umongo.jar
View
2 package/osx/launchJMongoBrowser.command → package/osx/launch-umongo.command
@@ -5,5 +5,5 @@ cd $dir
if [ -z $minHeap ]; then minHeap=64; fi
if [ -z $maxHeap ]; then maxHeap=512; fi
-java -classpath './lib/*.jar' -Xms${minHeap}M -Xmx${maxHeap}M $maxHeapOpt -Dapple.laf.useScreenMenuBar=true -Xdock:name="JMongoBrowser" -Xdock:icon="mongo_leaf.png" -Djava.util.logging.config.file=./logging.properties -jar JMongoBrowser.jar
+java -classpath './lib/*.jar' -Xms${minHeap}M -Xmx${maxHeap}M $maxHeapOpt -Dapple.laf.useScreenMenuBar=true -Xdock:name="umongo" -Xdock:icon="mongo_leaf.png" -Djava.util.logging.config.file=./logging.properties -jar umongo.jar
View
8 package/osx/package.sh
@@ -12,16 +12,16 @@ cp ../dist/lib/{SwingFast,mongo}.jar ../lib/
function package_build {
os=$1
arch=$2
- appdir=JMongoBrowser-${os}-${arch}_${vdash}
+ appdir=umongo-${os}-${arch}_${vdash}
echo Creating folder $appdir
rm -rf $appdir ${appdir}.zip
mkdir $appdir
- cp -r ${os}/JMongoBrowser.app $appdir
- app=${appdir}/JMongoBrowser.app
+ cp -r ${os}/umongo.app $appdir
+ app=${appdir}/umongo.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 ../dist/umongo.jar $app/Contents/Resources/Java/
cp ../lib/*.jar $app/Contents/Resources/Java/
cp ./common-files/* $app/Contents/Resources/Java/
View
8 ...osx/JMongoBrowser.app/Contents/Info.plist → package/osx/umongo.app/Contents/Info.plist
@@ -3,9 +3,9 @@
<plist version="0.9">
<dict>
<key>CFBundleName</key>
- <string>JMongoBrowser</string>
+ <string>umongo</string>
<key>CFBundleIdentifier</key>
- <string>JMongoBrowser.class</string>
+ <string>umongo.class</string>
<key>CFBundleVersion</key>
<string>100.0</string>
<key>CFBundleAllowMixedLocalizations</key>
@@ -29,12 +29,12 @@
<key>VMOptions</key>
<string>-Xms10m -Xmx256m</string>
<key>MainClass</key>
- <string>com.edgytech.jmongobrowser.JMongoBrowser</string>
+ <string>com.edgytech.umongo.UMongo</string>
<key>JVMVersion</key>
<string>1.6+</string>
<key>ClassPath</key>
<array>
- <string>$JAVAROOT/JMongoBrowser.jar</string>
+ <string>$JAVAROOT/umongo.jar</string>
<string>$JAVAROOT/SwingFast.jar</string>
<string>$JAVAROOT/mongo.jar</string>
<string>$JAVAROOT/bson.jar</string>
View
0 ...er.app/Contents/MacOS/JavaApplicationStub → ...go.app/Contents/MacOS/JavaApplicationStub
File renamed without changes.
View
0 ...ge/osx/JMongoBrowser.app/Contents/PkgInfo → package/osx/umongo.app/Contents/PkgInfo
File renamed without changes.
View
0 ...Browser.app/Contents/Resources/mongo.icns → .../umongo.app/Contents/Resources/mongo.icns
File renamed without changes.
View
4 package/package.sh
@@ -11,14 +11,14 @@ cp ../dist/lib/{SwingFast,mongo}.jar ../lib/
function package_build {
os=$1
arch=$2
- appdir=JMongoBrowser-${os}-${arch}_${vdash}
+ appdir=umongo-${os}-${arch}_${vdash}
echo Creating folder $appdir
rm -rf $appdir ${appdir}.zip
mkdir $appdir
cp ./common-files/* $appdir/
cp ${os}/* $appdir/
- cp ../dist/JMongoBrowser.jar $appdir/
+ cp ../dist/umongo.jar $appdir/
mkdir $appdir/lib
cp ../lib/*.jar $appdir/lib/
View
236 resource/xml/JMongoBrowser.xml → resource/xml/umongo.xml
@@ -1,37 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Document : JMongoBrowser.xml
+ Document : UMongo.xml
Created on : January 31, 2011, 3:11 PM
Author : antoine
Description:
Purpose of the document follows.
-->
-<com.edgytech.jmongobrowser.JMongoBrowser id="jmongob" start="start" stop="stop">
+<com.edgytech.umongo.UMongo id="umongo" start="start" stop="stop">
<IconGroup id="icons" folder="img" resource="true"/>
<IconGroup id="etIcons" folder="com/edgytech/swingfast/img" resource="true"/>
- <com.edgytech.jmongobrowser.GlobalStore id="globalStore">
- <com.edgytech.jmongobrowser.DocumentMenu id="documentMenu">
+ <com.edgytech.umongo.GlobalStore id="globalStore">
+ <com.edgytech.umongo.DocumentMenu id="documentMenu">
<MenuItem id="update" call="update" showDialog="false">
<FormDialog>
- <com.edgytech.jmongobrowser.DocBuilderField id="upUpdate" label="Update" toolTipText="Update to apply to document, in JSON format"/>
+ <com.edgytech.umongo.DocBuilderField id="upUpdate" label="Update" toolTipText="Update to apply to document, in JSON format"/>
</FormDialog>
</MenuItem>
<MenuItem id="remove" call="remove">
<ConfirmDialog text="Are you sure you want to remove this document?"/>
</MenuItem>
<MenuSeparator/>
<MenuItem id="copyValue" call="copyValue"/>
- </com.edgytech.jmongobrowser.DocumentMenu>
- <com.edgytech.jmongobrowser.DocumentFieldMenu id="documentFieldMenu">
+ </com.edgytech.umongo.DocumentMenu>
+ <com.edgytech.umongo.DocumentFieldMenu id="documentFieldMenu">
<MenuItem id="set" call="set"/>
<MenuItem id="unset" call="unset"/>
<MenuSeparator/>
<MenuItem id="copyField" call="copyField"/>
<MenuItem id="copyValue" call="copyValue"/>
- </com.edgytech.jmongobrowser.DocumentFieldMenu>
- <com.edgytech.jmongobrowser.OptionDialog id="optionDialog">
+ </com.edgytech.umongo.DocumentFieldMenu>
+ <com.edgytech.umongo.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"/>
@@ -53,28 +53,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>
- </com.edgytech.jmongobrowser.OptionDialog>
- <com.edgytech.jmongobrowser.ErrorDialog id="errorDialog">
+ </com.edgytech.umongo.OptionDialog>
+ <com.edgytech.umongo.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"/>
- </com.edgytech.jmongobrowser.ErrorDialog>
- <com.edgytech.jmongobrowser.AutoUpdateDialog id="autoUpdateDialog">
+ </com.edgytech.umongo.ErrorDialog>
+ <com.edgytech.umongo.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"/>
- </com.edgytech.jmongobrowser.AutoUpdateDialog>
- <com.edgytech.jmongobrowser.ExportDialog id="exportDialog">
+ </com.edgytech.umongo.AutoUpdateDialog>
+ <com.edgytech.umongo.ExportDialog id="exportDialog">
<FileSelectorField id="outputFile">
<FileSelectorDialog type="SAVE" mode="FILES_ONLY"/>
</FileSelectorField>
<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"/>
- </com.edgytech.jmongobrowser.ExportDialog>
- <com.edgytech.jmongobrowser.ImportDialog id="importDialog">
+ </com.edgytech.umongo.ExportDialog>
+ <com.edgytech.umongo.ImportDialog id="importDialog">
<FileSelectorField id="inputFile">
<FileSelectorDialog type="OPEN" mode="FILES_ONLY"/>
</FileSelectorField>
@@ -84,9 +84,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."/>
- </com.edgytech.jmongobrowser.ImportDialog>
+ </com.edgytech.umongo.ImportDialog>
<ConfirmDialog id="lockingOperationDialog" text="Are you sure you want to run this command? It can potentially lock the db for a long time."/>
- <com.edgytech.jmongobrowser.MongoPanel id="mongoPanel">
+ <com.edgytech.umongo.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">
@@ -106,7 +106,7 @@
<MenuSeparator/>
<MenuItem id="currentOps" call="currentOps">
<FormDialog>
- <com.edgytech.jmongobrowser.DocBuilderField id="currentOpsQuery" label="Query Filter" toolTipText="Optional, a query to filter operations. Use {'$all': 1} to also see internal commands."/>
+ <com.edgytech.umongo.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">
@@ -150,15 +150,15 @@
<Div zone="NORTH" gap="true" bgColor="255;255;255">
<Text id="version" label="Driver Version" field="true"/>
<Text id="queryOptions" field="true"/>
- <com.edgytech.jmongobrowser.DocField id="writeConcern"/>
+ <com.edgytech.umongo.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>
- </com.edgytech.jmongobrowser.MongoPanel>
- <com.edgytech.jmongobrowser.DbPanel id="dbPanel">
+ </com.edgytech.umongo.MongoPanel>
+ <com.edgytech.umongo.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">
@@ -183,7 +183,7 @@
<FormDialog>
<Text value="Input either a command name, or a JSON command"/>
<TextField id="commandStr" label="Command Name"/>
- <com.edgytech.jmongobrowser.DocBuilderField id="commandJson" label="JSON Command"/>
+ <com.edgytech.umongo.DocBuilderField id="commandJson" label="JSON Command"/>
<CheckBox id="commandHelp" label="Show Help"/>
</FormDialog>
</MenuItem>
@@ -234,13 +234,13 @@
</FileSelectorField>
<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"/>
- <com.edgytech.jmongobrowser.DocBuilderField id="uploadMetadata" label="Metadata" toolTipText="Optional, JSON object representing the file's metadata"/>
+ <com.edgytech.umongo.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"/>
- <com.edgytech.jmongobrowser.DocBuilderField id="downloadQuery" label="Query" toolTipText="Find the file using this query"/>
+ <com.edgytech.umongo.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"/>
<FileSelectorField id="downloadFilePath" label="Save As">
<FileSelectorDialog type="SAVE" selectionMode="FILES_ONLY"/>
@@ -250,7 +250,7 @@
<MenuItem id="deleteFile" call="deleteFile">
<FormDialog id="deleteFileDialog">
<Text value="Specify a query object or a file name"/>
- <com.edgytech.jmongobrowser.DocBuilderField id="deleteQuery" label="Query" toolTipText="Find the file using this query"/>
+ <com.edgytech.umongo.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>
@@ -284,18 +284,18 @@
<Div zone="NORTH" gap="true" bgColor="255;255;255">
<Text id="name" field="true"/>
<Text id="queryOptions" field="true"/>
- <com.edgytech.jmongobrowser.DocField id="writeConcern"/>
- <com.edgytech.jmongobrowser.CmdField id="stats" cmd="dbstats"/>
+ <com.edgytech.umongo.DocField id="writeConcern"/>
+ <com.edgytech.umongo.CmdField id="stats" cmd="dbstats"/>
</Div>
</Zone>
- </com.edgytech.jmongobrowser.DbPanel>
- <com.edgytech.jmongobrowser.CollectionPanel id="collectionPanel">
+ </com.edgytech.umongo.DbPanel>
+ <com.edgytech.umongo.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>
- <com.edgytech.jmongobrowser.DocBuilderField id="eiKeys" label="Index Keys" toolTipText="keys to index by, in JSON format" nonEmpty="true"/>
+ <com.edgytech.umongo.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"/>
@@ -323,9 +323,9 @@
<MenuItem id="statsCmd" label="Stats" call="stats"/>
<MenuItem id="group" call="group">
<FormDialog>
- <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}'/>
+ <com.edgytech.umongo.DocBuilderField id="grpKeys" label="Keys" toolTipText="Keys to group by, in JSON format" nonEmpty="true"/>
+ <com.edgytech.umongo.DocBuilderField id="grpQuery" label="Query" toolTipText="Query to filter the input, in JSON format"/>
+ <com.edgytech.umongo.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>
@@ -336,8 +336,8 @@
<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"/>
<Div id="input" titled="true">
- <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."/>
+ <com.edgytech.umongo.DocBuilderField id="mrQuery" label="Query" toolTipText="Query to filter the input, in JSON format"/>
+ <com.edgytech.umongo.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" titled="true">
@@ -352,76 +352,76 @@
</MenuItem>
<MenuItem id="geoNear" call="geoNear">
<FormDialog>
- <com.edgytech.jmongobrowser.DocBuilderField id="gnOrigin" label="Origin" toolTipText="Point of origin, in JSON format"/>
+ <com.edgytech.umongo.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"/>
- <com.edgytech.jmongobrowser.DocBuilderField id="gnQuery" label="Query" toolTipText="Query to filter the results by, in JSON format"/>
+ <com.edgytech.umongo.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)."/>
- <com.edgytech.jmongobrowser.DocBuilderField id="gnSearch" label="Search" toolTipText="Search criteria for geo haystack indexing, in JSON format"/>
+ <com.edgytech.umongo.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>
- <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"/>
+ <com.edgytech.umongo.DocBuilderField id="findQuery" label="Query" toolTipText="Query to find by, in JSON format"/>
+ <com.edgytech.umongo.DocBuilderField id="findFields" label="Fields" toolTipText="Fields to include in results, in JSON format"/>
+ <com.edgytech.umongo.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."/>
- <com.edgytech.jmongobrowser.DocBuilderField id="findHint" label="Hint" toolTipText="Object with keys that represent the index to use. Use '$natural' to force full scan."/>
+ <com.edgytech.umongo.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>
- <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"/>
+ <com.edgytech.umongo.DocBuilderField id="foQuery" label="Query" toolTipText="Query to find by, in JSON format"/>
+ <com.edgytech.umongo.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>
- <com.edgytech.jmongobrowser.DocBuilderField id="countQuery" label="Query" toolTipText="Query to find by, in JSON format"/>
+ <com.edgytech.umongo.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>
- <com.edgytech.jmongobrowser.DocBuilderField id="insertDoc" label="JSON Document" toolTipText="Document to insert in JSON format" nonEmpty="true"/>
+ <com.edgytech.umongo.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>
- <com.edgytech.jmongobrowser.DocBuilderField id="saveDoc" label="JSON Document" toolTipText="Document to save in JSON format" nonEmpty="true"/>
+ <com.edgytech.umongo.DocBuilderField id="saveDoc" label="JSON Document" toolTipText="Document to save in JSON format" nonEmpty="true"/>
</FormDialog>
</MenuItem>
<MenuItem id="update" call="update">
<FormDialog>
- <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"/>
+ <com.edgytech.umongo.DocBuilderField id="upQuery" label="Query" toolTipText="Query to match, in JSON format"/>
+ <com.edgytech.umongo.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>
- <com.edgytech.jmongobrowser.DocBuilderField id="removeQuery" label="Query" toolTipText="Query to remove by, in JSON format"/>
+ <com.edgytech.umongo.DocBuilderField id="removeQuery" label="Query" toolTipText="Query to remove by, in JSON format"/>
</FormDialog>
</MenuItem>
<MenuItem id="findAndModify" call="findAndModify">
<FormDialog>
- <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"/>
+ <com.edgytech.umongo.DocBuilderField id="famQuery" label="Query" toolTipText="Query to match, in JSON format"/>
+ <com.edgytech.umongo.DocBuilderField id="famFields" label="Fields" toolTipText="Fields to be returned, in JSON format"/>
+ <com.edgytech.umongo.DocBuilderField id="famSort" label="Sort" toolTipText="Sort to find 1st document by, in JSON format"/>
+ <com.edgytech.umongo.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"/>
@@ -435,7 +435,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"/>
- <com.edgytech.jmongobrowser.DocBuilderField id="shardCustomKey" label="Custom Key" toolTipText="Specify a custom shard key. An index may be created to back that key."/>
+ <com.edgytech.umongo.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>
@@ -444,13 +444,13 @@
<MenuItem id="findChunks" call="findChunks"/>
<MenuItem id="moveChunk" call="moveChunk" showDialog="false">
<FormDialog>
- <com.edgytech.jmongobrowser.DocBuilderField id="mvckQuery" label="Chunk Query" toolTipText="Query to find the chunk by" nonEmpty="true"/>
+ <com.edgytech.umongo.DocBuilderField id="mvckQuery" label="Chunk Query" toolTipText="Query to find the chunk by" nonEmpty="true"/>
<ComboBox id="mvckToShard" label="To Shard" items="None" toolTipText="Shard to send the chunk to"/>
</FormDialog>
</MenuItem>
<MenuItem id="splitChunk" call="splitChunk">
<FormDialog>
- <com.edgytech.jmongobrowser.DocBuilderField id="spckQuery" label="Chunk Query" toolTipText="Query to find the chunk by" nonEmpty="true"/>
+ <com.edgytech.umongo.DocBuilderField id="spckQuery" label="Chunk Query" toolTipText="Query to find the chunk by" nonEmpty="true"/>
<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>
@@ -483,12 +483,12 @@
<Text id="name" field="true"/>
<Text id="fullName" field="true"/>
<Text id="queryOptions" field="true"/>
- <com.edgytech.jmongobrowser.DocField id="writeConcern"/>
- <com.edgytech.jmongobrowser.CmdField id="stats" cmd="collstats"/>
+ <com.edgytech.umongo.DocField id="writeConcern"/>
+ <com.edgytech.umongo.CmdField id="stats" cmd="collstats"/>
</Div>
</Zone>
- </com.edgytech.jmongobrowser.CollectionPanel>
- <com.edgytech.jmongobrowser.IndexPanel id="indexPanel">
+ </com.edgytech.umongo.CollectionPanel>
+ <com.edgytech.umongo.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">
@@ -505,12 +505,12 @@
<Div zone="NORTH" gap="true" bgColor="255;255;255">
<Text id="name" field="true"/>
<Text id="ns" label="NS" field="true"/>
- <com.edgytech.jmongobrowser.DocField id="key"/>
- <com.edgytech.jmongobrowser.DocField id="info"/>
+ <com.edgytech.umongo.DocField id="key"/>
+ <com.edgytech.umongo.DocField id="info"/>
</Div>
</Zone>
- </com.edgytech.jmongobrowser.IndexPanel>
- <com.edgytech.jmongobrowser.ServerPanel id="serverPanel">
+ </com.edgytech.umongo.IndexPanel>
+ <com.edgytech.umongo.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">
@@ -522,7 +522,7 @@
<MenuSeparator/>
<MenuItem id="currentOps" call="currentOps">
<FormDialog>
- <com.edgytech.jmongobrowser.DocBuilderField id="currentOpsQuery" label="Query Filter" toolTipText="Optional, a query to filter operations. Use {'$all': 1} to also see internal commands."/>
+ <com.edgytech.umongo.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">
@@ -533,7 +533,7 @@
<MenuSeparator/>
<MenuItem id="setParameter" call="setParameter">
<FormDialog>
- <com.edgytech.jmongobrowser.DocBuilderField id="setParameterValue" label="Parameter" nonEmpty="true" toolTipText="Modify a parameter without restarting the server, for example {logLevel: 4}"/>
+ <com.edgytech.umongo.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">
@@ -562,22 +562,22 @@
<Text id="replication" field="true" toolTipText="Replication status" icon="overlay/tick_circle.png" iconGroup="icons"/>
<Text id="maxObjectSize" field="true"/>
<Text id="journaling" field="true" icon="overlay/shield_blue.png" iconGroup="icons"/>
- <com.edgytech.jmongobrowser.CmdField id="serverStatus" cmd="serverStatus"/>
+ <com.edgytech.umongo.CmdField id="serverStatus" cmd="serverStatus"/>
</Div>
</Zone>
- </com.edgytech.jmongobrowser.ServerPanel>
- <com.edgytech.jmongobrowser.ReplSetPanel id="replSetPanel">
+ </com.edgytech.umongo.ServerPanel>
+ <com.edgytech.umongo.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" label="ReplicaSet">
<MenuItem id="refresh" label="Refresh" call="refresh" icon="stock_refresh.png" iconGroup="icons" key="r" keyMod="cmd+shift"/>
<MenuSeparator/>
<MenuItem id="initiate" call="initiate">
- <com.edgytech.jmongobrowser.DocBuilderField id="initConfig" label="Config" toolTipText="An object representing the configuration. Leave empty to start with a single server."/>
+ <com.edgytech.umongo.DocBuilderField id="initConfig" label="Config" toolTipText="An object representing the configuration. Leave empty to start with a single server."/>
</MenuItem>
<MenuItem id="reconfigure" call="reconfigure" showDialog="false">
<FormDialog>
- <com.edgytech.jmongobrowser.DocBuilderField id="reconfConfig" label="Config" toolTipText="An object representing the new configuration." nonEmpty="true"/>
+ <com.edgytech.umongo.DocBuilderField id="reconfConfig" label="Config" toolTipText="An object representing the new configuration." nonEmpty="true"/>
</FormDialog>
</MenuItem>
<MenuItem id="addReplica" call="addReplica">
@@ -586,7 +586,7 @@
<CheckBox id="arArbiterOnly" label="Arbiter only" toolTipText="Whether this replica should be an arbiter only, with no data" value="false"/>
<CheckBox id="arHidden" label="Hidden" toolTipText="If true, the replica will not be seen by the client applications (e.g. backup only server)" value="false"/>
<DoubleSpinner id="arPriority" label="Priority" toolTipText="Priority of the replica to become primary, between 0 and 1000 (1 is default, 0 means never primary)" minValue="0" maxValue="1000" value="1"/>
- <com.edgytech.jmongobrowser.DocBuilderField id="arTags" label="Tags" toolTipText="An object representing tags for this server"/>
+ <com.edgytech.umongo.DocBuilderField id="arTags" label="Tags" toolTipText="An object representing tags for this server"/>
<IntSpinner id="arSlaveDelay" label="Slave delay" minValue="0" value="0" toolTipText="Time in second to remain behind the primary"/>
<IntSpinner id="arVotes" label="Votes" minValue="0" value="1" toolTipText="Number of votes for this replica. This option should generally be set to 1."/>
<CheckBox id="arIgnoreIndexes" label="Ignore indexes" toolTipText="If true, the replica will not build indexes (e.g. backup only server)" value="false"/>
@@ -619,8 +619,8 @@
<Text id="replicas" field="true"/>
</Div>
</Zone>
- </com.edgytech.jmongobrowser.ReplSetPanel>
- <com.edgytech.jmongobrowser.RouterPanel id="routerPanel">
+ </com.edgytech.umongo.ReplSetPanel>
+ <com.edgytech.umongo.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">
@@ -653,7 +653,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"/>
- <com.edgytech.jmongobrowser.DocBuilderField id="regenShardKey" label="Sharding Key" nonEmpty="true"/>
+ <com.edgytech.umongo.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">
@@ -669,30 +669,30 @@
<Div zone="NORTH" gap="true" bgColor="255;255;255">
<Text id="host" field="true"/>
<Text id="address" field="true"/>
- <com.edgytech.jmongobrowser.DocField id="shards"/>
+ <com.edgytech.umongo.DocField id="shards"/>
</Div>
</Zone>
- </com.edgytech.jmongobrowser.RouterPanel>
- <com.edgytech.jmongobrowser.EditBinaryDialog>
+ </com.edgytech.umongo.RouterPanel>
+ <com.edgytech.umongo.EditBinaryDialog>
<IntSpinner id="size"/>
- </com.edgytech.jmongobrowser.EditBinaryDialog>
- <com.edgytech.jmongobrowser.EditBooleanDialog>
+ </com.edgytech.umongo.EditBinaryDialog>
+ <com.edgytech.umongo.EditBooleanDialog>
<CheckBox id="value" label="True"/>
- </com.edgytech.jmongobrowser.EditBooleanDialog>
- <com.edgytech.jmongobrowser.EditCodeDialog>
+ </com.edgytech.umongo.EditBooleanDialog>
+ <com.edgytech.umongo.EditCodeDialog>
<TextField id="value" label="Code"/>
<TextField id="scope"/>
- </com.edgytech.jmongobrowser.EditCodeDialog>
- <com.edgytech.jmongobrowser.EditDateDialog>
+ </com.edgytech.umongo.EditCodeDialog>
+ <com.edgytech.umongo.EditDateDialog>
<DateSpinner id="value" label="Date"/>
- </com.edgytech.jmongobrowser.EditDateDialog>
- <com.edgytech.jmongobrowser.EditDoubleDialog>
+ </com.edgytech.umongo.EditDateDialog>
+ <com.edgytech.umongo.EditDoubleDialog>
<DoubleSpinner id="value"/>
- </com.edgytech.jmongobrowser.EditDoubleDialog>
- <com.edgytech.jmongobrowser.EditLongDialog>
+ </com.edgytech.umongo.EditDoubleDialog>
+ <com.edgytech.umongo.EditLongDialog>
<LongSpinner id="value"/>
- </com.edgytech.jmongobrowser.EditLongDialog>
- <com.edgytech.jmongobrowser.EditObjectIdDialog>
+ </com.edgytech.umongo.EditLongDialog>
+ <com.edgytech.umongo.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"/>
@@ -703,33 +703,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"/>
- </com.edgytech.jmongobrowser.EditObjectIdDialog>
- <com.edgytech.jmongobrowser.EditPatternDialog>
+ </com.edgytech.umongo.EditObjectIdDialog>
+ <com.edgytech.umongo.EditPatternDialog>
<TextField id="value"/>
- </com.edgytech.jmongobrowser.EditPatternDialog>
- <com.edgytech.jmongobrowser.EditStringDialog>
+ </com.edgytech.umongo.EditPatternDialog>
+ <com.edgytech.umongo.EditStringDialog>
<TextField id="value"/>
- </com.edgytech.jmongobrowser.EditStringDialog>
- <com.edgytech.jmongobrowser.EditTimestampDialog>
+ </com.edgytech.umongo.EditStringDialog>
+ <com.edgytech.umongo.EditTimestampDialog>
<IntSpinner id="time"/>
<IntSpinner id="increment"/>
- </com.edgytech.jmongobrowser.EditTimestampDialog>
- <com.edgytech.jmongobrowser.EditUuidDialog>
+ </com.edgytech.umongo.EditTimestampDialog>
+ <com.edgytech.umongo.EditUuidDialog>
<TextField id="value"/>
- </com.edgytech.jmongobrowser.EditUuidDialog>
- <com.edgytech.jmongobrowser.DocBuilderDialog id="docBuilderDialog">
+ </com.edgytech.umongo.EditUuidDialog>
+ <com.edgytech.umongo.DocBuilderDialog id="docBuilderDialog">
<Scroller fixedSize="600;400">
<Zone>
<Div id="div" zone="NORTH"/>
</Zone>
</Scroller>
- </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">
- <com.edgytech.jmongobrowser.MainMenu id="mainMenu" start="start">
+ </com.edgytech.umongo.DocBuilderDialog>
+ </com.edgytech.umongo.GlobalStore>
+ <Frame id="frame" title="UMongo" masterFrame="true" menuId="mainmenu" icon="mongo_leaf_32.png" iconGroup="icons" contexts="default;Connect" preferredSize="1100;700" bgColor="255;255;255">
+ <com.edgytech.umongo.MainMenu id="mainMenu" start="start">
<Menu id="file" alt="f">
<MenuItem id="connect" alt="c" key="k" keyMod="cmd" call="connect">
- <com.edgytech.jmongobrowser.ConnectDialog id="connectDialog">
+ <com.edgytech.umongo.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"/>
@@ -747,7 +747,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>
- </com.edgytech.jmongobrowser.ConnectDialog>
+ </com.edgytech.umongo.ConnectDialog>
</MenuItem>
<MenuSeparator/>
<MenuItem id="exit" label="Quit" alt="q" key="q" keyMod="cmd" call="exit"/>
@@ -756,7 +756,7 @@
<MenuItem id="importFile" alt="i" call="importFile"/>
<MenuSeparator/>
<MenuItem id="preferences" alt="p" key="comma" keyMod="cmd">
- <com.edgytech.jmongobrowser.AppPreferences id="prefDialog" start="start">
+ <com.edgytech.umongo.AppPreferences id="prefDialog" start="start">
<TabbedDiv id="optionTabs">
<Div id="general" gap="true">
<Div id="view" gap="true" titled="true">
@@ -774,20 +774,20 @@
</Div>
</TabbedDiv>
<Text value="* setting requires an application restart."/>
- </com.edgytech.jmongobrowser.AppPreferences>
+ </com.edgytech.umongo.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&lt;br&gt;By Edgytech / Antoine Girbal"/>
+ <InfoDialog signIcon="edgytech-small.png" signIconGroup="etIcons" signBorderColor="128;128;128" text="&lt;html&gt;UMongo&lt;br&gt;By Edgytech / Antoine Girbal"/>
</MenuItem>
</Menu>
- </com.edgytech.jmongobrowser.MainMenu>
+ </com.edgytech.umongo.MainMenu>
<Zone id="mainZone" bgColor="255;255;255">
-<!-- <com.edgytech.jmongobrowser.MainToolBar id="mainToolBar" zone="NORTH" minHeight="50" prefHeight="50" start="start" stop="stop" contexts="Connect">
+<!-- <com.edgytech.umongo.MainToolBar id="mainToolBar" zone="NORTH" minHeight="50" prefHeight="50" start="start" stop="stop" contexts="Connect">
<ToolBarSeparator/>
<MemoryBar id="memBar" focusable="false" maximumSize="120;-1"/>
- </com.edgytech.jmongobrowser.MainToolBar> -->
+ </com.edgytech.umongo.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">
@@ -798,17 +798,17 @@
</Scroller>
<SplitPane axis="Y" resizeWeight="0.3">
<Scroller preferredSize="-1;300">
- <com.edgytech.jmongobrowser.Workspace id="workspace" bgColor="255;255;255"/>
+ <com.edgytech.umongo.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>
- <com.edgytech.jmongobrowser.JobBar id="jobBar" axis="X" preferredSize="-1;30" bgColor="255;255;255" opaque="false"/>
+ <com.edgytech.umongo.JobBar id="jobBar" axis="X" preferredSize="-1;30" bgColor="255;255;255" opaque="false"/>
</Scroller>
</Div>
</Zone>
</Frame>
-</com.edgytech.jmongobrowser.JMongoBrowser>
+</com.edgytech.umongo.UMongo>
View
2 ...dgytech/jmongobrowser/AppPreferences.java → src/com/edgytech/umongo/AppPreferences.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
import com.edgytech.swingfast.CheckBox;
import com.edgytech.swingfast.FormDialog;
View
2 ...ytech/jmongobrowser/AutoUpdateDialog.java → ...com/edgytech/umongo/AutoUpdateDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
import com.edgytech.swingfast.FormDialog;
View
2 ...com/edgytech/jmongobrowser/BasePanel.java → src/com/edgytech/umongo/BasePanel.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
import com.edgytech.swingfast.Text;
import com.edgytech.swingfast.Zone;
View
4 .../edgytech/jmongobrowser/BaseTreeNode.java → src/com/edgytech/umongo/BaseTreeNode.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
import com.edgytech.swingfast.SwingFast;
import com.edgytech.swingfast.TreeNodeLabel;
@@ -72,7 +72,7 @@ public void removeNode() {
@Override
public void handleNodeSelection() {
- JMongoBrowser.instance.displayNode(this);
+ UMongo.instance.displayNode(this);
}
@Override
View
2 src/com/edgytech/jmongobrowser/CmdField.java → src/com/edgytech/umongo/CmdField.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
import com.mongodb.BasicDBObject;
import com.mongodb.CommandResult;
View
2 ...dgytech/jmongobrowser/CollectionNode.java → src/com/edgytech/umongo/CollectionNode.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
import com.edgytech.swingfast.SwingFast;
import com.mongodb.CommandResult;
View
22 ...gytech/jmongobrowser/CollectionPanel.java → src/com/edgytech/umongo/CollectionPanel.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
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 com.edgytech.jmongobrowser.CollectionPanel.Item;
+import com.edgytech.umongo.CollectionPanel.Item;
/**
*
@@ -172,7 +172,7 @@ protected void updateComponentCustom(JPanel old) {
((DocField) getBoundUnit(Item.writeConcern)).setDoc(collection.getWriteConcern().getCommand());
((CmdField) getBoundUnit(Item.stats)).updateFromCmd(collection);
} catch (Exception e) {
- JMongoBrowser.instance.showError(this.getClass().getSimpleName() + " update", e);
+ UMongo.instance.showError(this.getClass().getSimpleName() + " update", e);
}
}
@@ -217,7 +217,7 @@ public void rename() {
final CollectionNode colNode = getCollectionNode();
final DBCollection col = colNode.getCollection();
// select parent since this is getting renamed
- JMongoBrowser.instance.displayNode(colNode.getDbNode());
+ UMongo.instance.displayNode(colNode.getDbNode());
final String name = getStringFieldValue(Item.newName);
final boolean dropTarget = getBooleanFieldValue(Item.dropTarget);
@@ -430,7 +430,7 @@ public Object getRoot(Object result) {
}
private void exportToFile(final DBCollection col, final DBObject query, final DBObject fields, final DBObject sort, final int skip, final int limit, final int batchSize) {
- ExportDialog dia = JMongoBrowser.instance.getGlobalStore().getExportDialog();
+ ExportDialog dia = UMongo.instance.getGlobalStore().getExportDialog();
if (!dia.show()) {
return;
}
@@ -537,7 +537,7 @@ public void wrapUp(Object res) {
public void options() {
final DBCollection col = getCollectionNode().getCollection();
- OptionDialog od = JMongoBrowser.instance.getGlobalStore().getOptionDialog();
+ OptionDialog od = UMongo.instance.getGlobalStore().getOptionDialog();
od.update(col.getOptions(), col.getWriteConcern(), col.getReadPreference());
if (!od.show()) {
return;
@@ -679,7 +679,7 @@ public void ensureIndex() {
if (getBooleanFieldValue(Item.eiBackground))
opts.put("background", true);
- if (!JMongoBrowser.instance.getGlobalStore().confirmLockingOperation())
+ if (!UMongo.instance.getGlobalStore().confirmLockingOperation())
return;
new DbJob() {
@@ -838,7 +838,7 @@ public void wrapUp(Object res) {
}
public void doImport() throws IOException {
- ImportDialog dia = JMongoBrowser.instance.getGlobalStore().getImportDialog();
+ ImportDialog dia = UMongo.instance.getGlobalStore().getImportDialog();
if (!dia.show()) {
return;
}
@@ -945,14 +945,14 @@ public void compact() {
BasicDBObject cmd = new BasicDBObject("compact", getCollectionNode().getCollection().getName());
if (getBooleanFieldValue(Item.compactForce))
cmd.put("force", true);
- if (!JMongoBrowser.instance.getGlobalStore().confirmLockingOperation())
+ if (!UMongo.instance.getGlobalStore().confirmLockingOperation())
return;
new DocView(null, "Compact", getCollectionNode().getDbNode().getDb(), cmd).addToTabbedDiv();
}
public void reIndex() {
BasicDBObject cmd = new BasicDBObject("reIndex", getCollectionNode().getCollection().getName());
- if (!JMongoBrowser.instance.getGlobalStore().confirmLockingOperation())
+ if (!UMongo.instance.getGlobalStore().confirmLockingOperation())
return;
new DocView(null, "Re-Index", getCollectionNode().getDbNode().getDb(), cmd).addToTabbedDiv();
}
@@ -1094,7 +1094,7 @@ public void geoNear() {
public void fixCollection() {
final Mongo m = getCollectionNode().getDbNode().getMongoNode().getMongo();
- ArrayList<MongoNode> mongoNodes = JMongoBrowser.instance.getMongos();
+ ArrayList<MongoNode> mongoNodes = UMongo.instance.getMongos();
String[] mongonames = new String[mongoNodes.size() - 1];
Mongo[] mongos = new Mongo[mongonames.length];
int i = 0;
View
2 ...edgytech/jmongobrowser/ConnectDialog.java → src/com/edgytech/umongo/ConnectDialog.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
import com.edgytech.swingfast.FormDialog;
import com.mongodb.MongoOptions;
View
14 src/com/edgytech/jmongobrowser/DbJob.java → src/com/edgytech/umongo/DbJob.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
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 com.edgytech.jmongobrowser.DbJob.Item;
+import com.edgytech.umongo.DbJob.Item;
import org.xml.sax.SAXException;
/**
@@ -75,13 +75,13 @@ protected void done() {
try {
res = get();
} catch (Exception ex) {
- JMongoBrowser.instance.showError(getTitle(), (Exception) res);
+ UMongo.instance.showError(getTitle(), (Exception) res);
}
try {
wrapUp(res);
} catch (Exception ex) {
- JMongoBrowser.instance.showError(getTitle(), (Exception) ex);
+ UMongo.instance.showError(getTitle(), (Exception) ex);
}
}
};
@@ -118,7 +118,7 @@ public void setProgress(int progress) {
}
public void wrapUp(Object res) {
- JMongoBrowser.instance.removeJob(this);
+ UMongo.instance.removeJob(this);
if (res == null) {
return;
}
@@ -141,7 +141,7 @@ public void wrapUp(Object res) {
new DocView(null, title, lasterr, sroot, this).addToTabbedDiv();
}
} else if (res instanceof Exception) {
- JMongoBrowser.instance.showError(title, (Exception) res);
+ UMongo.instance.showError(title, (Exception) res);
} else {
DBObject obj = new BasicDBObject("Result", res.toString());
new DocView(null, title, obj, sroot, this).addToTabbedDiv();
@@ -172,7 +172,7 @@ public boolean isDeterminate() {
}
public void addJob() {
- JMongoBrowser.instance.runJob(this);
+ UMongo.instance.runJob(this);
}
long getRunTime() {
View
2 src/com/edgytech/jmongobrowser/DbNode.java → src/com/edgytech/umongo/DbNode.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
import com.edgytech.swingfast.SwingFast;
import com.mongodb.BasicDBObject;
View
10 src/com/edgytech/jmongobrowser/DbPanel.java → src/com/edgytech/umongo/DbPanel.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
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 com.edgytech.jmongobrowser.DbPanel.Item;
+import com.edgytech.umongo.DbPanel.Item;
import com.edgytech.swingfast.*;
/**
@@ -115,7 +115,7 @@ protected void updateComponentCustom(JPanel old) {
((DocField) getBoundUnit(Item.writeConcern)).setDoc(db.getWriteConcern().getCommand());
((CmdField) getBoundUnit(Item.stats)).updateFromCmd(db);
} catch (Exception e) {
- JMongoBrowser.instance.showError(this.getClass().getSimpleName() + " update", e);
+ UMongo.instance.showError(this.getClass().getSimpleName() + " update", e);
}
}
@@ -332,7 +332,7 @@ public void wrapUp(Object res) {
public void options() {
final DB db = getDbNode().getDb();
- OptionDialog od = JMongoBrowser.instance.getGlobalStore().getOptionDialog();
+ OptionDialog od = UMongo.instance.getGlobalStore().getOptionDialog();
od.update(db.getOptions(), db.getWriteConcern(), db.getReadPreference());
if (!od.show()) {
return;
@@ -500,7 +500,7 @@ public void profile() {
public void repair() {
DB db = getDbNode().getDb();
final DBObject cmd = new BasicDBObject("repairDatabase", 1);
- if (!JMongoBrowser.instance.getGlobalStore().confirmLockingOperation())
+ if (!UMongo.instance.getGlobalStore().confirmLockingOperation())
return;
new DocView(null, "Repair", db, cmd).addToTabbedDiv();
}
View
2 ...ytech/jmongobrowser/DocBuilderDialog.java → ...com/edgytech/umongo/DocBuilderDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
import com.edgytech.swingfast.FormDialog;
import com.edgytech.swingfast.Scroller;
View
4 ...gytech/jmongobrowser/DocBuilderField.java → src/com/edgytech/umongo/DocBuilderField.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
import com.edgytech.swingfast.BoxPanel;
import com.edgytech.swingfast.Common;
@@ -67,7 +67,7 @@ public void actionPerformed(ActionEvent e) {
}
if (e.getSource() == _button) {
- DocBuilderDialog dialog = JMongoBrowser.instance.getGlobalStore().getDocBuilderDialog();
+ DocBuilderDialog dialog = UMongo.instance.getGlobalStore().getDocBuilderDialog();
dialog.setDBObject(doc);
if (!dialog.show()) {
return;
View
2 src/com/edgytech/jmongobrowser/DocField.java → src/com/edgytech/umongo/DocField.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
import com.edgytech.swingfast.Text;
import com.mongodb.DBObject;
View
2 ...edgytech/jmongobrowser/DocFieldArray.java → src/com/edgytech/umongo/DocFieldArray.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
import com.mongodb.BasicDBList;
import com.mongodb.DBObject;
View
2 ...dgytech/jmongobrowser/DocFieldObject.java → src/com/edgytech/umongo/DocFieldObject.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
import com.edgytech.swingfast.BoxPanel;
import com.edgytech.swingfast.Div;
View
6 .../edgytech/jmongobrowser/DocFieldText.java → src/com/edgytech/umongo/DocFieldText.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
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 com.edgytech.jmongobrowser.DocFieldText.Item;
+import com.edgytech.umongo.DocFieldText.Item;
import org.xml.sax.SAXException;
/**
@@ -73,7 +73,7 @@ public DocFieldText(String id, String key, Object value, DocFieldObject object)
}
public void edit() {
- value = JMongoBrowser.instance.getGlobalStore().editValue(key, value);
+ value = UMongo.instance.getGlobalStore().editValue(key, value);
setStringFieldValue(Item.value, JSON.serialize(value));
updateComponent();
_object.commitComponent();
View
10 src/com/edgytech/jmongobrowser/DocView.java → src/com/edgytech/umongo/DocView.java
@@ -2,7 +2,7 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
import com.edgytech.swingfast.EnumListener;
import com.edgytech.swingfast.Menu;
@@ -145,7 +145,7 @@ public void close() {
}
void addToTabbedDiv() {
- tabbedDiv = JMongoBrowser.instance.getTabbedResult();
+ tabbedDiv = UMongo.instance.getTabbedResult();
tabbedDiv.addTab(this, true);
getTree().expandNode(getTree().getTreeNode());
@@ -156,7 +156,7 @@ public void actionPerformed(Enum enm, XmlComponentUnit unit, Object src) {
public void export() throws IOException {
// export should be run in thread, to prevent concurrent mods
- ExportDialog dia = JMongoBrowser.instance.getGlobalStore().getExportDialog();
+ ExportDialog dia = UMongo.instance.getGlobalStore().getExportDialog();
if (!dia.show()) {
return;
}
@@ -188,7 +188,7 @@ public Component getTabComponent() {
}
public void startAutoUpdate() {
- AutoUpdateDialog dia = JMongoBrowser.instance.getGlobalStore().getAutoUpdateDialog();
+ AutoUpdateDialog dia = UMongo.instance.getGlobalStore().getAutoUpdateDialog();
if (!dia.show()) {
return;
}
@@ -359,7 +359,7 @@ public void wrapUp(Object res) {
}
public void getMore() {
- getMore(JMongoBrowser.instance.getPreferences().getGetMoreSize());
+ getMore(UMongo.instance.getPreferences().getGetMoreSize());
}
public void getAll() {
View
14 ...tech/jmongobrowser/DocumentFieldMenu.java → ...om/edgytech/umongo/DocumentFieldMenu.java
@@ -2,9 +2,9 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
-import com.edgytech.jmongobrowser.DocumentFieldMenu.Item;
+import com.edgytech.umongo.DocumentFieldMenu.Item;
import com.edgytech.swingfast.EnumListener;
import com.edgytech.swingfast.InfoDialog;
import com.edgytech.swingfast.PopUpMenu;
@@ -38,11 +38,11 @@ public void actionPerformed(Item enm, XmlComponentUnit unit, Object src) {
}
public void set() {
- final DocView dv = (DocView) (JMongoBrowser.instance.getTabbedResult().getSelectedUnit());
+ final DocView dv = (DocView) (UMongo.instance.getTabbedResult().getSelectedUnit());
TreeNodeDocumentField field = (TreeNodeDocumentField) dv.getSelectedNode().getUserObject();
DBObject doc = dv.getSelectedDocument();
String path = dv.getSelectedDocumentPath();
- Object newValue = JMongoBrowser.instance.getGlobalStore().editValue(field.getKey(), field.getValue());
+ Object newValue = UMongo.instance.getGlobalStore().editValue(field.getKey(), field.getValue());
if (newValue == null) {
new InfoDialog(null, null, null, "Cannot edit this type of data.").show();
@@ -93,7 +93,7 @@ public void wrapUp(Object res) {
}
public void unset() {
- final DocView dv = (DocView) (JMongoBrowser.instance.getTabbedResult().getSelectedUnit());
+ final DocView dv = (DocView) (UMongo.instance.getTabbedResult().getSelectedUnit());
DBObject doc = dv.getSelectedDocument();
String path = dv.getSelectedDocumentPath();
@@ -142,15 +142,15 @@ public void wrapUp(Object res) {
}
public void copyField() {
- final DocView dv = (DocView) (JMongoBrowser.instance.getTabbedResult().getSelectedUnit());
+ final DocView dv = (DocView) (UMongo.instance.getTabbedResult().getSelectedUnit());
TreeNodeDocumentField node = (TreeNodeDocumentField) dv.getSelectedNode().getUserObject();
StringSelection data = new StringSelection(node.getKey().toString());
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
clipboard.setContents(data, data);
}
public void copyValue() {
- final DocView dv = (DocView) (JMongoBrowser.instance.getTabbedResult().getSelectedUnit());
+ final DocView dv = (DocView) (UMongo.instance.getTabbedResult().getSelectedUnit());
TreeNodeDocumentField node = (TreeNodeDocumentField) dv.getSelectedNode().getUserObject();
StringSelection data = new StringSelection(node.getValue().toString());
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
View
10 .../edgytech/jmongobrowser/DocumentMenu.java → src/com/edgytech/umongo/DocumentMenu.java
@@ -2,9 +2,9 @@
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
-import com.edgytech.jmongobrowser.DocumentMenu.Item;
+import com.edgytech.umongo.DocumentMenu.Item;
import com.edgytech.swingfast.*;
import com.mongodb.BasicDBObject;
import com.mongodb.DBCollection;
@@ -35,7 +35,7 @@ public void actionPerformed(Item enm, XmlComponentUnit unit, Object src) {
}
public void update() {
- final DocView dv = (DocView) (JMongoBrowser.instance.getTabbedResult().getSelectedUnit());
+ final DocView dv = (DocView) (UMongo.instance.getTabbedResult().getSelectedUnit());
TreeNodeDocument node = (TreeNodeDocument) dv.getSelectedNode().getUserObject();
final DBObject doc = node.getDBObject();
@@ -92,7 +92,7 @@ public void wrapUp(Object res) {
}
public void remove() {
- final DocView dv = (DocView) (JMongoBrowser.instance.getTabbedResult().getSelectedUnit());
+ final DocView dv = (DocView) (UMongo.instance.getTabbedResult().getSelectedUnit());
TreeNodeDocument node = (TreeNodeDocument) dv.getSelectedNode().getUserObject();
final DBObject doc = node.getDBObject();
@@ -139,7 +139,7 @@ public Object getRoot(Object result) {
}
public void copyValue() {
- final DocView dv = (DocView) (JMongoBrowser.instance.getTabbedResult().getSelectedUnit());
+ final DocView dv = (DocView) (UMongo.instance.getTabbedResult().getSelectedUnit());
TreeNodeDocument node = (TreeNodeDocument) dv.getSelectedNode().getUserObject();
final DBObject doc = node.getDBObject();
String selection = doc.toString();
View
2 ...ytech/jmongobrowser/EditBinaryDialog.java → ...com/edgytech/umongo/EditBinaryDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
import org.bson.types.Binary;
View
2 ...tech/jmongobrowser/EditBooleanDialog.java → ...om/edgytech/umongo/EditBooleanDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
/**
*
View
2 ...dgytech/jmongobrowser/EditCodeDialog.java → src/com/edgytech/umongo/EditCodeDialog.java
@@ -3,7 +3,7 @@
* and open the template in the editor.
*/
-package com.edgytech.jmongobrowser;
+package com.edgytech.umongo;
import com.edgytech.swingfast.TextField;
import com.mongodb.BasicDBObject;
View
2 ...dgytech/jmongobrowser/EditDateDialog.java → src/com/edgytech/umongo/EditDateDialog.java