5 package org.sleuthkit.autopsy.modules.fileextmismatch;
7 import java.beans.PropertyChangeListener;
8 import java.beans.PropertyChangeSupport;
9 import javax.swing.JComponent;
10 import org.netbeans.spi.options.OptionsPanelController;
11 import org.openide.util.HelpCtx;
12 import org.openide.util.Lookup;
13 import org.openide.util.NbBundle;
15 import java.util.logging.Level;
18 @OptionsPanelController.TopLevelRegistration(
19 categoryName =
"#OptionsCategory_Name_FileExtMismatchOptions",
20 iconBase =
"org/sleuthkit/autopsy/modules/fileextmismatch/options-icon.png",
22 keywords =
"#OptionsCategory_FileExtMismatch",
23 keywordsCategory =
"KeywordSearchOptions")
26 private FileExtMismatchSettingsPanel
panel;
27 private final PropertyChangeSupport
pcs =
new PropertyChangeSupport(
this);
71 pcs.addPropertyChangeListener(l);
76 pcs.removePropertyChangeListener(l);
79 private FileExtMismatchSettingsPanel
getPanel() {
81 panel =
new FileExtMismatchSettingsPanel();
91 pcs.firePropertyChange(OptionsPanelController.PROP_CHANGED,
false,
true);
92 }
catch (Exception e) {
93 logger.log(Level.SEVERE,
"FileExtMismatchOptionsPanelController listener threw exception", e);
94 MessageNotifyUtil.Notify.show(
95 NbBundle.getMessage(
this.getClass(),
"FileExtMismatchOptionsPanelController.moduleErr"),
96 NbBundle.getMessage(
this.getClass(),
"FileExtMismatchOptionsPanelController.moduleErr.msg"),
97 MessageNotifyUtil.MessageType.ERROR);
102 pcs.firePropertyChange(OptionsPanelController.PROP_VALID, null, null);
103 }
catch (Exception e) {
104 logger.log(Level.SEVERE,
"FileExtMismatchOptionsPanelController listener threw exception", e);
105 MessageNotifyUtil.Notify.show(
106 NbBundle.getMessage(
this.getClass(),
"FileExtMismatchOptionsPanelController.moduleErr"),
107 NbBundle.getMessage(
this.getClass(),
"FileExtMismatchOptionsPanelController.moduleErr.msg"),
108 MessageNotifyUtil.MessageType.ERROR);
void addPropertyChangeListener(PropertyChangeListener l)
FileExtMismatchSettingsPanel getPanel()
static final Logger logger
final PropertyChangeSupport pcs
FileExtMismatchSettingsPanel panel
JComponent getComponent(Lookup masterLookup)
static Logger getLogger(String name)
void removePropertyChangeListener(PropertyChangeListener l)