Commits

Martin Skurla committed 3676f6e

[File System Browser module]
- added custom code for creating BeanTreeView

Comments (0)

Files changed (2)

File System Browser/src/org/crazyjavahacking/astvisualizer/filesystembrowser/FileSystemBrowserTopComponent.form

   </Layout>
   <SubComponents>
     <Container class="javax.swing.JScrollPane" name="scrollPane">
+      <AuxValues>
+        <AuxValue name="JavaCodeGenerator_CreateCodeCustom" type="java.lang.String" value="new BeanTreeView();"/>
+      </AuxValues>
 
       <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
     </Container>

File System Browser/src/org/crazyjavahacking/astvisualizer/filesystembrowser/FileSystemBrowserTopComponent.java

 import org.openide.awt.ActionID;
 import org.openide.awt.ActionReference;
 import org.openide.explorer.ExplorerManager;
+import org.openide.explorer.view.BeanTreeView;
 import org.openide.util.NbBundle.Messages;
 import org.openide.windows.TopComponent;
 
     // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
     private void initComponents() {
 
-        scrollPane = new JScrollPane();
+        scrollPane = new BeanTreeView();
 
         GroupLayout layout = new GroupLayout(this);
         this.setLayout(layout);