01: package tijmp.actions;
02:
03: import java.awt.event.ActionEvent;
04: import javax.swing.AbstractAction;
05: import tijmp.ui.ClassInspector;
06: import tijmp.ui.Translator;
07: import tijmp.ui.ShowSimpleFrame;
08:
09: /** An action that shows the class inspection dialog.
10: */
11: public class InspectClass extends AbstractAction {
12: private Class<?> clz;
13:
14: public InspectClass(Class<?> clz) {
15: super ("Inspect class " + Translator.translate(clz));
16: this .clz = clz;
17: }
18:
19: public void actionPerformed(ActionEvent e) {
20: ClassInspector ci = new ClassInspector(clz);
21: String cn = Translator.translate(clz);
22: new ShowSimpleFrame().showFrame(cn + " info", ci);
23: }
24: }
|