Package org.eclipse.jst.jsf.common.dom

Examples of org.eclipse.jst.jsf.common.dom.TagIdentifier


                    final List data = diag.getData();

                    for (final Iterator it = data.iterator(); it.hasNext();)
                    {
                        final TagIdentifier missingParent = (TagIdentifier) it
                                .next();

                        reportContainmentProblem(context, node, missingParent);
                    }
                }
View Full Code Here


    Node node = target.getNode();
    if (hasBasicContainers(EditModelQuery.getDocumentNode(node),DEFAULT_MAX_DEPTH_SEARCH)) {
            ActionData actionData = getActionData();
      if (actionData instanceof DropActionData) {
                DropActionData dropActionData = (DropActionData) actionData;
                TagIdentifier tagId =
                     (TagIdentifier) dropActionData.getDropData().getTagIdentifiers().get(0);
                final String uri  = tagId.getUri();
        if (ITLDConstants.URI_JSF_HTML.equalsIgnoreCase(uri)
            || ITLDConstants.URI_JSF_CORE.equalsIgnoreCase(uri)) {
          boolean result = EditModelQuery.isChild(
              JSF_ROOT_CONTAINERS, node, true, false);
          return result
View Full Code Here

    Node node = target.getNode();
    if (hasBasicContainers(EditModelQuery.getDocumentNode(node), DEFAULT_MAX_DEPTH_SEARCH)) {
            ActionData actionData = getActionData();
            if (actionData instanceof DropActionData) {
                DropActionData dropActionData = (DropActionData) actionData;
                TagIdentifier tagId =
                     (TagIdentifier) dropActionData.getDropData().getTagIdentifiers().get(0);
                final String uri  = tagId.getUri();

        if (ITLDConstants.URI_JSF_HTML.equalsIgnoreCase(uri)
            || ITLDConstants.URI_JSF_CORE.equalsIgnoreCase(uri)) {
          result = EditModelQuery.isChild(JSF_ROOT_CONTAINERS,
              node, true, false);
View Full Code Here

        String tagName = _dropSourceData.getId();
        if (_dropSourceData instanceof ITagDropSourceData)
        {
            tagName = ((ITagDropSourceData)_dropSourceData).getTagName();
        }
        final TagIdentifier tagId = TagIdentifierFactory.createJSPTagWrapper(
                _dropSourceData.getNamespace(), tagName);
        final IElementEdit elementEdit = ElementEditFactoryRegistry.getInstance()
                .createElementEdit(tagId);

        IStatus status = Status.OK_STATUS;
View Full Code Here

            {
                EditPart part = (EditPart) editParts.get(0);
                if (part instanceof NodeEditPart)
                {
                    NodeEditPart nodePart = (NodeEditPart) part;
                    TagIdentifier tagId = nodePart.getTagIdentifier();
                    if (tagId != null)
                    {
                        List tagIds = new ArrayList();
                        tagIds.add(tagId);
                        return new DropData(tagIds);
                    }
                }
            }
        }
        else if (request instanceof ItemCreationRequest)
        {
            IDropSourceData creationProvider =
                ((ItemCreationRequest)request).getTagCreationProvider();
            String tagName = creationProvider.getId();
            if (creationProvider instanceof ITagDropSourceData)
            {
                tagName = ((ITagDropSourceData)creationProvider).getTagName();
            }
            TagIdentifier tagId =
                TagIdentifierFactory.
                    createJSPTagWrapper(creationProvider.getNamespace(),
                            tagName);
            List tagIds = new ArrayList();
            tagIds.add(tagId);
View Full Code Here

    {
        DropData dropData = createDropData(r);
        if (dropData != null && dropData.getTagIdentifiers().size() > 0)
        {
            // TODO: only supporting single item drop currently
            TagIdentifier tagIdentifier =
                (TagIdentifier) dropData.getTagIdentifiers().get(0);

            IElementEdit elementEdit =
                ElementEditFactoryRegistry.getInstance()
                    .createElementEdit(tagIdentifier);
View Full Code Here

    {
        if (dropSourceData instanceof ITagDropSourceData)
        {
            final String uri = ((ITagDropSourceData)dropSourceData).getNamespace();
            final String tagName = ((ITagDropSourceData)dropSourceData).getTagName();
            final TagIdentifier tagId = TagIdentifierFactory.createJSPTagWrapper(uri, tagName);
            return getDropCustomizer(tagId);
        }
        return DEFAULT_DROP_CUSTOMIZER;
    }
View Full Code Here

     * @param ele
     * @return an element edit
     */
    public IElementEdit createElementEdit(final Element ele)
    {
        final TagIdentifier tagIdentifier = TagIdentifierFactory
                .createDocumentTagWrapper(ele);
        return createElementEdit(tagIdentifier);
    }
View Full Code Here

                    final List data = diag.getData();

                    for (final Iterator it = data.iterator(); it.hasNext();)
                    {
                        final TagIdentifier missingParent = (TagIdentifier) it
                                .next();

                        reportContainmentProblem(context, node, missingParent);
                    }
                }
View Full Code Here

                    final IStructuredDocumentRegion region = sDoc
                            .getRegionAtCharacterOffset(elementData
                                    .getStartOffset());
                    final Region2ElementAdapter adapter = new Region2ElementAdapter(
                            region);
                    final TagIdentifier tagId = adapter.getTagId();
                    if (tagId.equals(elementData.getTagId()))
                    {
                        return adapter.getElement();
                    }
                }
                catch (CoreException ce)
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsf.common.dom.TagIdentifier

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.