Program: 51189
Project: 51189
Buggy source:
public Component getTreeCellRendererComponent(JTree tree,Object value,boolean sel,boolean expanded,boolean leaf,int row,boolean hasFocus){
  super.getTreeCellRendererComponent(tree,value,sel,expanded,leaf,row,hasFocus);
  invalidFlag=isInvalid(tree,value,row);
  this.setPreferredSize(null);
  if (value instanceof MondrianGuiDef.Cube) {
    setText(invalidFlag,((MondrianGuiDef.Cube)value).name);
    super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
  }
 else   if (value instanceof MondrianGuiDef.Column) {
    setText(invalidFlag,((MondrianGuiDef.Column)value).name);
  }
 else   if (value instanceof MondrianGuiDef.Dimension) {
    super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
    setText(invalidFlag,((MondrianGuiDef.CubeDimension)value).name);
    this.setPreferredSize(new java.awt.Dimension(this.getPreferredSize().width + 1,25));
  }
 else   if (value instanceof MondrianGuiDef.DimensionUsage) {
    super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
    setText(invalidFlag,((MondrianGuiDef.CubeDimension)value).name);
  }
 else   if (value instanceof MondrianGuiDef.KeyExpression) {
    super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
    setText(workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
  }
 else   if (value instanceof MondrianGuiDef.NameExpression) {
    super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
    setText(workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
  }
 else   if (value instanceof MondrianGuiDef.OrdinalExpression) {
    super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
    setText(workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
  }
 else   if (value instanceof MondrianGuiDef.ParentExpression) {
    super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
    setText(workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
  }
 else   if (value instanceof MondrianGuiDef.Expression) {
    setText(workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
  }
 else   if (value instanceof MondrianGuiDef.ExpressionView) {
    setText(workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
  }
 else   if (value instanceof MondrianGuiDef.Hierarchy) {
    setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
    super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
    this.setPreferredSize(new java.awt.Dimension(this.getPreferredSize().width + 1,25));
  }
 else   if ((value instanceof MondrianGuiDef.RelationOrJoin) || (value instanceof MondrianGuiDef.Table)) {
    TreePath tpath=tree.getPathForRow(row);
    String prefix="String_Node_Str";
    if (tpath != null) {
      TreePath parentpath=tpath.getParentPath();
      if (parentpath != null) {
        Object parent=parentpath.getLastPathComponent();
        if (parent instanceof MondrianGuiDef.Join) {
          int indexOfChild=tree.getModel().getIndexOfChild(parent,value);
switch (indexOfChild) {
case 0:
            prefix=workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str") + "String_Node_Str";
          break;
case 1:
        prefix=workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str") + "String_Node_Str";
      break;
  }
}
}
}
if (value instanceof MondrianGuiDef.Join) {
setText(workbench.getResourceConverter().getFormattedString("String_Node_Str","String_Node_Str",new String[]{prefix}));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.Table) {
setText(workbench.getResourceConverter().getFormattedString("String_Node_Str","String_Node_Str",new String[]{(prefix.length() == 0 ? "String_Node_Str" : prefix + "String_Node_Str"),((MondrianGuiDef.Table)value).name}));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
this.getPreferredSize();
this.setPreferredSize(new Dimension(this.getPreferredSize().width + 35,24));
}
 else if (value instanceof MondrianGuiDef.Level) {
setText(invalidFlag,((MondrianGuiDef.Level)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
this.setPreferredSize(new java.awt.Dimension(this.getPreferredSize().width + 1,25));
}
 else if (value instanceof MondrianGuiDef.Measure) {
setText(invalidFlag,((MondrianGuiDef.Measure)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.MemberReaderParameter) {
setText(invalidFlag,((MondrianGuiDef.MemberReaderParameter)value).name);
}
 else if (value instanceof MondrianGuiDef.Property) {
setText(invalidFlag,((MondrianGuiDef.Property)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.Schema) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.NamedSet) {
setText(invalidFlag,((MondrianGuiDef.NamedSet)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.CalculatedMember) {
setText(invalidFlag,((MondrianGuiDef.CalculatedMember)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.CalculatedMemberProperty) {
setText(invalidFlag,((MondrianGuiDef.CalculatedMemberProperty)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.UserDefinedFunction) {
setText(invalidFlag,((MondrianGuiDef.UserDefinedFunction)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.Role) {
setText(invalidFlag,((MondrianGuiDef.Role)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.SchemaGrant) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.CubeGrant) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.DimensionGrant) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.HierarchyGrant) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.MemberGrant) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.SQL) {
setText(invalidFlag,((MondrianGuiDef.SQL)value).dialect);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.View) {
setText(workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
}
 else if (value instanceof MondrianGuiDef.VirtualCube) {
setText(invalidFlag,((MondrianGuiDef.VirtualCube)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.VirtualCubeDimension) {
setText(invalidFlag,((MondrianGuiDef.VirtualCubeDimension)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.VirtualCubeMeasure) {
setText(invalidFlag,((MondrianGuiDef.VirtualCubeMeasure)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.AggName) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.AggForeignKey) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.AggIgnoreColumn) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.AggLevel) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.AggMeasure) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.AggPattern) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.AggExclude) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.Closure) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof ElementDef) {
setText(((ElementDef)value).getName());
}
 else {
super.setText("String_Node_Str");
}
return this;
}

Fixed version (ground truth):
public Component getTreeCellRendererComponent(JTree tree,Object value,boolean sel,boolean expanded,boolean leaf,int row,boolean hasFocus){
  super.getTreeCellRendererComponent(tree,value,sel,expanded,leaf,row,hasFocus);
  invalidFlag=isInvalid(tree,value,row);
  this.setPreferredSize(null);
  if (value instanceof MondrianGuiDef.Cube) {
    setText(invalidFlag,((MondrianGuiDef.Cube)value).name);
    super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
  }
 else   if (value instanceof MondrianGuiDef.Column) {
    setText(invalidFlag,((MondrianGuiDef.Column)value).name);
  }
 else   if (value instanceof MondrianGuiDef.Dimension) {
    super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
    setText(invalidFlag,((MondrianGuiDef.CubeDimension)value).name);
    this.setPreferredSize(new java.awt.Dimension(this.getPreferredSize().width + 1,25));
  }
 else   if (value instanceof MondrianGuiDef.DimensionUsage) {
    super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
    setText(invalidFlag,((MondrianGuiDef.CubeDimension)value).name);
  }
 else   if (value instanceof MondrianGuiDef.KeyExpression) {
    super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
    setText(workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
  }
 else   if (value instanceof MondrianGuiDef.NameExpression) {
    super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
    setText(workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
  }
 else   if (value instanceof MondrianGuiDef.OrdinalExpression) {
    super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
    setText(workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
  }
 else   if (value instanceof MondrianGuiDef.ParentExpression) {
    super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
    setText(workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
  }
 else   if (value instanceof MondrianGuiDef.Expression) {
    setText(workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
  }
 else   if (value instanceof MondrianGuiDef.ExpressionView) {
    setText(workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
  }
 else   if (value instanceof MondrianGuiDef.Hierarchy) {
    setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
    super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
    this.setPreferredSize(new java.awt.Dimension(this.getPreferredSize().width + 1,25));
  }
 else   if ((value instanceof MondrianGuiDef.RelationOrJoin) || (value instanceof MondrianGuiDef.Table)) {
    TreePath tpath=tree.getPathForRow(row);
    String prefix="String_Node_Str";
    if (tpath != null) {
      TreePath parentpath=tpath.getParentPath();
      if (parentpath != null) {
        Object parent=parentpath.getLastPathComponent();
        if (parent instanceof MondrianGuiDef.Join) {
          int indexOfChild=tree.getModel().getIndexOfChild(parent,value);
switch (indexOfChild) {
case 0:
            prefix=workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str") + "String_Node_Str";
          break;
case 1:
        prefix=workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str") + "String_Node_Str";
      break;
  }
}
}
}
if (value instanceof MondrianGuiDef.Join) {
setText(workbench.getResourceConverter().getFormattedString("String_Node_Str","String_Node_Str",new String[]{prefix}));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.Table) {
MondrianGuiDef.Table theTable=(MondrianGuiDef.Table)value;
String theName=(theTable.alias != null && theTable.alias.trim().length() > 0) ? theTable.alias : theTable.name;
setText(workbench.getResourceConverter().getFormattedString("String_Node_Str","String_Node_Str",new String[]{(prefix.length() == 0 ? "String_Node_Str" : prefix + "String_Node_Str"),theName}));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
this.getPreferredSize();
this.setPreferredSize(new Dimension(this.getPreferredSize().width + 35,24));
}
 else if (value instanceof MondrianGuiDef.Level) {
setText(invalidFlag,((MondrianGuiDef.Level)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
this.setPreferredSize(new java.awt.Dimension(this.getPreferredSize().width + 1,25));
}
 else if (value instanceof MondrianGuiDef.Measure) {
setText(invalidFlag,((MondrianGuiDef.Measure)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.MemberReaderParameter) {
setText(invalidFlag,((MondrianGuiDef.MemberReaderParameter)value).name);
}
 else if (value instanceof MondrianGuiDef.Property) {
setText(invalidFlag,((MondrianGuiDef.Property)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.Schema) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.NamedSet) {
setText(invalidFlag,((MondrianGuiDef.NamedSet)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.CalculatedMember) {
setText(invalidFlag,((MondrianGuiDef.CalculatedMember)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.CalculatedMemberProperty) {
setText(invalidFlag,((MondrianGuiDef.CalculatedMemberProperty)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.UserDefinedFunction) {
setText(invalidFlag,((MondrianGuiDef.UserDefinedFunction)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.Role) {
setText(invalidFlag,((MondrianGuiDef.Role)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.SchemaGrant) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.CubeGrant) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.DimensionGrant) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.HierarchyGrant) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.MemberGrant) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.SQL) {
setText(invalidFlag,((MondrianGuiDef.SQL)value).dialect);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.View) {
setText(workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
}
 else if (value instanceof MondrianGuiDef.VirtualCube) {
setText(invalidFlag,((MondrianGuiDef.VirtualCube)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.VirtualCubeDimension) {
setText(invalidFlag,((MondrianGuiDef.VirtualCubeDimension)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.VirtualCubeMeasure) {
setText(invalidFlag,((MondrianGuiDef.VirtualCubeMeasure)value).name);
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.AggName) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.AggForeignKey) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.AggIgnoreColumn) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.AggLevel) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.AggMeasure) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.AggPattern) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.AggExclude) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof MondrianGuiDef.Closure) {
setText(invalidFlag,workbench.getResourceConverter().getString("String_Node_Str","String_Node_Str"));
super.setIcon(new ImageIcon(myClassLoader.getResource(workbench.getResourceConverter().getGUIReference("String_Node_Str"))));
}
 else if (value instanceof ElementDef) {
setText(((ElementDef)value).getName());
}
 else {
super.setText("String_Node_Str");
}
return this;
}