Examples of load()


Examples of org.eclipse.emf.ecore.resource.impl.BinaryResourceImpl.load()

      testResourceSet.getURIConverter().getURIMap().put(URI.createURI("../TargetObject/"), targetObject1.eResource().getURI().trimSegments(1).appendSegment(""));

      Resource libraryBinary = new BinaryResourceImpl(URI.createURI(temporaryFolder.newFile("model.binary").getAbsolutePath()));
      testResourceSet.getResources().add(libraryBinary);

      libraryBinary.load(new ByteArrayInputStream(out.toByteArray()), null);
      EChecker.checkObject(primaryObject, libraryBinary.getContents().get(0));
    }
    {
      ResourceSet testResourceSet = createResourceSet();
View Full Code Here

Examples of org.eclipse.emf.ecore.xmi.XMLLoad.load()

    if (handler != null)
    {
      handler.preLoad(this, inputStream, options);
    }

    xmlLoad.load(this, inputStream, options);
    xmlLoad = null;

    if (handler != null)
    {
      handler.postLoad(this, inputStream, options);
View Full Code Here

Examples of org.eclipse.emf.ecore.xmi.XMLResource.load()

    inputSource.setSystemId(systemId);
    if (options != null)
    {
      Map<Object, Object> mergedOptions = new HashMap<Object, Object>(loadOptions);
      mergedOptions.putAll(options);
      resource.load(inputSource, mergedOptions);
    }
    else
    {
      resource.load(inputSource, loadOptions);
    }
View Full Code Here

Examples of org.eclipse.jetty.deploy.test.XmlConfiguredJetty.load()

            jetty.addConfiguration("jetty.xml");
            jetty.addConfiguration("jetty-http.xml");
            jetty.addConfiguration("jetty-deploymgr-contexts.xml");

            // Should not throw an Exception
            jetty.load();

            // Start it
            jetty.start();
        }
        finally
View Full Code Here

Examples of org.eclipse.jface.commands.PersistentState.load()

      final String preferenceKey) {
    if (loadState() && state instanceof PersistentState) {
      final PersistentState persistableState = (PersistentState) state;
      if (persistableState.shouldPersist() && preferenceStore != null
          && preferenceKey != null) {
        persistableState.load(preferenceStore, preferenceKey);
      }
    }
  }

  /**
 
View Full Code Here

Examples of org.eclipse.jface.dialogs.DialogSettings.load()

 
  public NewFXMLWizard() {
    if( getDialogSettings() == null ) {
      DialogSettings settings = new DialogSettings("new-fxml");
      try {
        settings.load(SETTINGS_FILE);
      } catch (IOException e) {
      }
      setDialogSettings(settings);
    }
  }
View Full Code Here

Examples of org.eclipse.jface.preference.FieldEditor.load()

          case ML_BOOL_PARAM: {
            l = new BooleanFieldEditor(id, p.name, top);
            fields.add(l);
            store.setDefault(id, (Boolean) values.get(p.id));
            l.setPreferenceStore(store);
            l.load();
            break;
          }

          case ML_FLOAT_PARAM:
          case ML_INT_PARAM:
View Full Code Here

Examples of org.eclipse.jface.preference.PreferenceStore.load()

        // If lookup for store failed ...
        if (tsPrefStore == null) {
          if (prefFile.exists()) {
            tsPrefStore = new PreferenceStore(prefFile.getName());
            try {
              tsPrefStore.load(prefFile.getContents()); // TODO: Close stream!
            } catch (IOException e) {
              e.printStackTrace(); // TODO: Handle this correctly!
            }
          } else {
View Full Code Here

Examples of org.eclipse.jgit.lib.StoredConfig.load()

      if (invalidSpecs == repairedSpecs && repairedSpecs > 0) {
        // the fetch specs were automatically repaired
        rc.setStringList("remote", name, "fetch", specs);
        try {
          rc.save();
          rc.load();
          LOGGER.debug("repaired {} invalid fetch refspecs for {}", repairedSpecs, repository.getDirectory());
          return true;
        } catch (Exception e) {
          LOGGER.error(null, e);
        }
View Full Code Here

Examples of org.eclipse.jgit.storage.file.FileBasedConfig.load()

        }

        if (!dotGit.exists()) {
            Git.cloneRepository().setDirectory(gitRoot).setCloneAllBranches(true).setURI(gitUrl).call();
            FileBasedConfig config = new FileBasedConfig(new File(dotGit, "config"), FS.DETECTED);
            config.load();
            if (gitPushUrl != null) {
                config.setString(ConfigConstants.CONFIG_REMOTE_SECTION, "origin", "pushurl", gitPushUrl);
            }
            config.save();
        }
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.