Package org.eclipse.jst.jsf.designtime.resolver

Examples of org.eclipse.jst.jsf.designtime.resolver.ISymbolContextResolver


   * @param name
   * @return ISymbol
   */
  public static ISymbol getSymbolForVariable(
      final IStructuredDocumentContext context, final String name) {
    final ISymbolContextResolver symbolResolver = StructuredDocumentSymbolResolverFactory
        .getInstance().getSymbolContextResolver(context);

    return symbolResolver.getVariable(name);
  }
View Full Code Here


    // if no suffixes, only one id
    if (ids.length < 1) {
      ids = new String[] { fullName };
    }

    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

    @Override
  public List<ICompletionProposal> getProposals(final IStructuredDocumentContext context)
    {
        List<ICompletionProposal> completionList = Collections.EMPTY_LIST;
        final ISymbolContextResolver  symbolResolver =
            StructuredDocumentSymbolResolverFactory.getInstance().
                getSymbolContextResolver(context);

        final ISymbol symbol = SymbolResolveUtil.getSymbolForVariableSuffixExpr(context, getValue(), false);
View Full Code Here

        ISymbol[]       symbols = null;

        if (iFile != null)
        {
            final ISymbolContextResolver  symbolResolver =
                StructuredDocumentSymbolResolverFactory.getInstance().
                    getSymbolContextResolver(context);
           
            symbols = symbolResolver.getAllVariables();
        }

        final ComposedAdapterFactory factory =
            new ComposedAdapterFactory(ComposedAdapterFactory.
                                                  Descriptor.Registry.INSTANCE);
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsf.designtime.resolver.ISymbolContextResolver

Copyright © 2018 www.massapicom. 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.