Examples of MongoDatabase


Examples of org.codinjutsu.tools.mongo.model.MongoDatabase

                setIcon(MONGO_SERVER_ERROR);
                setToolTipText("Unable to connect");
            }
            return this;
        } else if (userObject instanceof MongoDatabase) {
            MongoDatabase mongoDatabase = (MongoDatabase) userObject;
            super.getTreeCellRendererComponent(mongoTree, mongoDatabase.getName(), isSelected, isExpanded, isLeaf, row, focus);
            setIcon(MONGO_DATABASE);
            return this;
        } else if (userObject instanceof MongoCollection) {
            MongoCollection mongoCollection = (MongoCollection) userObject;
            super.getTreeCellRendererComponent(mongoTree, mongoCollection.getName(), isSelected, isExpanded, isLeaf, row, focus);
View Full Code Here

Examples of org.codinjutsu.tools.mongo.model.MongoDatabase


        databaseCombobox.setRenderer(new ColoredListCellRenderer() {
            @Override
            protected void customizeCellRenderer(JList list, Object value, int index, boolean selected, boolean hasFocus) {
                MongoDatabase mongoDatabase = (MongoDatabase) value;
                if (value == null) {
                    return;
                }
                append(mongoDatabase.getName());
            }
        });


        serverConfigurationCombobox.addItemListener(new ItemListener() {
View Full Code Here

Examples of org.codinjutsu.tools.mongo.model.MongoDatabase

        String exePath = mongoRunConfiguration.getMongoShell();
        commandLine.setExePath(exePath);

        ServerConfiguration serverConfiguration = mongoRunConfiguration.getServerConfiguration();
        MongoDatabase database = mongoRunConfiguration.getDatabase();
        commandLine.addParameter(MongoUtils.buildMongoUrl(serverConfiguration, database));

        VirtualFile scriptPath = mongoRunConfiguration.getScriptPath();
        commandLine.addParameter(scriptPath.getPath());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.