* Create entities for tags
* @param tagLib
*/
protected void createTags(final Namespace tagLib) {
for (final ITagElement tag : tagLib.getViewElements()){
Entity entity = findTagEntity(tag.getName());
if (entity == null){
entity = MetadataFactory.eINSTANCE.createEntity();
entity.setId(getTagNodeName(tag));
entity.setType("tag"); //$NON-NLS-1$
getMergedModel().getChildEntities().add(entity);
}
setTagEntityTraits(tag, entity);
}