Package org.mongodb.meclipse.util

Examples of org.mongodb.meclipse.util.RequiredInputValidator


      @Override
      public void run() {
        InputDialog dialog = new InputDialog(view.getSite().getShell(),
            getCaption("collection.renameColl"),
            getCaption("collection.msg.newCollName"),
            col.getName(), new RequiredInputValidator(
                getCaption("collection.msg.inputCollName")));
        if (dialog.open() == InputDialog.OK) {
          try {
            col.rename(dialog.getValue());
          } catch (MongoException ex) {
View Full Code Here


    public void run() {
      InputDialog dialog = new InputDialog(view.getSite().getShell(),
          getCaption("database.newCollection.title"),
          getCaption("database.newCollection.msg"), "",
          new RequiredInputValidator(
              getCaption("database.newCollection.errorMsg")));
      if (dialog.open() == InputDialog.OK) {
        try {
          db.createCollection(dialog.getValue(), new BasicDBObject());
        } catch (MongoException ex) {
View Full Code Here

TOP

Related Classes of org.mongodb.meclipse.util.RequiredInputValidator

Copyright © 2018 www.massapicom. 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.