Search in sources :

Example 6 with ContentReader

use of com.google.classyshark.silverghost.contentreader.ContentReader in project android-classyshark by google.

the class FilesTree method main.

public static void main(String[] args) {
    File test = new File(System.getProperty("user.home") + "/Desktop/ClassyShark/Scenarios/7 Jayce/data.jar");
    FilesTree filesTree = new FilesTree(null);
    ContentReader loader = new ContentReader(test);
    loader.load();
    Reducer reducer = new Reducer(loader.getAllClassNames());
    reducer.reduce("");
    filesTree.fillArchive(test, reducer.getAllClassNames(), loader.getAllComponents());
    for (String s : reducer.getAllClassNames()) {
        System.out.println(NodeInfo.extractClassName(s));
    }
    JFrame frame = new JFrame("Test");
    JScrollPane scrolledTree = new JScrollPane(filesTree.getJTree());
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.getContentPane().add(scrolledTree);
    frame.pack();
    frame.setVisible(true);
}
Also used : JScrollPane(javax.swing.JScrollPane) JFrame(javax.swing.JFrame) ContentReader(com.google.classyshark.silverghost.contentreader.ContentReader) Reducer(com.google.classyshark.gui.panel.reducer.Reducer) File(java.io.File)

Aggregations

ContentReader (com.google.classyshark.silverghost.contentreader.ContentReader)6 Reducer (com.google.classyshark.gui.panel.reducer.Reducer)2 File (java.io.File)2 Translator (com.google.classyshark.silverghost.translator.Translator)1 RandomAccessFile (java.io.RandomAccessFile)1 LinkedList (java.util.LinkedList)1 JFrame (javax.swing.JFrame)1 JScrollPane (javax.swing.JScrollPane)1