Package org.eclipse.jst.jsf.context.resolver.structureddocument

Examples of org.eclipse.jst.jsf.context.resolver.structureddocument.IDOMContextResolver


            return;
        }

        final IStructuredDocumentContext context = elementAdapter
                .getDocumentContext();
        final IDOMContextResolver resolver = IStructuredDocumentContextResolverFactory.INSTANCE
                .getDOMContextResolver(context);
        final Node node = resolver.getNode();

        final String uri = elementAdapter.getNamespace();
        final String tagName = elementAdapter.getLocalName();
        // final Element node = elementAdapter.
View Full Code Here


            return;
        }

        final IStructuredDocumentContext context = elementAdapter
                .getDocumentContext();
        final IDOMContextResolver resolver = IStructuredDocumentContextResolverFactory.INSTANCE
                .getDOMContextResolver(context);
        final Node node = resolver.getNode();

        final String uri = elementAdapter.getNamespace();
        final String tagName = elementAdapter.getLocalName();
        // final Element node = elementAdapter.
       
View Full Code Here

   * @return true, if method bindings expected
   */
  public static boolean isMethodBindingExpected(
      final IStructuredDocumentContext context,
      final List expectedBindings) {
    final IDOMContextResolver domResolver = IStructuredDocumentContextResolverFactory.INSTANCE
        .getDOMContextResolver(context);

    final Node curNode = domResolver.getNode();

    if (curNode instanceof Attr) {
      final Attr attr = (Attr) curNode;
      final Element element = attr.getOwnerElement();

View Full Code Here

            {
                throw new NoElementException(
                        "Couldn't acquire structured document context"); //$NON-NLS-1$
            }

            final IDOMContextResolver resolver =
                                                 IStructuredDocumentContextResolverFactory.INSTANCE
                                                         .getDOMContextResolver(_context);

            if (resolver == null)
            {
                throw new NoElementException("Couldn't acquire dom resolver"); //$NON-NLS-1$
            }

            _node = resolver.getNode();

            if (_node == null)
            {
                throw new NoElementException("Couldn't get Node from region"); //$NON-NLS-1$
            }
View Full Code Here

  private List<IPossibleValue> _pvs;
 
  public List<IPossibleValue> getPossibleValues() {
    if (_pvs == null){
      IDOMContextResolver resolver = StructuredDocumentContextResolverFactory.getInstance().getDOMContextResolver(getStructuredDocumentContext());
      _pvs = getCSSClasses(resolver.getDOMDocument());
    }
    return _pvs;
  }
View Full Code Here

    {
        final IStructuredDocumentContext sContext =
            (IStructuredDocumentContext)
                context.getAdapter(IStructuredDocumentContext.class);
       
        final IDOMContextResolver domResolver =
            IStructuredDocumentContextResolverFactory.INSTANCE.getDOMContextResolver(sContext);
       
        if (domResolver != null)
        {
            final Node curNode = domResolver.getNode();
           
            if (curNode instanceof Attr)
            {
                final Attr attr = (Attr) curNode;
                final Node owningElement = attr.getOwnerElement();
View Full Code Here

        final IStructuredDocumentContext context = IStructuredDocumentContextFactory.INSTANCE
                .getContext(container, -1);

        if (context != null)
        {
            final IDOMContextResolver resolver = IStructuredDocumentContextResolverFactory.INSTANCE
                    .getDOMContextResolver(context);

            if (resolver != null)
            {
                final Document doc = resolver.getDOMDocument();

                if (doc != null)
                {
                    roots.add(doc);
                }
View Full Code Here

    private Node getNode(final IAdaptable context)
    {
        final IStructuredDocumentContext sContext = getContext(context);
        if (sContext != null)
        {
            final IDOMContextResolver domResolver = IStructuredDocumentContextResolverFactory.INSTANCE
                    .getDOMContextResolver(sContext);
            if (domResolver != null)
            {
                return domResolver.getNode();
            }
        }
        return null;
    }
View Full Code Here

    return ret;
  }
 
  private String getTypeValue() {
    if (getStructuredDocumentContext() != null){
      IDOMContextResolver resolver = IStructuredDocumentContextResolverFactory.INSTANCE.getDOMContextResolver(getStructuredDocumentContext());
      if (resolver != null){
        Node aNode = resolver.getNode();
        if (aNode instanceof IDOMAttr) {
          Node tagNode = ((IDOMAttr)aNode).getOwnerElement();
          IDOMAttr typeNode = (IDOMAttr) tagNode.getAttributes().getNamedItem("type"); //$NON-NLS-1$
          if (typeNode != null)
            return typeNode.getValue();
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsf.context.resolver.structureddocument.IDOMContextResolver

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.