Search in sources :

Example 1 with JavaTranslator

use of com.google.classyshark.silverghost.translator.java.JavaTranslator in project android-classyshark by google.

the class DisplayArea method main.

public static void main(String[] args) {
    DisplayArea da = new DisplayArea(null);
    Translator emitter = new JavaTranslator(StringTokenizer.class);
    emitter.apply();
    da.displayClass(emitter.getElementsList(), "");
    JFrame frame = new JFrame("Test");
    frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    frame.getContentPane().add(da.onAddComponentToPane());
    frame.pack();
    frame.setVisible(true);
}
Also used : Translator(com.google.classyshark.silverghost.translator.Translator) JavaTranslator(com.google.classyshark.silverghost.translator.java.JavaTranslator) JFrame(javax.swing.JFrame) JavaTranslator(com.google.classyshark.silverghost.translator.java.JavaTranslator)

Aggregations

Translator (com.google.classyshark.silverghost.translator.Translator)1 JavaTranslator (com.google.classyshark.silverghost.translator.java.JavaTranslator)1 JFrame (javax.swing.JFrame)1