Examples of open()


Examples of org.fusesource.ide.sap.ui.dialog.TestDestinationDialog.open()

      try {
        IWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindow(event);
        if (isDestination) {
          TestDestinationDialog testDestinationDialog = new TestDestinationDialog(window.getShell(), name);
          testDestinationDialog.open();
        } else {
          TestServerDialog testServerDialog = new TestServerDialog(window.getShell(), name);
          testServerDialog.open();
        }
      } catch (Exception e) {
View Full Code Here

Examples of org.fusesource.ide.sap.ui.dialog.TestServerDialog.open()

        if (isDestination) {
          TestDestinationDialog testDestinationDialog = new TestDestinationDialog(window.getShell(), name);
          testDestinationDialog.open();
        } else {
          TestServerDialog testServerDialog = new TestServerDialog(window.getShell(), name);
          testServerDialog.open();
        }
      } catch (Exception e) {
        // Ignore
      }
    }
View Full Code Here

Examples of org.fusesource.leveldbjni.JniDBFactory.open()

      }
    } finally {
      IOUtils.cleanup(LOG, localFS);
    }
    LOG.info("Using leveldb path " + dbPath);
    db = factory.open(new File(dbPath.toString()), options);
    startTimeWriteCache =
        Collections.synchronizedMap(new LRUMap(getStartTimeWriteCacheSize(
            conf)));
    startTimeReadCache =
        Collections.synchronizedMap(new LRUMap(getStartTimeReadCacheSize(
View Full Code Here

Examples of org.garret.perst.Storage.open()

    this.xstreamFile = xstreamFile;
  }

  public void toXML() {
    Storage db = StorageFactory.getInstance().createStorage();
    db.open(databaseFile);
    new XStreamFile(xstreamFile).write((Set) db.getRoot());
    db.close();
  }

  public void fromXML() {
View Full Code Here

Examples of org.geotools.swt.control.CRSChooserDialog.open()

        displayCRS(crs);
        crsButton.addSelectionListener(new SelectionAdapter(){
            public void widgetSelected( SelectionEvent e ) {
                CRSChooserDialog dialog = new CRSChooserDialog(crsButton.getShell(), getCrs());
                dialog.setBlockOnOpen(true);
                dialog.open();
                CoordinateReferenceSystem newCrs = dialog.getResult();
                mapPane.setCrs(newCrs);
                mapPane.redraw();
                displayCRS(newCrs);
            }
View Full Code Here

Examples of org.gephi.workspace.impl.WorkspaceInformationImpl.open()

        info.setName(reader.getAttributeValue(null, "name"));

        //Status
        String workspaceStatus = reader.getAttributeValue(null, "status");
        if (workspaceStatus.equals("open")) {
            info.open();
        } else if (workspaceStatus.equals("closed")) {
            info.close();
        } else {
            info.invalid();
        }
View Full Code Here

Examples of org.glassfish.api.deployment.archive.ReadableArchive.open()

            ReadableArchive archive = habitat.getComponent(ReadableArchive.class, provider);
            if (archive==null) {
                logger.log(Level.SEVERE, "Cannot find an archive implementation for " + provider);
                throw new MalformedURLException("Protocol not supported : " + provider);
            }
            archive.open(path);
            return archive;
        } catch (ComponentException e) {
            logger.log(Level.SEVERE, "Cannot find an archive implementation for " + provider, e);
            throw new MalformedURLException("Protocol not supported : " + provider);
        }
View Full Code Here

Examples of org.glassfish.jersey.media.sse.EventSource.open()

        });

        boolean latchTimedOut;
        boolean closeTimedOut;
        try {
            es.open();
            latchTimedOut = latch.await(5 * getAsyncTimeoutMultiplier(), TimeUnit.SECONDS);
        } finally {
            closeTimedOut = es.close(5, TimeUnit.SECONDS);
        }

View Full Code Here

Examples of org.glassfish.jersey.server.ResourceFinder.open()

                // This test doesn't actually do anything with the input stream, but it is important that it
                // open/close the stream to simulate actual usage.  The reported defect is only exposed if you
                // call open/close in some fashion.

                try (InputStream classStream = finder.open()) {
                    scannedEntryCount++;
                }
            }

            assertThat("Failed to enumerate all contents of javax.ws.rs-api.", scannedEntryCount, equalTo(actualEntries));
View Full Code Here

Examples of org.glassfish.jersey.server.internal.scanning.PackageNamesScanner.open()

        final PackageNamesScanner scanner = new PackageNamesScanner(new String[]{pckg}, true);

        while (scanner.hasNext()) {
            final String next = scanner.next();
            if (asl.accept(next)) {
                try (final InputStream in = scanner.open()) {
                    asl.process(next, in);
                } catch (IOException e) {
                    throw new RuntimeException("AnnotationAcceptingListener failed to process scanned resource: " + next);
                }
            }
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.