19 package org.sleuthkit.autopsy.keywordsearch;
21 import java.beans.PropertyChangeListener;
22 import java.beans.PropertyChangeSupport;
23 import javax.swing.JComponent;
24 import org.netbeans.spi.options.OptionsPanelController;
25 import org.openide.util.HelpCtx;
26 import org.openide.util.Lookup;
27 import org.openide.util.NbBundle;
29 import java.util.logging.Level;
32 @OptionsPanelController.TopLevelRegistration(
33 categoryName =
"#OptionsCategory_Name_KeywordSearchOptions",
34 iconBase =
"org/sleuthkit/autopsy/keywordsearch/options-icon.png",
36 keywords =
"#OptionsCategory_Keywords_KeywordSearchOptions",
37 keywordsCategory =
"KeywordSearchOptions")
40 private KeywordSearchGlobalSettingsPanel
panel;
41 private final PropertyChangeSupport
pcs =
new PropertyChangeSupport(
this);
84 pcs.addPropertyChangeListener(l);
89 pcs.removePropertyChangeListener(l);
92 private KeywordSearchGlobalSettingsPanel
getPanel() {
94 panel =
new KeywordSearchGlobalSettingsPanel();
104 pcs.firePropertyChange(OptionsPanelController.PROP_CHANGED,
false,
true);
105 }
catch (Exception e) {
106 logger.log(Level.SEVERE,
"KeywordSearchOptionsPanelController listener threw exception", e);
107 MessageNotifyUtil.Notify.show(
108 NbBundle.getMessage(
this.getClass(),
"KeywordSearchOptionsPanelController.moduleErr"),
109 NbBundle.getMessage(
this.getClass(),
"KeywordSearchOptionsPanelController.moduleErr.msg1"),
110 MessageNotifyUtil.MessageType.ERROR);
114 pcs.firePropertyChange(OptionsPanelController.PROP_VALID, null, null);
115 }
catch (Exception e) {
116 logger.log(Level.SEVERE,
"KeywordSearchOptionsPanelController listener threw exception", e);
117 MessageNotifyUtil.Notify.show(
118 NbBundle.getMessage(
this.getClass(),
"KeywordSearchOptionsPanelController.moduleErr"),
119 NbBundle.getMessage(
this.getClass(),
"KeywordSearchOptionsPanelController.moduleErr.msg2"),
120 MessageNotifyUtil.MessageType.ERROR);
KeywordSearchGlobalSettingsPanel getPanel()
void addPropertyChangeListener(PropertyChangeListener l)
static final Logger logger
final PropertyChangeSupport pcs
KeywordSearchGlobalSettingsPanel panel
void removePropertyChangeListener(PropertyChangeListener l)
JComponent getComponent(Lookup masterLookup)
static Logger getLogger(String name)