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