01: package org.columba.core.gui.globalactions;
02:
03: import java.awt.event.ActionEvent;
04: import java.io.File;
05:
06: import org.columba.api.gui.frame.IFrameMediator;
07: import org.columba.core.config.DefaultConfigDirectory;
08: import org.columba.core.desktop.ColumbaDesktop;
09: import org.columba.core.gui.action.AbstractColumbaAction;
10: import org.columba.core.resourceloader.GlobalResourceLoader;
11:
12: public class ViewLogAction extends AbstractColumbaAction {
13:
14: public ViewLogAction(IFrameMediator frameMediator) {
15: super (frameMediator, GlobalResourceLoader.getString(null, null,
16: "menu_utilities_showerrorlog"));
17: }
18:
19: /**
20: * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
21: */
22: public void actionPerformed(ActionEvent evt) {
23: File file = DefaultConfigDirectory.getInstance()
24: .getCurrentPath();
25: File logDirectory = new File(file, "log");
26: File logFile = new File(logDirectory, "columba.log");
27:
28: ColumbaDesktop.getInstance().open(logFile);
29: }
30:
31: }
|