private void InitBlock(StringTemplateTreeView enclosingInstance)
 {
     this.enclosingInstance = enclosingInstance;
 }
 public static void Main(System.String[] args)
 {
     StringTemplateGroup group = new StringTemplateGroup("dummy");
     StringTemplate bold = group.defineTemplate("bold", "<b>$attr$</b>");
     StringTemplate banner = group.defineTemplate("banner", "the banner");
     StringTemplate st = new StringTemplate(group, "<html>\n" + "$banner(a=b)$" + "<p><b>$name$:$email$</b>" + "$if(member)$<i>$fontTag$member</font></i>$endif$");
     st.setAttribute("name", "Terence");
     st.setAttribute("name", "Tom");
     st.setAttribute("email", "*****@*****.**");
     st.setAttribute("templateAttr", bold);
     StringTemplateTreeView frame = new StringTemplateTreeView("StringTemplate JTree Example", st);
     //UPGRADE_TODO: Method 'java.awt.Component.setVisible' was converted to 'System.Windows.Forms.Control.Visible' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javaawtComponentsetVisible_boolean_3"'
     //UPGRADE_TODO: 'System.Windows.Forms.Application.Run' must be called to start a main form. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1135_3"'
     frame.Visible = true;
 }
 public AnonymousClassWindowAdapter(StringTemplateTreeView enclosingInstance)
 {
     InitBlock(enclosingInstance);
 }