Examples of ITagDropSourceData


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

        try
        {
            final ITaglibDomainMetaDataModelContext modelContext = getMetadataContext(
                    dropSourceData.getNamespace(), model);

            ITagDropSourceData tagDropSourceData = null;

            if (dropSourceData instanceof ITagDropSourceData)
            {
                tagDropSourceData = (ITagDropSourceData) dropSourceData;
            } else if (customizationData != null)
View Full Code Here

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

    });

  }

  private void loadTapestryTags(final TaglibPaletteDrawer category, final CMDocument doc){
    final ITagDropSourceData data = new TagToolCreationAdapter(category
        .getURI(), "actionlink", category.getDefaultPrefix(), "actionlink");
    final TagToolPaletteEntry item = new TagToolPaletteEntry(data, "actionlink",
        "create t:actionlink element", null, null);
    item.setId("actionlink");
View Full Code Here

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

  private TagToolPaletteEntry internalCreateTagEntry(final TaglibPaletteDrawer category,
      final String id, final String tagName,
      final String label, String desc, final ImageDescriptor smallIcon,
      final ImageDescriptor largeIcon, final boolean expert) {
   
    final ITagDropSourceData data = new TagToolCreationAdapter(category
        .getURI(), tagName, category.getDefaultPrefix(), id);
    final TagToolPaletteEntry item = new TagToolPaletteEntry(data, label,
        desc, smallIcon, largeIcon);
    item.setId(id);
View Full Code Here

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

        }
    }

    private void addAttributesFromPaletteMetadata(Map<String, String> attributes)
    {
        final ITagDropSourceData info = _creationData.getTagCreationProvider();
        if (info != null)
        {
            final MetadataTagDropSourceData provider =
                TagToolCreationAdapter.createMdTagCreationProvider(info, _model);
View Full Code Here

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

        {
            final IDOMModel model = ((IDOMNode) domPosition.getContainerNode())
                .getModel();
           
            final IFile fileForDocument = ResolverUtil.getFileForDocument(model.getStructuredDocument());           
            final ITagDropSourceData creationProvider =
                TagToolCreationAdapter.findProviderForContainer(containerQName, PaletteItemManager.createPaletteContext(fileForDocument));
            newPosition = ValidatorSupport
                    .insertContainer(domPosition, model, creationProvider, getContainerCustomizationData());
            if (newPosition == null) {
                newPosition = domPosition;
View Full Code Here

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

     * prefered method for static child values (i.e. those that are not
     * calculated dynamically at runtime).
     */
    protected void applyChildElementCustomization()
    {
        final ITagDropSourceData tagDropSourceData =
            _creationData.getTagCreationProvider();
        if (tagDropSourceData != null)
        {
            MetadataTagDropSourceData provider =
                TagToolCreationAdapter.createMdTagCreationProvider(tagDropSourceData, _model);
View Full Code Here

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

     * calculated dynamically at runtime).
     *
     */
    protected void applyAttributeCustomization()
    {
        final ITagDropSourceData info = _creationData.getTagCreationProvider();
        if (info != null)
        {
            final MetadataTagDropSourceData provider =
                TagToolCreationAdapter.createMdTagCreationProvider(info, _model);
            final List<TagCreationAttribute> list = provider.getAttributes();
View Full Code Here

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

//                        continue CHILDREN_LOOP;
//                    }

                    final String uri = child.getTagIdentifier().getUri();
                    final String tagName = child.getTagIdentifier().getTagName();
                    final ITagDropSourceData creationProvider =
                        TagToolCreationAdapter.findProviderForContainer(uri, tagName, PaletteItemManager.createPaletteContext(fileForDocument));
                    final ITaglibDomainMetaDataModelContext modelContext =
                        TaglibDomainMetaDataQueryHelper
                            .createMetaDataModelContext(fileForDocument.getProject(), child.getTagIdentifier().getUri());
//                        .createMetaDataModelContext(project, child.getTagIdentifier().getUri());
View Full Code Here

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

        try
        {
            final IMetaDataModelContext modelContext = CommandUtil.getMetadataModelContext(
                    dropSourceData.getNamespace(), model);

            ITagDropSourceData tagDropSourceData = null;

            if (dropSourceData instanceof ITagDropSourceData)
            {
                tagDropSourceData = (ITagDropSourceData) dropSourceData;
            } else if (customizationData != null)
View Full Code Here

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

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

        final IFile fileForDocument = ResolverUtil.getFileForDocument(model.getStructuredDocument());   
        final ITagDropSourceData creationProvider = TagToolCreationAdapter
                .findProviderForContainer(containerQName, PaletteItemManager.createPaletteContext(fileForDocument));

        newPosition = ValidatorSupport.insertContainer(domPosition,
                model, creationProvider, getContainerCustomizationData());
        if (newPosition == null)
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.