19 package org.sleuthkit.autopsy.corecomponents;
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;
33 @OptionsPanelController.TopLevelRegistration(categoryName =
"#OptionsCategory_Name_Multi_User_Settings",
34 iconBase =
"org/sleuthkit/autopsy/images/User-Group-icon-green32.png",
36 keywords =
"#OptionsCategory_Keywords_Multi_User_Options",
37 keywordsCategory =
"Multi-User")
41 private final PropertyChangeSupport
pcs =
new PropertyChangeSupport(
this);
83 if (pcs.getPropertyChangeListeners().length == 0) {
84 pcs.addPropertyChangeListener(l);
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);
JComponent getComponent(Lookup masterLookup)
final PropertyChangeSupport pcs
MultiUserSettingsPanel panel
static final Logger logger
MultiUserSettingsPanel getPanel()
void removePropertyChangeListener(PropertyChangeListener l)
synchronized static Logger getLogger(String name)
static boolean isCaseOpen()
void addPropertyChangeListener(PropertyChangeListener l)