Examples of open()


Examples of com.sleepycat.db.internal.Db.open()

            openFlags |= DbConstants.DB_AUTO_COMMIT;

        boolean succeeded = false;
        try {
            configureDatabase(db, DEFAULT);
            db.open(txn, fileName, databaseName, type.getId(), openFlags, mode);
            succeeded = true;
            return db;
        } finally {
            if (!succeeded)
                try {
View Full Code Here

Examples of com.sleepycat.db.internal.DbEnv.open()

        openFlags |= useEnvironment ? DbConstants.DB_USE_ENVIRON : 0;
        openFlags |= useEnvironmentRoot ? DbConstants.DB_USE_ENVIRON_ROOT : 0;

        boolean succeeded = false;
        try {
            dbenv.open((home == null) ? null : home.toString(),
                openFlags, mode);
            succeeded = true;
            return dbenv;
        } finally {
            if (!succeeded)
View Full Code Here

Examples of com.sleepycat.db.internal.DbSequence.open()

            openFlags |= DbConstants.DB_AUTO_COMMIT;

        configureSequence(seq, DEFAULT);
        boolean succeeded = false;
        try {
            seq.open(txn, key, openFlags);
            succeeded = true;
            return seq;
        } finally {
            if (!succeeded)
                try {
View Full Code Here

Examples of com.sleepycat.je.utilint.DbCacheSizeRepEnv.open()

            try {
                final Class repEnvClass = Class.forName
                    ("com.sleepycat.je.rep.utilint.DbCacheSizeRepEnv");
                final DbCacheSizeRepEnv repEnv =
                    (DbCacheSizeRepEnv) repEnvClass.newInstance();
                return repEnv.open(tempDir, config, repParams);
            } catch (ClassNotFoundException e) {
                throw new IllegalStateException(e);
            } catch (InstantiationException e) {
                throw new IllegalStateException(e);
            } catch (IllegalAccessException e) {
View Full Code Here

Examples of com.smaxe.uv.na.webcam.IWebcam.open()

        final AtomicBoolean videoScreenMirror = new AtomicBoolean(false);

        new Thread(new Runnable() {
          public void run() {
            try {
              webcam.open(new IWebcam.FrameFormat(320, 240),
                  new IWebcam.IListener() {
                    private VideoFrame lastFrame = new VideoFrame(
                        0, 0, null);

                    public void onVideoFrame(
View Full Code Here

Examples of com.squareup.okhttp.OkHttpClient.open()

            client.setSslSocketFactory(sslContextSupplier.get().getSocketFactory());
         } else if (utils.trustAllCerts()) {
            client.setSslSocketFactory(untrustedSSLContextProvider.get().getSocketFactory());
         }
      }
      return client.open(url);
   }

   @Override
   protected void configureRequestHeaders(HttpURLConnection connection, HttpRequest request) {
      super.configureRequestHeaders(connection, request);
View Full Code Here

Examples of com.sshtools.common.configuration.SshToolsConnectionProfile.open()

            // Load the profile
            SshToolsConnectionProfile p = new SshToolsConnectionProfile();

            try {
                p.open(f);

                if (editConnection(p)) {
                    saveConnection(false, f, p);
                }
            } catch (IOException ioe) {
View Full Code Here

Examples of com.subgraph.vega.api.model.IWorkspace.open()

    throw new UnsupportedOperationException("Not implemented yet");
  }
 
  private boolean openWorkspaceEntry(IWorkspaceEntry entry) {
    IWorkspace workspace = new Workspace(this, entry, conditionSetChangeEventManager, workspaceEventManager, console, htmlParser, xmlRepository);
    if(!workspace.open()) {
      logger.warning("Failed to open workspace at path "+ entry.getPath());
      return false;
    }
    currentWorkspace = workspace;
    return true;
View Full Code Here

Examples of com.subgraph.vega.internal.ui.macros.macrodialog.MacroItemSelectionDialog.open()

  private SelectionListener createAddItemButtonSelectionListener() {
    return new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        MacroItemSelectionDialog dialog = new MacroItemSelectionDialog(parentComposite.getShell());
        if (dialog.open() == IDialogConstants.OK_ID) {
          List<IRequestLogRecord> selectionList = dialog.getSelectionList();
          for (Iterator<IRequestLogRecord> iter = selectionList.iterator(); iter.hasNext();) {
            try {
              macro.createMacroItem(iter.next());
            } catch (URISyntaxException ex) {
View Full Code Here

Examples of com.subgraph.vega.ui.identity.identitywizard.IdentityWizardDialog.open()

    final IWorkspace workspace = Activator.getDefault().getModel().getCurrentWorkspace();
    if (workspace != null) {     
      IIdentityModel identityModel = workspace.getIdentityModel();
      IdentityWizard wizard = new IdentityWizard();
      IdentityWizardDialog dialog = new IdentityWizardDialog(HandlerUtil.getActiveWorkbenchWindow(event).getShell(), wizard);
      if (dialog.open() == IDialogConstants.OK_ID) {
        IIdentity identity = wizard.getIdentity();
        identityModel.store(identity);
      }
    }
    return null;
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.