public CreateSiteTemplate(FileObject root, FileObject externalSiteRoot, WizardPanel wp) { this.root = root; this.manager = new ExplorerManager(); this.wp = wp; try { if (externalSiteRoot != null) { ExternalSiteRootNode externalSiteRootNode = new ExternalSiteRootNode(DataObject.find(externalSiteRoot).getNodeDelegate(), externalSiteRoot.isFolder()); manager.setRootContext(new OurFilteredNode(DataObject.find(root).getNodeDelegate(), externalSiteRootNode)); } else { manager.setRootContext(new OurFilteredNode(DataObject.find(root).getNodeDelegate(), root.isFolder())); } } catch (DataObjectNotFoundException ex) { Exceptions.printStackTrace(ex); } initComponents(); tree = new OutlineView(); tree.setTreeSortable(false); placeholder.setLayout(new BorderLayout()); placeholder.add(tree, BorderLayout.CENTER); nameTextField.getDocument().addDocumentListener(this); fileTextField.getDocument().addDocumentListener(this); fileTextField.setText(new File(System.getProperty("user.home")).getAbsolutePath()); // NOI18N }