Examples of open()


Examples of org.springframework.ide.eclipse.webflow.ui.editor.hyperlink.webflow.WebFlowBeanReferenceHyperlinkProvider.open()

  protected HyperlinkedTextAttribute createWebFlowBeanAttribute(Composite client, String attr, boolean required) {
    HyperlinkedTextAttribute linkAttr = new XmlBackedHyperlinkTextAttribute(client, toolkit, attr, required) {
      public void openHyperlink() {
        XmlBackedHyperlinkProvider provider = new WebFlowBeanReferenceHyperlinkProvider(getConfigEditor()
            .getTextViewer(), getInput(), attr);
        provider.open(text.getText());
      }
    };
    linkAttr.createAttribute(2);
    return linkAttr;
  }
View Full Code Here

Examples of org.springframework.ide.eclipse.wizard.ui.BeanWizardDialog.open()

        Shell shell = getFormPage().getSite().getShell();
        if (shell != null && !shell.isDisposed()) {
          BeanWizardDialog dialog = BeanWizardDialog.createBeanWizardDialog(shell, sourceFile, false);
          dialog.create();
          dialog.setBlockOnOpen(true);
          if (dialog.open() == Window.OK) {
            IDOMElement element = dialog.getNewBean();
            getViewer().setSelection(new StructuredSelection(element));
          }
        }
      }
View Full Code Here

Examples of org.springsource.ide.eclipse.commons.ui.CommandHistoryPopupList.open()

  private Entry commandHistoryPopup(Control showBelow, Entry[] entries) {
    if (entries.length > 1) {
      CommandHistoryPopupList popup = new CommandHistoryPopupList(showBelow.getShell());
      popup.setLabelProvider(historyLabelProvider);
      popup.setItems(entries);
      return popup.open(showBelow.getDisplay().map(showBelow.getParent(), null, showBelow.getBounds()));
    }
    else if (entries.length == 0) {
      return null;
    }
    else {
View Full Code Here

Examples of org.sql2o.Sql2o.open()

            put(DateTime.class, new DateTimeConverter(DateTimeZone.getDefault()));
        }}));

        assertThat(sql2o.getQuirks(), is(instanceOf(NoQuirks.class)));

        try (Connection connection = sql2o.open()) {
            int val = connection.createQuery("select 42").executeScalar(Integer.class);

            assertThat(val, is(equalTo(42)));
        }
    }
View Full Code Here

Examples of org.stringtemplate.v4.gui.STViz.open()

    List<InterpEvent> events = interp.getEvents();
    EvalTemplateEvent overallTemplateEval =
      (EvalTemplateEvent)events.get(events.size()-1);
    STViz viz = new STViz(errMgr, overallTemplateEval, out.toString(), interp,
                interp.getExecutionTrace(), errors.errors);
    viz.open();
    return viz;
  }

  // TESTING SUPPORT
View Full Code Here

Examples of org.teavm.dom.ajax.XMLHttpRequest.open()

                if (xhr.getReadyState() == XMLHttpRequest.DONE) {
                    receiveResponse(xhr.getResponseText());
                }
            }
        });
        xhr.open("GET", "hello");
        xhr.send();
    }

    private static void receiveResponse(String text) {
        HTMLElement responseElem = document.createElement("div");
View Full Code Here

Examples of org.teiid.query.processor.BatchedUpdatePlan.open()

        FakeProcessorPlan[] plans = new FakeProcessorPlan[4];
        for (int i = 0; i < plans.length; i++) {
            plans[i] = new FakeProcessorPlan(1);
        }
        BatchedUpdatePlan plan = new BatchedUpdatePlan(Arrays.asList(plans), plans.length, null);
        plan.open();
        // First plan may or may not be opened, but all subsequent plans should not be opened.
        for (int i = 1; i < plans.length; i++) {
            assertFalse(plans[i].isOpened());
        }
    }
View Full Code Here

Examples of org.terrier.applications.desktop.filehandling.FileOpener.open()

          if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
            try {
              String osname = System.getProperty("os.name").toLowerCase();
              if (osname.startsWith("windows")) {
                FileOpener winFileOpener = new WindowsFileOpener();
                winFileOpener.open(e.getURL().toString());
              } else if (osname.startsWith("mac")) {
                FileOpener winFileOpener = new MacOSXFileOpener();
                winFileOpener.open(e.getURL().toString());
              } else if (osname.startsWith("linux")) {
                Runtime.getRuntime().exec(new String[] {"/usr/bin/mozilla",
View Full Code Here

Examples of org.terrier.applications.desktop.filehandling.MacOSXFileOpener.open()

              if (osname.startsWith("windows")) {
                FileOpener winFileOpener = new WindowsFileOpener();
                winFileOpener.open(e.getURL().toString());
              } else if (osname.startsWith("mac")) {
                FileOpener winFileOpener = new MacOSXFileOpener();
                winFileOpener.open(e.getURL().toString());
              } else if (osname.startsWith("linux")) {
                Runtime.getRuntime().exec(new String[] {"/usr/bin/mozilla",
                                      e.getURL().toString()});
              }
            } catch(Exception exc) {
View Full Code Here

Examples of org.terrier.applications.desktop.filehandling.WindowsFileOpener.open()

          if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
            try {
              String osname = System.getProperty("os.name").toLowerCase();
              if (osname.startsWith("windows")) {
                FileOpener winFileOpener = new WindowsFileOpener();
                winFileOpener.open(e.getURL().toString());
              } else if (osname.startsWith("mac")) {
                FileOpener winFileOpener = new MacOSXFileOpener();
                winFileOpener.open(e.getURL().toString());
              } else if (osname.startsWith("linux")) {
                Runtime.getRuntime().exec(new String[] {"/usr/bin/mozilla",
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.