19 package org.sleuthkit.autopsy.commandlineingest;
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(categoryName =
"#OptionsCategory_Name_Command_Line_Ingest",
33 iconBase =
"org/sleuthkit/autopsy/images/command_line_icon.png",
35 keywords =
"#OptionsCategory_Keywords_Command_Line_Ingest_Settings",
36 keywordsCategory =
"Command Line Ingest")
40 private final PropertyChangeSupport
pcs =
new PropertyChangeSupport(
this);
82 if (pcs.getPropertyChangeListeners().length == 0) {
83 pcs.addPropertyChangeListener(l);
101 panel.setSize(750, 600);
111 pcs.firePropertyChange(OptionsPanelController.PROP_CHANGED,
false,
true);
112 }
catch (Exception e) {
113 logger.log(Level.SEVERE,
"GeneralOptionsPanelController listener threw exception", e);
114 MessageNotifyUtil.Notify.show(
115 NbBundle.getMessage(
this.getClass(),
"GeneralOptionsPanelController.moduleErr"),
116 NbBundle.getMessage(
this.getClass(),
"GeneralOptionsPanelController.moduleErr.msg"),
117 MessageNotifyUtil.MessageType.ERROR);
122 pcs.firePropertyChange(OptionsPanelController.PROP_VALID, null, null);
123 }
catch (Exception e) {
124 logger.log(Level.SEVERE,
"GeneralOptionsPanelController listener threw exception", e);
125 MessageNotifyUtil.Notify.show(
126 NbBundle.getMessage(
this.getClass(),
"GeneralOptionsPanelController.moduleErr"),
127 NbBundle.getMessage(
this.getClass(),
"GeneralOptionsPanelController.moduleErr.msg"),
128 MessageNotifyUtil.MessageType.ERROR);
CommandLineIngestSettingsPanel panel
JComponent getComponent(Lookup masterLookup)
static final Logger logger
CommandLineIngestSettingsPanel getPanel()
void addPropertyChangeListener(PropertyChangeListener l)
final PropertyChangeSupport pcs
synchronized static Logger getLogger(String name)
void removePropertyChangeListener(PropertyChangeListener l)