Examples of open()


Examples of com.onpositive.commons.ui.dialogs.InputElementDialog.open()

        //buttons.add(bs);
        buttons.add(bs1);
        bs1.setText("Cancel");
        r.setLayoutManager(ca);
        DisposeBindingListener.linkBindingLifeCycle(bnd, r);
        inputElementDialog.open();
      }
    });
    menuManager.update(true);

    IToolBarManager toolBarManager = getViewSite().getActionBars()
View Full Code Here

Examples of com.onpositive.commons.ui.dialogs.TitledDialog.open()

        compositeEditor.add(sl);

        TitledDialog t = new TitledDialog(compositeEditor);
        DisposeBindingListener.linkBindingLifeCycle(binding,
            compositeEditor);
        int open = t.open();
        options.ok = open == Dialog.OK;
      }
    });
    if (options.ok) {
      ConnectOptions cm = new ConnectOptions();
View Full Code Here

Examples of com.onpositive.mapper.dialogs.NewTilesetDialog.open()

    String widthTxt = tileWidthCombo.getText();
    String heightTxt = tileHeightCombo.getText();
    if (!widthTxt.isEmpty() && !heightTxt.isEmpty()) {
    dialog.setInitialTileSize(Integer.parseInt(widthTxt),Integer.parseInt(heightTxt));
    }
    dialog.open();
    TileSet result = dialog.getResult();
    if (result != null)
      tilesetsField.addElement(result);
  }
View Full Code Here

Examples of com.onpositive.mapper.dialogs.ObjectPropertyDialog.open()

        if (obj != null) {
          int tileWidth = mapView.getMap().getTileWidth();
          int tileHeight = mapView.getMap().getTileHeight();
          ObjectPropertyDialog dialog = new ObjectPropertyDialog(
              getSite().getShell(), obj, this, tileWidth, tileHeight);
          dialog.open();
          mapView.redraw();
        }
      }
    } else if (mouseButton == 2
        || (mouseButton == 1 && (event.stateMask & SWT.ALT) != 0)) {
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocument.open()

        ODatabaseDocument db = null;
        try {
          db = new ODatabaseDocumentTx(stg.path);

          if (db.exists())
            db.open(stg.userName, stg.userPassword);
          else
            db.create();

          OLogManager.instance().info(this, "-> Loaded " + type + " database '" + stg.name + "'");
        } catch (Exception e) {
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open()

  }

  @Test
  public void testMVCC() throws IOException {
    ODatabaseDocumentTx db = new ODatabaseDocumentTx(url);
    db.open("admin", "admin");

    ODocument doc = new ODocument(db, "Account");
    doc.field("version", 0);
    doc.save();
View Full Code Here

Examples of com.orientechnologies.orient.core.db.graph.OGraphDatabase.open()

  public void f() {
    OSQLEngine.getInstance().registerFunction(OSQLFunctionGremlin.NAME, OSQLFunctionGremlin.class);

    OGraphDatabase db = new OGraphDatabase("local:C:/temp/databases/gremlin");
    if (db.exists())
      db.open("admin", "admin");
    else
      db.create();

    // ODocument vertex1 = (ODocument) db.createVertex().field("label", "car").save();
    // ODocument vertex2 = (ODocument) db.createVertex().field("label", "pilot").save();
View Full Code Here

Examples of com.orientechnologies.orient.core.db.object.ODatabaseObjectTx.open()

  }

  @Test
  public void queryProjectionObjectLevel() {
    ODatabaseObjectTx db = new ODatabaseObjectTx(url);
    db.open("admin", "admin");

    List<ODocument> result = db.query(new OSQLSynchQuery<ODocument>(" select nick, followings, followers from Profile "));

    Assert.assertTrue(result.size() != 0);
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.ODatabaseFlat.open()

  }

  @Test
  public void testTransactionAtomic() throws IOException {
    ODatabaseFlat db1 = new ODatabaseFlat(url);
    db1.open("admin", "admin");

    ODatabaseFlat db2 = new ODatabaseFlat(url);
    db2.open("admin", "admin");

    ORecordFlat record1 = new ORecordFlat(db1);
View Full Code Here

Examples of com.orientechnologies.orient.core.storage.OCluster.open()

      if (!cluster.exists()) {
        cluster.create(-1);
        if (makeFullCheckPointAfterClusterCreate && fullCheckPoint)
          makeFullCheckpoint();
      } else {
        cluster.open();
      }

      configuration.update();
    }
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.