Examples of resolve()


Examples of org.apache.directory.studio.ldapbrowser.core.model.IContinuation.resolve()

        if ( entry != null && entry instanceof IContinuation )
        {
            IContinuation continuation = ( IContinuation ) entry;
            if ( continuation.getState() == State.UNRESOLVED )
            {
                continuation.resolve();
            }
        }

        String editorId = extension.getEditorId();
View Full Code Here

Examples of org.apache.felix.bundlerepository.Resolver.resolve()

        expect(admin.getSystemRepository()).andReturn(createMock(org.apache.felix.bundlerepository.Repository.class));
        expect(admin.getLocalRepository()).andReturn(createMock(org.apache.felix.bundlerepository.Repository.class));
        expect(admin.listRepositories()).andReturn(new org.apache.felix.bundlerepository.Repository[0]);
        expect(admin.resolver(EasyMock.<org.apache.felix.bundlerepository.Repository[]>anyObject())).andReturn(resolver);
        resolver.add(EasyMock.capture(captureReq));
        expect(resolver.resolve(Resolver.NO_OPTIONAL_RESOURCES)).andReturn(true);
        expect(resolver.getAddedResources()).andReturn(new Resource[] { });
        expect(resolver.getRequiredResources()).andReturn(new Resource[] { resource });
        expect(resolver.getReason(resource)).andAnswer(new IAnswer() {
            public Object answer() throws Throwable {
                return new Reason[] { new ReasonImpl( resource, captureReq.getValue()) };
View Full Code Here

Examples of org.apache.felix.framework.resolver.Resolver.resolve()

        }

        Resolver resolver = new ResolverImpl(m_log);

        try {
            Map<BundleRevision, List<ResolverWire>> result = resolver.resolve(
                state,
                (mandatory == null) ? new HashSet<BundleRevision>() : mandatory,
                (optional == null) ? new HashSet<BundleRevision>() : optional,
                (ondemandFragments == null) ? new HashSet<BundleRevision>() : ondemandFragments);
View Full Code Here

Examples of org.apache.felix.framework.resolver.ResolverImpl.resolve()

        }

        Resolver resolver = new ResolverImpl(m_log);

        try {
            Map<BundleRevision, List<ResolverWire>> result = resolver.resolve(
                state,
                (mandatory == null) ? new HashSet<BundleRevision>() : mandatory,
                (optional == null) ? new HashSet<BundleRevision>() : optional,
                (ondemandFragments == null) ? new HashSet<BundleRevision>() : ondemandFragments);
View Full Code Here

Examples of org.apache.felix.resolver.ResolverImpl.resolve()

        Map<Resource, List<Wire>> wireMap;

        System.out.println("\nSCENARIO 1\n");
        mandatory = populateScenario1(wirings, candMap);
        rci = new ResolveContextImpl(wirings, candMap, mandatory, Collections.EMPTY_LIST);
        wireMap = resolver.resolve(rci);
        System.out.println("RESULT " + wireMap);

        System.out.println("\nSCENARIO 2\n");
        mandatory = populateScenario2(wirings, candMap);
        rci = new ResolveContextImpl(wirings, candMap, mandatory, Collections.EMPTY_LIST);
View Full Code Here

Examples of org.apache.felix.sigil.common.repository.IBundleResolver.resolve()

            }
            try
            {
                ResolutionConfig config = new ResolutionConfig(
                    ResolutionConfig.IGNORE_ERRORS);
                IResolution resolution = resolver.resolve(element, config, null);
                if (resolution.getBundles().isEmpty())
                {
                    SigilCore.error("Failed to resolve bundle for " + base);
                }
                for (ISigilBundle b : resolution.getBundles())
View Full Code Here

Examples of org.apache.felix.sigil.common.runtime.BundleForm.resolve()

        try
        {
            // TODO need to figure out a sensible repository manager for launch configs
            IRepositoryManager manager = SigilCore.getGlobalRepositoryManager();
            client.apply(form.resolve(new RuntimeBundleResolver(manager, config)));
        }
        catch (Exception e)
        {
            throw SigilCore.newCoreException("Failed to apply bundle form", e);
        }
View Full Code Here

Examples of org.apache.flex.compiler.definitions.references.IReference.resolve()

        {
            IASNode problemNode = getBaseClassProblemNode(classNode, classDefinition);
            String baseClassReferenceName = baseClassReference.getName();

            //  The base class reference might be ambiguous.
            IDefinition foundDefinition = baseClassReference.resolve(project, (ASScope)classDefinition.getContainingScope(), DependencyType.INHERITANCE, true);
            if ( AmbiguousDefinition.isAmbiguous(foundDefinition))
                problems.add(new AmbiguousReferenceProblem(problemNode, baseClassReferenceName));
            else
                problems.add(new UnknownSuperclassProblem(problemNode, baseClassReferenceName));
           
View Full Code Here

Examples of org.apache.flex.compiler.definitions.references.IResolvedQualifiersReference.resolve()

        if (rootClassCompilationUnits.isEmpty())
            return ImmutableList.<ICompilerProblem>of(new FileNotFoundProblem(rootClassFileName));
       
        assert Iterables.getOnlyElement(rootClassCompilationUnits) != null : "The build should have been aborted before this point if there is no root class compilation unit.";
       
        IDefinition rootClassDefinition = rootClassRef.resolve(project);
        if (rootClassDefinition == null)
            return ImmutableList.<ICompilerProblem>of(new UnableToFindRootClassDefinitionProblem(targetSettings.getRootClassName()));
       
        return ImmutableList.<ICompilerProblem>of();
    }
View Full Code Here

Examples of org.apache.flex.compiler.internal.tree.as.ExpressionNodeBase.resolve()

            {
                currentScope.addProblem(new CodegenInternalProblem(iNode, "Unable to resove member name: " + iNode.toString()));
                n = new Name(CONSTANT_Qname, new Nsset(new Namespace(CONSTANT_PackageNs, qualifiers)), base_name);
            }

            return currentScope.getBinding(iNode, n, expr.resolve(currentScope.getProject()));
        }

        //else
            currentScope.addProblem(new CodegenInternalProblem(iNode, "Unable to resove to a dotted name: " + iNode.toString()));
            return new Binding(iNode, new Name(CONSTANT_Qname, new Nsset(new Namespace(CONSTANT_PackageNs, qualifiers)), base_name), null);
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.