Examples of open()


Examples of com.orientechnologies.orient.core.storage.fs.OFileClassic.open()

  private void updateFilePage(long pageIndex, long offset, byte[] value) throws IOException {
    String path = storageLocal.getConfiguration().getDirectory() + "/readWriteDiskCacheTest.tst";

    OFileClassic fileClassic = new OFileClassic();
    fileClassic.init(path, "rw");
    fileClassic.open();

    fileClassic.write(pageIndex * (8 + systemOffset) + offset, value, value.length, 0);
    fileClassic.synch();
    fileClassic.close();
  }
View Full Code Here

Examples of com.orientechnologies.orient.object.db.OObjectDatabaseTx.open()

  }

  @Test(dependsOnMethods = "testDictionaryMassiveCreate")
  public void testDictionaryWithPOJOs() throws IOException {
    OObjectDatabaseTx database = new OObjectDatabaseTx(url);
    database.open("admin", "admin");
    database.getEntityManager().registerEntityClass(ObjectDictionaryTest.class);

    Assert.assertNull(database.getDictionary().get("testKey"));
    database.getDictionary().put("testKey", new ObjectDictionaryTest());
    Assert.assertNotNull(database.getDictionary().get("testKey"));
View Full Code Here

Examples of com.pi4j.io.serial.Serial.open()

        run_pin.high();
       
        try {
            // open the default serial port provided on the GPIO header
            serial.open(Serial.DEFAULT_COM_PORT, 38400);

            // continuous loop to keep the program running until the user terminates the program
            for (;;) {
         
               
View Full Code Here

Examples of com.ponysdk.core.StreamResource.open()

        downloadImageButton.addClickHandler(new PClickHandler() {

            @Override
            public void onClick(final PClickEvent event) {
                final StreamResource streamResource = new StreamResource();
                streamResource.open(new StreamHandler() {

                    @Override
                    public void onStream(final HttpServletRequest request, final HttpServletResponse response) {
                        response.reset();
                        response.setContentType("image/png");
View Full Code Here

Examples of com.ponysdk.ui.server.basic.PWindow.open()

            public void onClick(final PClickEvent event) {
                final String url = urlTextBox.getText();
                final String name = nameTextBox.getText();
                final String features = featuresTextBox.getText();
                final PWindow w = new PWindow(url, name, features);
                w.open();
            }
        });

        // Open popup that communicate with server
        final PFlexTable table2 = new PFlexTable();
View Full Code Here

Examples of com.puppetlabs.geppetto.ui.dialog.ModuleListSelectionDialog.open()

      if(module != null) {
        dialog.setInitialElementSelections(Collections.singletonList(module));
      }

      if(dialog.open() == Window.OK) {
        setModule((Module) dialog.getFirstResult());
      }
    }

    protected void setModule(Module selectedModule) {
View Full Code Here

Examples of com.python.pydev.actions.PyOutlineSelectionDialog.open()

            HashMap<SimpleNode, HierarchyNodeModel> nodeToModel = new HashMap<SimpleNode, HierarchyNodeModel>();
            nodeToModel.put((ClassDef) astTest.body[2], testModel);

            PyOutlineSelectionDialog dialog = new PyOutlineSelectionDialog(new Shell(display), astTest, nodeToModel);

            dialog.open();
            //goToManual(display);
        }
    }

}
View Full Code Here

Examples of com.rabbitmq.client.impl.ChannelN.open()

                public void shutdownCompleted(ShutdownSignalException cause) {
                    // make sure channel.open continuation is released
                    ch.processShutdownSignal(cause, true, true);
                }
            });
            ch.open();
            fail("expected channel.open to cause a connection exception");
        } catch (IOException e) {
            checkShutdownSignal(530, e);
        } finally {
            Host.rabbitmqctl("eval 'application:set_env(rabbit, channel_max, 0).'");
View Full Code Here

Examples of com.salas.bb.dialogs.AddSmartFeedDialog.open()

        GlobalController controller = GlobalController.SINGLETON;
        MainFrame mainFrame = controller.getMainFrame();
        AddSmartFeedDialog dialog = new AddSmartFeedDialog(mainFrame);

        dialog.open(DataFeed.getGlobalPurgeLimit());

        if (!dialog.hasBeenCanceled())
        {
            IFeed feed;
            String title = dialog.getFeedTitle();
View Full Code Here

Examples of com.salas.bb.dialogs.CleanupWizardDialog.open()

        CleanupWizardDialog dialog = new CleanupWizardDialog(
            GlobalController.SINGLETON.getMainFrame(),
            GlobalModel.SINGLETON.getGuidesSet(),
            GlobalModel.SINGLETON.getScoreCalculator());
       
        dialog.open();
       
        final boolean isRunCleanPressed = !dialog.hasBeenCanceled();
       
        if (isRunCleanPressed)
        {
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.