Package org.eclipse.jst.pagedesigner.validation.caret.DropActionData

Examples of org.eclipse.jst.pagedesigner.validation.caret.DropActionData.DropData


    return null;
  }

  @Override
  protected IPositionMediator createDropChildValidator(DropRequest r) {
    DropData dropData = createDropData(r);

    if (dropData != null) {
      MyDnDPositionValidator validator = new MyDnDPositionValidator(
          new DropActionData(ActionData.PALETTE_DND, dropData));
      return validator;
View Full Code Here


    {
        IPositionMediator mediator = createDropChildValidator(r);
       
        if (mediator == null)
        {
            DropData data = createDropData(r);
           
            if (data == null)
            {
                return null;
            }
View Full Code Here

                    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);
            return new DropData(tagIds);
        }
       
        return null;
    }
View Full Code Here

     * @param r
     * @return the drop location strategy
     */
    protected final IDropLocationStrategy createDropLocationStrategy(DropRequest r)
    {
        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

TOP

Related Classes of org.eclipse.jst.pagedesigner.validation.caret.DropActionData.DropData

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.