Examples of load()


Examples of org.eclipse.pde.internal.core.isite.ISiteModel.load()

            if (siteXml != null && siteXml.exists()) {
                final ISiteModel model = new WorkspaceSiteModel(siteXml);
                if (model != null) {
                    siteModels.add(model);
                    try {
                        model.load();
                    } catch (CoreException e) {
                        SysOutProgressMonitor.out.println("Problem occurred while loading: " + siteXml.getLocation());
                        e.printStackTrace(SysOutProgressMonitor.out);
                    }
                }
View Full Code Here

Examples of org.eclipse.pde.internal.core.product.WorkspaceProductModel.load()

    for (int i = 0; i < products.size(); i++)
    {
      final IFile product = (IFile) products.get(i);
      final WorkspaceProductModel wpm = new WorkspaceProductModel(product, false);
      wpm.load();
      final IProduct prod = wpm.getProduct();

      final File zipFile = new File(ResourcesPlugin.getWorkspace().getRoot().getLocation().toFile(), product.getName().substring(0, product.getName().length() - 8) + ".zip");

      SysOutProgressMonitor.out.println("Exporting Eclipse Product using '" + product.getLocation() + "' as configuration to: " + zipFile);
View Full Code Here

Examples of org.eclipse.pde.internal.core.site.WorkspaceSiteModel.load()

            if (siteXml != null && siteXml.exists()) {
                final ISiteModel model = new WorkspaceSiteModel(siteXml);
                if (model != null) {
                    siteModels.add(model);
                    try {
                        model.load();
                    } catch (CoreException e) {
                        SysOutProgressMonitor.out.println("Problem occurred while loading: " + siteXml.getLocation());
                        e.printStackTrace(SysOutProgressMonitor.out);
                    }
                }
View Full Code Here

Examples of org.eclipse.php.internal.ui.viewsupport.ProjectTemplateStore.load()

    } else {
      templateStore = new ProjectTemplateStore(null);
    }

    try {
      templateStore.load();
    } catch (IOException e) {
      // Ignore the error.
    }
    return templateStore;
View Full Code Here

Examples of org.eclipse.swt.graphics.ImageLoader.load()

    if (bytes != null && bytes.length > 0) {
      ByteArrayInputStream inS = null;
      try {
        inS = new ByteArrayInputStream(bytes);
        ImageLoader loader = new ImageLoader();
        ImageData[] imageDatas = loader.load(inS);

        /* Look for the Icon with the best quality */
        if (imageDatas != null)
          imgData = getBestQuality(imageDatas, wHint, hHint);
      } catch (SWTException e) {
View Full Code Here

Examples of org.eclipse.ui.editors.text.templates.ContributionTemplateStore.load()

    public static TemplateStore getTemplateStore(String type) {
      if (!fStoreList.containsKey(type)) {
        ContributionTemplateStore store = new ContributionTemplateStore(TemplateHelper.getContextTypeRegistry(),
            EclipseEmmetPlugin.getDefault().getPreferenceStore(), CUSTOM_TEMPLATES_KEY + "." + type);
        try {
          store.load();
          fStoreList.put(type, store);
        } catch (IOException e) {
          e.printStackTrace();
          throw new RuntimeException(e);
        }
View Full Code Here

Examples of org.eclipse.wst.wsdl.util.WSDLResourceImpl.load()

    wsdlMainResource.setURI(uri);

    try
    {
      InputStream inputStream = resourceSet.getURIConverter().createInputStream(uri);
      wsdlMainResource.load(inputStream, resourceSet.getLoadOptions());
      //wsdlMainResource.load(resourceSet.getLoadOptions());
    }
    catch (IOException e)
    {
      throw new WSDLException(WSDLException.INVALID_WSDL, "WSDL URI: " + wsdlURI, e);
View Full Code Here

Examples of org.eclipse.xsd.util.XSDResourceImpl.load()

        xsdMainResource.setURI(uri);

        // schema building has effects on referenced schemas, it will alter them -> we need
        // to synchronize this call so that only one of these operations is active at any time
        synchronized(Schemas.class) {
            xsdMainResource.load(resourceSet.getLoadOptions());
            return xsdMainResource.getSchema();
        }
    }

    /**
 
View Full Code Here

Examples of org.eclipse.xtext.resource.XtextResource.load()

    XtextResourceSet resourceSet = getInstanceOf(XtextResourceSet.class);
    resourceSet.setClasspathURIContext(getClass());
    XtextResource resource = (XtextResource) getInstanceOf(IResourceFactory.class).createResource(uri);
    resourceSet.getResources().add(resource);
    try {
      resource.load(input, null);
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
    if (resource instanceof LazyLinkingResource) {
      ((LazyLinkingResource) resource).resolveLazyCrossReferences(NullImpl);
View Full Code Here

Examples of org.elasticsearch.common.settings.loader.SettingsLoader.load()

         * {@link SettingsLoaderFactory#loaderFromSource(String)}.
         */
        public Builder loadFromSource(String source) {
            SettingsLoader settingsLoader = SettingsLoaderFactory.loaderFromSource(source);
            try {
                Map<String, String> loadedSettings = settingsLoader.load(source);
                put(loadedSettings);
            } catch (Exception e) {
                throw new SettingsException("Failed to load settings from [" + source + "]");
            }
            return this;
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.