Examples of open()


Examples of org.ontoware.rdf2go.model.Model.open()

  }

  @Test
  public void testDirectRepositoryAccess() throws Exception {
    Model model = getModelFactory().createModel();
    model.open();

    // fetch the Repository, a Connection and a ValueFactory
    Repository repository = (Repository) model
        .getUnderlyingModelImplementation();
    RepositoryConnection connection = repository.getConnection();
View Full Code Here

Examples of org.ontoware.rdf2go.model.ModelSet.open()

  @Test
  public void testSerialize() throws Exception {
    getModelSet().readFrom(TestData.getFoafAsStream(), Syntax.RdfXml);
    String serialize = getModelSet().serialize(Syntax.Nquads);
    ModelSet m1 = getModelFactory().createModelSet();
    m1.open();
    m1.readFrom(new StringReader(serialize), Syntax.Nquads);
    assertEquals(getModelSet().size(), m1.size());
    m1.close();
  }
View Full Code Here

Examples of org.openbel.framework.core.indexer.JDBMEquivalenceLookup.open()

                            .getResourceLocation(), equivalenceIndex);

            JDBMEquivalenceLookup jdbmLookup =
                    new JDBMEquivalenceLookup(dataIndex.getEquivalenceIndex()
                            .getIndexPath());
            jdbmLookup.open();

            openEquivalences.put(equivalence.getNamespaceResourceLocation()
                    .getResourceLocation(),
                    jdbmLookup);
        }
View Full Code Here

Examples of org.openbel.framework.core.indexer.JDBMNamespaceLookup.open()

                    cachedResource.getLocalFile().getAbsolutePath(),
                    NS_INDEX_FILE_NAME);

            JDBMNamespaceLookup il = new JDBMNamespaceLookup(indexPath);
            try {
                il.open();
                il.close();
            } catch (IOException e) {
                return false;
            }
View Full Code Here

Examples of org.openetcs.datadictionary.transform.ui.TransformationDialog.open()

  public Object execute(ExecutionEvent event) throws ExecutionException {

    // open file dialog
    Shell shell = HandlerUtil.getActiveWorkbenchWindowChecked(event).getShell();   
    final TransformationDialog dialog = new TransformationDialog(shell);   
    dialog.open();
    final String[] files = dialog.getFiles();
       
    if (files != null && files.length > 0) {
      Job job = new Job("Generating DataDictionary") {
        protected IStatus run(IProgressMonitor monitor) {
View Full Code Here

Examples of org.openhab.binding.xbmc.rpc.XbmcConnector.open()

    connector = new XbmcConnector(xbmcHost, eventPublisher);
    connectors.put(xbmcInstance, connector);
   
    // attempt to open the connection straight away
    try {
      connector.open();
    } catch (Exception e) {
      logger.error("Connection failed for '{}' on {}", xbmcInstance, xbmcHost.getHostname());
    }

    return connector;
View Full Code Here

Examples of org.openhab.io.transport.cul.internal.CULHandlerInternal.open()

            + " does not implement the internal interface");
        throw new CULDeviceException("This CULHandler class does not implement the internal interface: "
            + culHandlerclass.getCanonicalName());
      }
      CULHandlerInternal internalHandler = (CULHandlerInternal) culHandler;
      internalHandler.open();
      for (String command : initCommands) {
        internalHandler.sendWithoutCheck(command);
      }
      return culHandler;
    } catch (SecurityException e1) {
View Full Code Here

Examples of org.openide.cookies.EditorCookie.open()

            Exceptions.printStackTrace(ex);
        }
        if (dobj != null) {
            EditorCookie ec = (EditorCookie) dobj.getLookup().lookup(EditorCookie.class);
            if (ec != null) {
                ec.open();
                Line.Set lineSet = ec.getLineSet();
                int index = lineNumber-1;
                assert !lineSet.getLines().isEmpty();
                /* Go to last line of file if issue line does not exist */
                if(lineSet.getLines().size() <= index) {
View Full Code Here

Examples of org.openide.cookies.EditorCookie.Observable.open()

        final Observable ec = dataObj.getCookie(Observable.class);
        if (ec != null) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                @Override
                public void run() {
                    ec.open();
                }
            });
        }
    }
View Full Code Here

Examples of org.openide.cookies.OpenCookie.open()

        DataObject newOne =
                templateDataObject.createFromTemplate(targetDataFolder, name, replacements);

        OpenCookie openCookie = newOne.getCookie(OpenCookie.class);
        if (openCookie != null) {
            openCookie.open();
        }
       
        return Collections.singleton(newOne.getPrimaryFile());
    }
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.