Examples of resolve()


Examples of org.eclipse.osgi.service.urlconversion.URLConverter.resolve()

   * @exception IOException if unable to resolve URL
   * @throws IOException if an error occurs during the resolution
   */
  public static URL resolve(URL url) throws IOException {
    URLConverter converter = Activator.getURLConverter(url);
    return converter == null ? url : converter.resolve(url);
  }

  /**
   * Returns a file for the contents of the specified bundle.  Depending
   * on how the bundle is installed the returned file may be a directory or a jar file
View Full Code Here

Examples of org.eclipse.pde.core.target.ITargetDefinition.resolve()

    URI targetFileURI = URI.createFileURI(targetFile.getAbsolutePath());
    if (targetFileURI.equals(targetFileURIToSet)) {
      ITargetDefinition targetDefinitionToSet = fileHandle.getTargetDefinition();

      if (!targetDefinitionToSet.isResolved()) {
        targetDefinitionToSet.resolve(subMonitor.newChild(80));
      }
      subMonitor.setWorkRemaining(0);
     
      IStatus compare = service.get().compareWithTargetPlatform(targetDefinitionToSet);
      if (compare != null && !compare.isOK()) {
View Full Code Here

Examples of org.eclipse.sapphire.java.internal.StandardJavaTypeReferenceService.resolve()

    @Test
   
    public void test()
    {
        final StandardJavaTypeReferenceService service = new StandardJavaTypeReferenceService( TestJava0002.class.getClassLoader() );
        final JavaType type = service.resolve( PACKAGE_NAME + ".TestClassA" );
       
        assertNotNull( type );

        assertTrue( type.isOfType( "java.lang.Object" ) );
        assertTrue( type.isOfType( PACKAGE_NAME + ".TestClassA" ) );
View Full Code Here

Examples of org.eclipse.sapphire.java.jdt.internal.JdtJavaTypeReferenceService.resolve()

        writeJavaSourceFile( "foo.bar", "TestInterfaceB", "public interface TestInterfaceB {}" );
        writeJavaSourceFile( "foo.bar", "TestInterfaceC", "public interface TestInterfaceC {}" );
       
        final JdtJavaTypeReferenceService service = new JdtJavaTypeReferenceService( project );
       
        final JavaType type = service.resolve( "foo.bar.TestClassA" );
       
        assertNotNull( type );

        assertTrue( type.isOfType( "java.lang.Object" ) );
        assertTrue( type.isOfType( "foo.bar.TestClassA" ) );
View Full Code Here

Examples of org.eclipse.ui.help.AbstractHelpUI.resolve()

   * @see org.eclipse.ui.help.IWorkbenchHelpSystem#resolve(java.lang.String, boolean)
   */
  public URL resolve(String href, boolean documentOnly) {
    AbstractHelpUI helpUI = getHelpUI();
    if (helpUI != null) {
      return helpUI.resolve(href, documentOnly);
    }
    return null;
  }
 
  /*
 
View Full Code Here

Examples of org.eclipse.ui.help.IWorkbenchHelpSystem.resolve()

      IHelpResource resource = relatedTopics[0];
      if (resource != null) {
        String helpUrl = resource.getHref();
        IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench()
            .getHelpSystem();
        URL url = helpSystem.resolve(helpUrl, true);
        return browser.setUrl(url.toExternalForm());
      }
    }
    Activator.getLogger().warning(
        "Could not find resource in context: " + contextName);
View Full Code Here

Examples of org.eclipse.wst.common.uriresolver.internal.provisional.URIResolver.resolve()

        locationHintField.setText(uri);
      }
      else if (id != null) {
        locationHintField.setText(id);
        URIResolver resolver = URIResolverPlugin.createResolver();
        grammarURI = resolver.resolve(null, id, id);
      }


      CMDocument document = ContentModelManager.getInstance().createCMDocument(URIHelper.getURIForFilePath(grammarURI), "xsd"); //$NON-NLS-1$
      if(document != null) {
View Full Code Here

Examples of org.exolab.castor.builder.SGStateInfo.resolve()

         * XMLBindingComponent/ClassInfo pair to avoid duplicates!
         */
        while (enumeration.hasMoreElements()) {
            Object elem = enumeration.nextElement();
            if (!(elem instanceof JClass)) {
                cInfos.add(sgState.resolve(elem));
            }
        }

        assertEquals(1, cInfos.size());

View Full Code Here

Examples of org.exolab.castor.net.URIResolver.resolve()

            //-- imports/includes
            String uri = _source.getSystemId();
            if (uri != null) {
                URIResolver resolver = schemaUnmarshaller.getURIResolver();
                try {
                    URILocation location = resolver.resolve(uri, null);
                    if (location != null) uri = location.toString();
                }
                catch(URIException except) {
                    throw new NestedIOException(except);
                }
View Full Code Here

Examples of org.exolab.castor.xml.ClassDescriptorResolver.resolve()

        // get the id of the target object
        String id = null;
        try {
            ClassDescriptorResolver classDescriptorResolver = context.getClassDescriptorResolver();
            ClassDescriptor classDescriptor = classDescriptorResolver.resolve(object.getClass());
            FieldDescriptor fieldDescriptor = classDescriptor.getIdentity();
            FieldHandler fieldHandler = fieldDescriptor.getHandler();
            id = (String) fieldHandler.getValue(object);
        } catch (Exception e) {
            String err = "The object associated with IDREF \"" + object
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.