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);
80 if (pcs.getPropertyChangeListeners().length == 0) {
81 pcs.addPropertyChangeListener(l);
99 panel.setSize(750, 600);
109 pcs.firePropertyChange(OptionsPanelController.PROP_CHANGED,
false,
true);
110 }
catch (Exception e) {
111 logger.log(Level.SEVERE,
"GeneralOptionsPanelController listener threw exception", e);
112 MessageNotifyUtil.Notify.show(
113 NbBundle.getMessage(
this.getClass(),
"GeneralOptionsPanelController.moduleErr"),
114 NbBundle.getMessage(
this.getClass(),
"GeneralOptionsPanelController.moduleErr.msg"),
115 MessageNotifyUtil.MessageType.ERROR);
120 pcs.firePropertyChange(OptionsPanelController.PROP_VALID, null, null);
121 }
catch (Exception e) {
122 logger.log(Level.SEVERE,
"GeneralOptionsPanelController listener threw exception", e);
123 MessageNotifyUtil.Notify.show(
124 NbBundle.getMessage(
this.getClass(),
"GeneralOptionsPanelController.moduleErr"),
125 NbBundle.getMessage(
this.getClass(),
"GeneralOptionsPanelController.moduleErr.msg"),
126 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)