public static StringBuffer createPathToElementKey(
AbstractIntroIdElement element, boolean full) {
if (element.getId() == null)
return null;
StringBuffer buffer = new StringBuffer(element.getId());
AbstractBaseIntroElement parent = (AbstractBaseIntroElement) element
.getParent();
while (parent != null
&& !parent.isOfType(AbstractIntroElement.MODEL_ROOT)) {
if (parent.getId() == null)
return null;
buffer.insert(0, parent.getId() + "."); //$NON-NLS-1$
parent = (AbstractBaseIntroElement) parent.getParent();
}
return buffer;
}