Examples of ISymbol


Examples of org.eclipse.jst.jsf.context.symbol.ISymbol

    }

    final ISymbolContextResolver symbolResolver = StructuredDocumentSymbolResolverFactory
        .getInstance().getSymbolContextResolver(context);
    if (symbolResolver != null) {
      ISymbol symbol = symbolResolver.getVariable(ids[0]);
      if (symbol instanceof IInstanceSymbol
          && ((IInstanceSymbol) symbol).isTypeResolved()) {
        for (int curSuffixIdx = 1; curSuffixIdx < ids.length; curSuffixIdx++) {
          if (isLastSuffix && curSuffixIdx == ids.length - 1
              && isMethodBindingExpected(context)) {
            /*
             * TODO Take into acount required method signature,
             * since there may be different methods with the same
             * name
             */
            return symbolResolver.getMethod((IObjectSymbol) symbol,
                ids[curSuffixIdx]);
          }

          final ISymbol property = symbolResolver.getProperty(symbol,
              ids[curSuffixIdx]);

          if (property == null) {
            return null;
          }
View Full Code Here

Examples of org.eclipse.jst.jsf.context.symbol.ISymbol

        List<ICompletionProposal> completionList = Collections.EMPTY_LIST;
        final ISymbolContextResolver  symbolResolver =
            StructuredDocumentSymbolResolverFactory.getInstance().
                getSymbolContextResolver(context);

        final ISymbol symbol = SymbolResolveUtil.getSymbolForVariableSuffixExpr(context, getValue(), false);

        // if we get a completion symbol, get it's proposals
        if (symbol instanceof IObjectSymbol)
        {
            final List expectedMethodBindings = new ArrayList();
View Full Code Here

Examples of org.eclipse.jst.jsf.context.symbol.ISymbol

        final IProposalCreationFactory  creationInfo =
           new MyProposalFactory(context.getDocumentPosition(), getProposalStart().length());

        for (int i = 0; symbols != null && i < symbols.length; i++)
        {
            final ISymbol  symbol = symbols[i];

            final Object  adapter = 
                factory.adapt(symbol, IContentProposalProvider.class);
               
            if (adapter instanceof IContentProposalProvider)
View Full Code Here

Examples of org.eclipse.jst.jsf.context.symbol.ISymbol

    {
        // check implicits first
        final DefaultBuiltInSymbolProvider builtins =
            DefaultBuiltInSymbolProvider.getInstance();

        ISymbol  symbol = builtins.getSymbol(name, externalContextKey, ISymbolConstants.SYMBOL_SCOPE_ALL);

        if (symbol != null)
        {
            return symbol;
        }
View Full Code Here

Examples of org.eclipse.jst.jsf.context.symbol.ISymbol

            // we need to iterate backwards through the resolvers, since
            // the we take the first answer we receive.
            for (int i = resolvers.size() - 1; i >= 0; i--)
            {
                final ISymbol symbol = resolvers.get(i).resolveVariable(
                        context, name, externalContextKey);
                if (symbol != null)
                {
                    return symbol;
                }
            }
        }
        ISymbol symbol = super.resolveVariable(context, name, externalContextKey);
        //System.out.printf("totalSymbol: %d\n", Long.valueOf(System.nanoTime()- curTime));
        return symbol;
    }
View Full Code Here

Examples of org.eclipse.jst.jsf.context.symbol.ISymbol

            // we need to iterate backwards through the resolvers, since
            // the we take the first answer we receive.
            for (int i = resolvers.size() - 1; i >= 0; i--)
            {
                final ISymbol symbol = resolvers.get(i).getProperty(base,
                        offset);
                if (symbol != null)
                {
                    return symbol;
                }
View Full Code Here

Examples of org.eclipse.jst.jsf.context.symbol.ISymbol

            // we need to iterate backwards through the resolvers, since
            // the we take the first answer we receive.
            for (int i = resolvers.size() - 1; i >= 0; i--)
            {
                final ISymbol symbol = resolvers.get(i).getProperty(base,
                        propertyId);
                if (symbol != null)
                {
                    return symbol;
                }
View Full Code Here

Examples of org.eclipse.jst.jsf.context.symbol.ISymbol

        final String elementName = owningElement.getLocalName();
       
        if (IJSFConstants.TAG_LOADBUNDLE.equals(elementName))
        {
//            long startTime = System.currentTimeMillis();
            ISymbol symbol = handleLoadBundleTag(symbolName, owningElement, attr, context, problems);
           
//            long endTime = System.currentTimeMillis();
//            long totalTime = endTime-startTime;
            //System.out.println("Loadbundle resolution for symbol "+symbolName+" took: "+totalTime+"ms");
            return symbol;
View Full Code Here

Examples of org.eclipse.jst.jsf.context.symbol.ISymbol

            // we need to iterate backwards through the resolvers, since
            // the we take the first answer we receive.
            for (int i = resolvers.size() - 1; i >= 0; i--)
            {
                final ISymbol symbol = resolvers.get(i).resolveVariable(
                        context, name, externalContextKey);
                if (symbol != null)
                {
                    return symbol;
                }
            }
        }
        ISymbol symbol = super.resolveVariable(context, name, externalContextKey);
        //System.out.printf("totalSymbol: %d\n", Long.valueOf(System.nanoTime()- curTime));
        return symbol;
    }
View Full Code Here

Examples of org.eclipse.jst.jsf.context.symbol.ISymbol

            // we need to iterate backwards through the resolvers, since
            // the we take the first answer we receive.
            for (int i = resolvers.size() - 1; i >= 0; i--)
            {
                final ISymbol symbol = resolvers.get(i).getProperty(base,
                        offset);
                if (symbol != null)
                {
                    return symbol;
                }
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.