Examples of DropData


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

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

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

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

                    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

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

     * @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

Examples of org.pokenet.server.backend.item.DropData

        }
        int dp = 0;
        while(st.hasMoreTokens()) {
          int item = Integer.parseInt(st.nextToken());
          int p = Integer.parseInt(st.nextToken());
          DropData d = new DropData(item, p);
          if(dp < drops.length) {
            drops[dp] = d;
            dp++;
          }
        }
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.