Examples of IDOMPosition


Examples of org.eclipse.jst.pagedesigner.dom.IDOMPosition

      DesignPosition position = findPosition((ItemCreationRequest)request);
           
      if (position == null) {
        return null;
      }
            IDOMPosition domposition = DOMPositionHelper.toDOMPosition(position);
      if (domposition == null) {
        return null;
      }
//      TagToolCreationAdapter tagToolCreationAdapter = new TagToolCreationAdapter(r.getTagToolPaletteEntry(), getViewer(getHost()).getModel());
      return new CreateItemCommand(
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.dom.IDOMPosition

    }

    @Override
    protected IDOMPosition doExecute()
    {
        final IDOMPosition domPosition = getDomPosition();
        final QName containerQName = getContainerTag().asQName();

        IDOMPosition newPosition = domPosition;
        final IDOMModel model = ((IDOMNode) domPosition.getContainerNode())
                .getModel();

        final IFile fileForDocument = ResolverUtil.getFileForDocument(model.getStructuredDocument());   
        final ITagDropSourceData creationProvider = TagToolCreationAdapter
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.dom.IDOMPosition

       return insertSingletonIfNotPresent();
    }
   
    private IDOMPosition insertSingletonIfNotPresent()
    {
        IDOMPosition domPosition = getDomPosition();
        final TagIdentifier containerTag = getContainerTag();
        final TagIdentifier tagBeingCreated = getTagBeingCreated();
       
        final Document document = EditModelQuery.getDocumentNode(domPosition
                .getContainerNode());
       
        final boolean isContainerAlreadyPresent =
            JSFRootContainerPositionRule.hasBasicContainers
                (document, MAX_DEPTH_TO_SEARCH_FOR_CONTAINER);
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.dom.IDOMPosition

              final IMetaDataModelContext modelContext = CommandUtil.getMetadataModelContext(child.getTagIdentifier().getUri(), _model);
//                    final ITaglibDomainMetaDataModelContext modelContext =
//                        TaglibDomainMetaDataQueryHelper
//                            .createMetaDataModelContext(fileForDocument.getProject(), child.getTagIdentifier().getUri());
//                        .createMetaDataModelContext(project, child.getTagIdentifier().getUri());
                    IDOMPosition domPosition = new DOMPosition(_element, childCount++);
                    CreationData creationData = new CreationData(creationProvider,_model, domPosition, modelContext, child);

                    ElementCustomizationCommand command = new UserCustomizedElementCustomizationCommand(_model, childNode, creationData);
                    command.execute();
                }
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.