19 package org.sleuthkit.autopsy.keywordsearch;
21 import java.awt.event.ActionEvent;
22 import java.awt.event.ActionListener;
23 import java.awt.event.WindowAdapter;
24 import java.awt.event.WindowEvent;
25 import java.awt.event.WindowListener;
26 import org.openide.util.HelpCtx;
27 import org.openide.util.actions.CallableSystemAction;
33 class KeywordSearchConfigurationAction
extends CallableSystemAction {
35 private static final String ACTION_NAME =
org.openide.util.NbBundle.getMessage(DropdownToolbar.class,
"ListBundleConfig");
36 private KeywordSearchGlobalSettingsPanel panel;
39 public void performAction() {
40 final KeywordSearchGlobalSettingsPanel panel = getPanel();
42 final AdvancedConfigurationDialog dialog =
new AdvancedConfigurationDialog();
43 dialog.addApplyButtonListener(
new ActionListener() {
46 public void actionPerformed(ActionEvent e) {
51 WindowListener exitListener =
new WindowAdapter() {
54 public void windowClosing(WindowEvent e) {
56 XmlKeywordSearchList.getCurrent().reload();
59 dialog.addWindowListener(exitListener);
60 dialog.display(panel);
63 private KeywordSearchGlobalSettingsPanel getPanel() {
65 panel =
new KeywordSearchGlobalSettingsPanel();
71 public String getName() {
76 public HelpCtx getHelpCtx() {
77 return HelpCtx.DEFAULT_HELP;
81 protected boolean asynchronous() {