A tree model for the Vergil library panel. This is a tree model that
shows all entities and some ports, relations, and attributes. The ports,
relations, and attributes that it shows are those that
contain an attribute of class EditorIcon, or that contain an
attribute named "_iconDescription" or "_smallIconDescription".
A composite entity that contains an attribute with name "_libraryMarker"
is treated as a sublibrary. A composite entity without such an attribute
is treated as an atomic entity.
This is designed for use with JTree, which renders the hierarchy.
public void valueForPathChanged(javax.swing.tree.TreePath path,
Override the base class to do nothing. This seems risky, but
the problem is that without it, every time you expand a library
that has a image or PDF icon it, the entire library collapses,
which is extremely annoying. I guess this is OK under the
assumption that the library does not change during execution.
valueForPathChanged in interface javax.swing.tree.TreeModel
Return true if the object contains either an attribute of
class EditorIcon or an attribute of any class named
"_iconDescription" or "_smallIconDescription". This
will result in the object being rendered in the library.
object - The object.
True if the object is to be rendered in the library.