Examples of IDropSourceData


Examples of org.eclipse.jst.pagedesigner.editors.palette.IDropSourceData

    } else if (TemplateTransfer.getInstance().isSupportedType(
        event.currentDataType)) {
      Object data = event.data;
      PaletteDropInsertCommand command = null;
      if (data instanceof IDropSourceData) {
          final IDropSourceData dropSourceData = (IDropSourceData) data;
          // "Create new item"
        command = new PaletteDropInsertCommand(
            PageDesignerResources
                .getInstance()
                .getString(
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.editors.palette.IDropSourceData

                }
            }
        }
        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);
        }
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.