public ViewQueryCacheAction(String name, Icon icon, String tooltip) {
super(name, icon, tooltip);
}
public void actionPerformed(ActionEvent e) {
if (_queryView == null) {
_queryView = new PreparedQueryViewer(OpenJPAPersistence.cast(getService().getUnit()));
showTab(_tabbedPane, "JPQL Query", new JScrollPane(_queryView));
}
showTab(_tabbedPane, "JPQL Queries", _queryView);
}