Examples of open()


Examples of com.alibaba.antx.config.gui.dialog.SettingsDialog.open()

    }

    public void run() {
        SettingsDialog od = new SettingsDialog(gui);

        if (od.open() == Dialog.OK) {
            gui.setOpenFiles(od.getFiles());
            gui.setDescriptorPatterns(od.getDescriptorPatterns());
            gui.setPackagePatterns(od.getPackagePatterns());

            open();
View Full Code Here

Examples of com.almworks.sqlite4java.SQLiteConnection.open()

      // Change the default temp_store_directory, otherwise we may run out of disk space as it will go to /var/tmp
      // In EMR the big disks are at /mnt
      // It suffices to set it to . as it is the tasks' work directory
      // Warning: this pragma is deprecated and may be removed in further versions, however there is no choice
      // other than recompiling SQLite or modifying the environment.
      conn.open(true);
      conn.exec("PRAGMA temp_store_directory = '" + new File(".").getAbsolutePath() + "'");
      SQLiteStatement st = conn.prepare("PRAGMA temp_store_directory");
      st.step();
      LOG.info("Changed temp_store_directory to: " + st.columnString(0));
      // journal_mode=OFF speeds up insertions
View Full Code Here

Examples of com.aptana.interactive_console.console.ui.internal.fromeclipse.HistoryElementListSelectionDialog.open()

        dialog.setBlockOnOpen(true);
        dialog.setSize(100, 25); //in number of chars
        dialog.setMessage("Select command(s) to be executed");
        dialog.setMultipleSelection(true);

        if (dialog.open() == SelectionDialog.OK) {
            Object[] result = dialog.getResult();
            if (result != null) {
                ArrayList<String> list = new ArrayList<String>();
                for (Object o : result) {
                    list.add(o.toString());
View Full Code Here

Examples of com.asakusafw.testdriver.core.DataModelSourceProvider.open()

    @Test
    public void open_importer() throws Exception {
        DataModelSourceProvider provider = new SpiDataModelSourceProvider(getClass().getClassLoader());
        URI uri = new URI("windgate:" + MockImporter.class.getName());
        ValueDefinition<String> definition = ValueDefinition.of(String.class);
        DataModelSource source = provider.open(definition, uri, EMPTY);
        try {
            DataModelReflection r1 = source.next();
            assertThat(r1, is(notNullValue()));
            assertThat(definition.toObject(r1), is("Hello1, world!"));
View Full Code Here

Examples of com.asakusafw.testdriver.core.SpiDataModelSourceProvider.open()

    @Test
    public void open_importer() throws Exception {
        DataModelSourceProvider provider = new SpiDataModelSourceProvider(getClass().getClassLoader());
        URI uri = new URI("windgate:" + MockImporter.class.getName());
        ValueDefinition<String> definition = ValueDefinition.of(String.class);
        DataModelSource source = provider.open(definition, uri, EMPTY);
        try {
            DataModelReflection r1 = source.next();
            assertThat(r1, is(notNullValue()));
            assertThat(definition.toObject(r1), is("Hello1, world!"));
View Full Code Here

Examples of com.asakusafw.yaess.core.ExecutionMonitor.open()

        ServiceProfile<ExecutionMonitorProvider> profile = new ServiceProfile<ExecutionMonitorProvider>(
                "testing", BasicMonitorProvider.class, conf, ProfileContext.system(getClass().getClassLoader()));

        ExecutionMonitorProvider instance = profile.newInstance();
        ExecutionMonitor monitor = instance.newInstance(CONTEXT);
        monitor.open(3);
        try {
            monitor.progressed(1);
            monitor.progressed(1);
            monitor.progressed(1);
        } finally {
View Full Code Here

Examples of com.bradmcevoy.http.XmlWriter.open()

        ByteArrayOutputStream responseOutput = new ByteArrayOutputStream();
        Map<String, String> mapOfNamespaces = helper.findNameSpaces( propFindResponses );
        ByteArrayOutputStream generatedXml = new ByteArrayOutputStream();
        XmlWriter writer = new XmlWriter( generatedXml );
        writer.writeXMLHeader();
        writer.open(WebDavProtocol.NS_DAV.getPrefix() ,"multistatus" + helper.generateNamespaceDeclarations( mapOfNamespaces ) );
        writer.newLine();
        helper.appendResponses( writer, propFindResponses, mapOfNamespaces );
        writer.close(WebDavProtocol.NS_DAV.getPrefix(),"multistatus" );
        writer.flush();
//        log.debug( generatedXml.toString() );
View Full Code Here

Examples of com.calclab.emite.xep.muc.RoomChatManagerImpl.open()

    userUri = XmppURI.uri("user@domain/resource");
    roomUri = XmppURI.uri("room@conference.domain");
    occupantUri = XmppURI.uri("room@conference.domain/user");
    session = new XmppSessionTester(userUri);
    final RoomChatManagerImpl manager = new RoomChatManagerImpl(eventBus, session, new RoomChatSelectionStrategy());
    room = manager.open(roomUri);
    room.getProperties().setStatus(ChatStatus.ready);
  }

  @Test
  public void shouldChangeSubject() {
View Full Code Here

Examples of com.caucho.vfs.ZipScanner.open()

    ZipScanner scan = null;
    try {
      if (true)
        scan = new ZipScanner(jarBacking);

      if (scan != null && scan.open()) {
        while (scan.next()) {
          String name = scan.getName();

          if (name.startsWith(prefix)
              && name.endsWith(".tld") || name.endsWith(".ftld")) {
View Full Code Here

Examples of com.ceph.rbd.Rbd.open()

                    r.connect();
                    s_logger.debug("Succesfully connected to Ceph cluster at " + r.confGet("mon_host"));

                    IoCTX io = r.ioCtxCreate(primaryPool.getSourceDir());
                    Rbd rbd = new Rbd(io);
                    RbdImage image = rbd.open(snapshotDisk.getName(), snapshotName);

                    long startTime = System.currentTimeMillis() / 1000;

                    File snapDir = new File(snapshotDestPath);
                    s_logger.debug("Attempting to create " + snapDir.getAbsolutePath() + " recursively");
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.