* so the Parser context is provided.
*/
public void setNodeFilter (NodeFilter filter, Parser context)
{
NodeFactory factory;
PrototypicalNodeFactory proto;
Set names;
String name;
Tag tag;
mFilter = (NodeClassFilter)filter;
factory = context.getNodeFactory ();
if (factory instanceof PrototypicalNodeFactory)
{
proto = (PrototypicalNodeFactory)factory;
// iterate over the classes
names = proto.getTagNames ();
for (Iterator iterator = names.iterator (); iterator.hasNext (); )
{
name = (String)iterator.next ();
tag = proto.get (name);
mClass.addItem (tag.getClass ().getName ());
}
}
mClass.setSelectedItem (mFilter.getMatchClass ().getName ());
}