void (GuiEditor designer) { clearTreeBuilder(); myComponentTree.setModel(new DefaultTreeModel(new DefaultMutableTreeNode())); myComponentTree.setEditor(designer); myPropertyInspector.setEditor(designer); if (designer == null) { myComponentTree.setFormEditor(null); } else { myComponentTree.setFormEditor(designer.getEditor()); myComponentTreeBuilder = new ComponentTreeBuilder(myComponentTree, designer); } }