19 package org.sleuthkit.autopsy.corecomponents;
 
   21 import java.beans.PropertyChangeEvent;
 
   22 import java.util.EnumSet;
 
   23 import java.util.Objects;
 
   24 import java.util.TimeZone;
 
   25 import javax.swing.JPanel;
 
   26 import javax.swing.JSpinner;
 
   27 import org.netbeans.spi.options.OptionsPanelController;
 
   38 @SuppressWarnings(
"PMD.SingularField") 
 
   51         this.immediateUpdates = immediateUpdates;
 
   54             currentCaseSettingsPanel.setEnabled(evt.getNewValue() != null);
 
   55             radioGroupByDataType.setEnabled(evt.getNewValue() != null);
 
   56             radioGroupByPersonHost.setEnabled(evt.getNewValue() != null);
 
   61         ((JSpinner.DefaultEditor) maxResultsSpinner.getEditor()).getTextField().setEditable(
false);
 
   68         keepCurrentViewerRadioButton.setSelected(keepPreferredViewer);
 
   69         useBestViewerRadioButton.setSelected(!keepPreferredViewer);
 
   72         timeZoneList.setEnabled(!useLocalTime);
 
   74         useLocalTimeRadioButton.setSelected(useLocalTime);
 
   75         useAnotherTimeRadioButton.setSelected(!useLocalTime);
 
   89         fileNameTranslationColumnCheckbox.setEnabled(tts.
hasProvider());
 
   95         currentCaseSettingsPanel.setEnabled(caseIsOpen);
 
   96         radioGroupByDataType.setEnabled(caseIsOpen);
 
   97         radioGroupByPersonHost.setEnabled(caseIsOpen);
 
  100         radioGroupByDataType.setSelected(!groupByHostPersonTypes);
 
  101         radioGroupByPersonHost.setSelected(groupByHostPersonTypes);
 
  104             radioGroupByDataType.setEnabled(
false);
 
  105             radioGroupByPersonHost.setEnabled(
false);
 
  116         if (useAnotherTimeRadioButton.isSelected()) {
 
  128         storeGroupItemsInTreeByDataSource();
 
  153     @SuppressWarnings(
"unchecked")
 
  155     private 
void initComponents() {
 
  157         curCaseRadioGroup = 
new javax.swing.ButtonGroup();
 
  158         viewPreferencesScrollPane = 
new javax.swing.JScrollPane();
 
  159         viewPreferencesPanel = 
new javax.swing.JPanel();
 
  160         globalSettingsPanel = 
new javax.swing.JPanel();
 
  161         selectFileLabel = 
new javax.swing.JLabel();
 
  162         useBestViewerRadioButton = 
new javax.swing.JRadioButton();
 
  163         keepCurrentViewerRadioButton = 
new javax.swing.JRadioButton();
 
  164         hideKnownFilesLabel = 
new javax.swing.JLabel();
 
  165         dataSourcesHideKnownCheckbox = 
new javax.swing.JCheckBox();
 
  166         viewsHideKnownCheckbox = 
new javax.swing.JCheckBox();
 
  167         hideSlackFilesLabel = 
new javax.swing.JLabel();
 
  168         dataSourcesHideSlackCheckbox = 
new javax.swing.JCheckBox();
 
  169         viewsHideSlackCheckbox = 
new javax.swing.JCheckBox();
 
  170         displayTimeLabel = 
new javax.swing.JLabel();
 
  171         useLocalTimeRadioButton = 
new javax.swing.JRadioButton();
 
  172         useAnotherTimeRadioButton = 
new javax.swing.JRadioButton();
 
  173         hideOtherUsersTagsCheckbox = 
new javax.swing.JCheckBox();
 
  174         hideOtherUsersTagsLabel = 
new javax.swing.JLabel();
 
  175         scoColumnsLabel = 
new javax.swing.JLabel();
 
  176         scoColumnsCheckbox = 
new javax.swing.JCheckBox();
 
  177         jScrollPane1 = 
new javax.swing.JScrollPane();
 
  178         timeZoneList = 
new javax.swing.JList<>();
 
  179         translateTextLabel = 
new javax.swing.JLabel();
 
  180         scoColumnsWrapAroundText = 
new javax.swing.JLabel();
 
  181         fileNameTranslationColumnCheckbox = 
new javax.swing.JCheckBox();
 
  182         maxResultsLabel = 
new javax.swing.JLabel();
 
  183         maxResultsSpinner = 
new javax.swing.JSpinner();
 
  184         currentCaseSettingsPanel = 
new javax.swing.JPanel();
 
  185         radioGroupByPersonHost = 
new javax.swing.JRadioButton();
 
  186         radioGroupByDataType = 
new javax.swing.JRadioButton();
 
  187         currentSessionSettingsPanel = 
new javax.swing.JPanel();
 
  188         hideRejectedResultsCheckbox = 
new javax.swing.JCheckBox();
 
  190         setMinimumSize(
new java.awt.Dimension(727, 520));
 
  191         setPreferredSize(
new java.awt.Dimension(727, 520));
 
  193         viewPreferencesScrollPane.setBorder(null);
 
  194         viewPreferencesScrollPane.setMinimumSize(
new java.awt.Dimension(727, 500));
 
  195         viewPreferencesScrollPane.setPreferredSize(
new java.awt.Dimension(727, 500));
 
  197         viewPreferencesPanel.setPreferredSize(
new java.awt.Dimension(727, 492));
 
  199         globalSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.globalSettingsPanel.border.title"))); 
 
  201         org.openide.awt.Mnemonics.setLocalizedText(selectFileLabel, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.selectFileLabel.text")); 
 
  203         org.openide.awt.Mnemonics.setLocalizedText(useBestViewerRadioButton, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.useBestViewerRadioButton.text")); 
 
  204         useBestViewerRadioButton.setToolTipText(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.useBestViewerRadioButton.toolTipText")); 
 
  205         useBestViewerRadioButton.addActionListener(
new java.awt.event.ActionListener() {
 
  206             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  207                 useBestViewerRadioButtonActionPerformed(evt);
 
  211         org.openide.awt.Mnemonics.setLocalizedText(keepCurrentViewerRadioButton, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.keepCurrentViewerRadioButton.text")); 
 
  212         keepCurrentViewerRadioButton.setToolTipText(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.keepCurrentViewerRadioButton.toolTipText")); 
 
  213         keepCurrentViewerRadioButton.addActionListener(
new java.awt.event.ActionListener() {
 
  214             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  215                 keepCurrentViewerRadioButtonActionPerformed(evt);
 
  219         org.openide.awt.Mnemonics.setLocalizedText(hideKnownFilesLabel, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.hideKnownFilesLabel.text")); 
 
  221         org.openide.awt.Mnemonics.setLocalizedText(dataSourcesHideKnownCheckbox, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.dataSourcesHideKnownCheckbox.text")); 
 
  222         dataSourcesHideKnownCheckbox.addActionListener(
new java.awt.event.ActionListener() {
 
  223             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  224                 dataSourcesHideKnownCheckboxActionPerformed(evt);
 
  228         org.openide.awt.Mnemonics.setLocalizedText(viewsHideKnownCheckbox, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.viewsHideKnownCheckbox.text")); 
 
  229         viewsHideKnownCheckbox.addActionListener(
new java.awt.event.ActionListener() {
 
  230             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  231                 viewsHideKnownCheckboxActionPerformed(evt);
 
  235         org.openide.awt.Mnemonics.setLocalizedText(hideSlackFilesLabel, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.hideSlackFilesLabel.text")); 
 
  237         org.openide.awt.Mnemonics.setLocalizedText(dataSourcesHideSlackCheckbox, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.dataSourcesHideSlackCheckbox.text")); 
 
  238         dataSourcesHideSlackCheckbox.addActionListener(
new java.awt.event.ActionListener() {
 
  239             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  240                 dataSourcesHideSlackCheckboxActionPerformed(evt);
 
  244         org.openide.awt.Mnemonics.setLocalizedText(viewsHideSlackCheckbox, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.viewsHideSlackCheckbox.text")); 
 
  245         viewsHideSlackCheckbox.addActionListener(
new java.awt.event.ActionListener() {
 
  246             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  247                 viewsHideSlackCheckboxActionPerformed(evt);
 
  251         org.openide.awt.Mnemonics.setLocalizedText(displayTimeLabel, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.displayTimeLabel.text")); 
 
  253         org.openide.awt.Mnemonics.setLocalizedText(useLocalTimeRadioButton, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.useLocalTimeRadioButton.text")); 
 
  254         useLocalTimeRadioButton.addActionListener(
new java.awt.event.ActionListener() {
 
  255             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  256                 useLocalTimeRadioButtonActionPerformed(evt);
 
  260         org.openide.awt.Mnemonics.setLocalizedText(useAnotherTimeRadioButton, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.useAnotherTimeRadioButton.text")); 
 
  261         useAnotherTimeRadioButton.addActionListener(
new java.awt.event.ActionListener() {
 
  262             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  263                 useAnotherTimeRadioButtonActionPerformed(evt);
 
  267         org.openide.awt.Mnemonics.setLocalizedText(hideOtherUsersTagsCheckbox, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.hideOtherUsersTagsCheckbox.text")); 
 
  268         hideOtherUsersTagsCheckbox.addActionListener(
new java.awt.event.ActionListener() {
 
  269             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  270                 hideOtherUsersTagsCheckboxActionPerformed(evt);
 
  274         org.openide.awt.Mnemonics.setLocalizedText(hideOtherUsersTagsLabel, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.hideOtherUsersTagsLabel.text")); 
 
  276         org.openide.awt.Mnemonics.setLocalizedText(scoColumnsLabel, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.scoColumnsLabel.text")); 
 
  278         org.openide.awt.Mnemonics.setLocalizedText(scoColumnsCheckbox, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.scoColumnsCheckbox.text")); 
 
  279         scoColumnsCheckbox.addActionListener(
new java.awt.event.ActionListener() {
 
  280             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  281                 scoColumnsCheckboxActionPerformed(evt);
 
  285         jScrollPane1.setMaximumSize(
new java.awt.Dimension(150, 130));
 
  286         jScrollPane1.setPreferredSize(
new java.awt.Dimension(150, 130));
 
  288         timeZoneList.addListSelectionListener(
new javax.swing.event.ListSelectionListener() {
 
  289             public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
 
  290                 timeZoneListValueChanged(evt);
 
  293         jScrollPane1.setViewportView(timeZoneList);
 
  295         org.openide.awt.Mnemonics.setLocalizedText(translateTextLabel, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.translateTextLabel.text")); 
 
  297         org.openide.awt.Mnemonics.setLocalizedText(scoColumnsWrapAroundText, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.scoColumnsWrapAroundText.text")); 
 
  299         org.openide.awt.Mnemonics.setLocalizedText(fileNameTranslationColumnCheckbox, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.fileNameTranslationColumnCheckbox.text")); 
 
  300         fileNameTranslationColumnCheckbox.addActionListener(
new java.awt.event.ActionListener() {
 
  301             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  302                 fileNameTranslationColumnCheckboxActionPerformed(evt);
 
  306         org.openide.awt.Mnemonics.setLocalizedText(maxResultsLabel, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.maxResultsLabel.text")); 
 
  307         maxResultsLabel.setToolTipText(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.maxResultsLabel.toolTipText")); 
 
  309         maxResultsSpinner.setModel(
new javax.swing.SpinnerNumberModel(0, 0, 50000, 10000));
 
  310         maxResultsSpinner.addChangeListener(
new javax.swing.event.ChangeListener() {
 
  311             public void stateChanged(javax.swing.event.ChangeEvent evt) {
 
  312                 maxResultsSpinnerStateChanged(evt);
 
  316         javax.swing.GroupLayout globalSettingsPanelLayout = 
new javax.swing.GroupLayout(globalSettingsPanel);
 
  317         globalSettingsPanel.setLayout(globalSettingsPanelLayout);
 
  318         globalSettingsPanelLayout.setHorizontalGroup(
 
  319             globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  320             .addGroup(globalSettingsPanelLayout.createSequentialGroup()
 
  322                 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  323                     .addGroup(globalSettingsPanelLayout.createSequentialGroup()
 
  324                         .addComponent(maxResultsLabel)
 
  326                         .addComponent(maxResultsSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
 
  327                     .addGroup(globalSettingsPanelLayout.createSequentialGroup()
 
  328                         .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  329                             .addGroup(globalSettingsPanelLayout.createSequentialGroup()
 
  331                                 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, 
false)
 
  332                                     .addComponent(viewsHideKnownCheckbox)
 
  333                                     .addComponent(dataSourcesHideKnownCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 
  334                                     .addComponent(hideOtherUsersTagsCheckbox)
 
  335                                     .addComponent(viewsHideSlackCheckbox)
 
  336                                     .addComponent(hideOtherUsersTagsLabel)
 
  337                                     .addComponent(scoColumnsLabel)
 
  338                                     .addComponent(scoColumnsCheckbox)
 
  339                                     .addComponent(dataSourcesHideSlackCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 
  340                                     .addComponent(scoColumnsWrapAroundText)))
 
  341                             .addComponent(hideSlackFilesLabel)
 
  342                             .addComponent(hideKnownFilesLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 289, javax.swing.GroupLayout.PREFERRED_SIZE))
 
  343                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  344                         .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  345                             .addGroup(globalSettingsPanelLayout.createSequentialGroup()
 
  347                                 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  348                                     .addComponent(useLocalTimeRadioButton)
 
  349                                     .addComponent(keepCurrentViewerRadioButton)
 
  350                                     .addComponent(fileNameTranslationColumnCheckbox)
 
  351                                     .addComponent(useAnotherTimeRadioButton)
 
  352                                     .addComponent(useBestViewerRadioButton)
 
  353                                     .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE)))
 
  354                             .addComponent(displayTimeLabel)
 
  355                             .addComponent(selectFileLabel)
 
  356                             .addComponent(translateTextLabel))))
 
  357                 .addContainerGap(94, Short.MAX_VALUE))
 
  359         globalSettingsPanelLayout.setVerticalGroup(
 
  360             globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  361             .addGroup(globalSettingsPanelLayout.createSequentialGroup()
 
  363                 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  364                     .addGroup(globalSettingsPanelLayout.createSequentialGroup()
 
  365                         .addComponent(hideKnownFilesLabel)
 
  366                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  367                         .addComponent(dataSourcesHideKnownCheckbox)
 
  368                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  369                         .addComponent(viewsHideKnownCheckbox)
 
  370                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  371                         .addComponent(hideSlackFilesLabel)
 
  372                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  373                         .addComponent(dataSourcesHideSlackCheckbox)
 
  374                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  375                         .addComponent(viewsHideSlackCheckbox)
 
  376                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  377                         .addComponent(hideOtherUsersTagsLabel)
 
  378                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  379                         .addComponent(hideOtherUsersTagsCheckbox)
 
  380                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  381                         .addComponent(scoColumnsLabel)
 
  383                         .addComponent(scoColumnsCheckbox, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
 
  384                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  385                         .addComponent(scoColumnsWrapAroundText))
 
  386                     .addGroup(globalSettingsPanelLayout.createSequentialGroup()
 
  387                         .addComponent(selectFileLabel)
 
  388                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  389                         .addComponent(useBestViewerRadioButton)
 
  390                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  391                         .addComponent(keepCurrentViewerRadioButton)
 
  392                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  393                         .addComponent(displayTimeLabel)
 
  394                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  395                         .addComponent(useLocalTimeRadioButton)
 
  396                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  397                         .addComponent(useAnotherTimeRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
 
  398                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  399                         .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
 
  400                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  401                         .addComponent(translateTextLabel)
 
  402                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  403                         .addComponent(fileNameTranslationColumnCheckbox)))
 
  404                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  405                 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
 
  406                     .addComponent(maxResultsLabel)
 
  407                     .addComponent(maxResultsSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
 
  408                 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
 
  411         currentCaseSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.currentCaseSettingsPanel.border.title"))); 
 
  413         curCaseRadioGroup.add(radioGroupByPersonHost);
 
  414         org.openide.awt.Mnemonics.setLocalizedText(radioGroupByPersonHost, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.radioGroupByPersonHost.text")); 
 
  415         radioGroupByPersonHost.addActionListener(
new java.awt.event.ActionListener() {
 
  416             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  417                 radioGroupByPersonHostActionPerformed(evt);
 
  421         curCaseRadioGroup.add(radioGroupByDataType);
 
  422         org.openide.awt.Mnemonics.setLocalizedText(radioGroupByDataType, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.radioGroupByDataType.text")); 
 
  423         radioGroupByDataType.addActionListener(
new java.awt.event.ActionListener() {
 
  424             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  425                 radioGroupByDataTypeActionPerformed(evt);
 
  429         javax.swing.GroupLayout currentCaseSettingsPanelLayout = 
new javax.swing.GroupLayout(currentCaseSettingsPanel);
 
  430         currentCaseSettingsPanel.setLayout(currentCaseSettingsPanelLayout);
 
  431         currentCaseSettingsPanelLayout.setHorizontalGroup(
 
  432             currentCaseSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  433             .addGroup(currentCaseSettingsPanelLayout.createSequentialGroup()
 
  435                 .addGroup(currentCaseSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  436                     .addComponent(radioGroupByPersonHost)
 
  437                     .addComponent(radioGroupByDataType))
 
  438                 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
 
  440         currentCaseSettingsPanelLayout.setVerticalGroup(
 
  441             currentCaseSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  442             .addGroup(currentCaseSettingsPanelLayout.createSequentialGroup()
 
  443                 .addComponent(radioGroupByDataType)
 
  444                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
 
  445                 .addComponent(radioGroupByPersonHost)
 
  446                 .addGap(0, 6, Short.MAX_VALUE))
 
  449         currentSessionSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.currentSessionSettingsPanel.border.title"))); 
 
  451         org.openide.awt.Mnemonics.setLocalizedText(hideRejectedResultsCheckbox, 
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class, 
"ViewPreferencesPanel.hideRejectedResultsCheckbox.text")); 
 
  452         hideRejectedResultsCheckbox.addActionListener(
new java.awt.event.ActionListener() {
 
  453             public void actionPerformed(java.awt.event.ActionEvent evt) {
 
  454                 hideRejectedResultsCheckboxActionPerformed(evt);
 
  458         javax.swing.GroupLayout currentSessionSettingsPanelLayout = 
new javax.swing.GroupLayout(currentSessionSettingsPanel);
 
  459         currentSessionSettingsPanel.setLayout(currentSessionSettingsPanelLayout);
 
  460         currentSessionSettingsPanelLayout.setHorizontalGroup(
 
  461             currentSessionSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  462             .addGroup(currentSessionSettingsPanelLayout.createSequentialGroup()
 
  464                 .addComponent(hideRejectedResultsCheckbox)
 
  465                 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
 
  467         currentSessionSettingsPanelLayout.setVerticalGroup(
 
  468             currentSessionSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  469             .addGroup(currentSessionSettingsPanelLayout.createSequentialGroup()
 
  470                 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 
  471                 .addComponent(hideRejectedResultsCheckbox))
 
  474         javax.swing.GroupLayout viewPreferencesPanelLayout = 
new javax.swing.GroupLayout(viewPreferencesPanel);
 
  475         viewPreferencesPanel.setLayout(viewPreferencesPanelLayout);
 
  476         viewPreferencesPanelLayout.setHorizontalGroup(
 
  477             viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  478             .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, viewPreferencesPanelLayout.createSequentialGroup()
 
  480                 .addGroup(viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
 
  481                     .addComponent(currentSessionSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 
  482                     .addComponent(currentCaseSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 
  483                     .addComponent(globalSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
 
  486         viewPreferencesPanelLayout.setVerticalGroup(
 
  487             viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  488             .addGroup(viewPreferencesPanelLayout.createSequentialGroup()
 
  489                 .addComponent(globalSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
 
  490                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  491                 .addComponent(currentCaseSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
 
  492                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
 
  493                 .addComponent(currentSessionSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
 
  497         viewPreferencesScrollPane.setViewportView(viewPreferencesPanel);
 
  499         javax.swing.GroupLayout layout = 
new javax.swing.GroupLayout(
this);
 
  500         this.setLayout(layout);
 
  501         layout.setHorizontalGroup(
 
  502             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  503             .addComponent(viewPreferencesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
 
  505         layout.setVerticalGroup(
 
  506             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
 
  507             .addComponent(viewPreferencesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 520, Short.MAX_VALUE)
 
  512         if (immediateUpdates) {
 
  515             firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
 
  520         if (immediateUpdates) {
 
  523             firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
 
  528         if (immediateUpdates) {
 
  531             firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
 
  536         if (immediateUpdates && useAnotherTimeRadioButton.isSelected()) {
 
  539             firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
 
  544         if (immediateUpdates) {
 
  547             firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
 
  552         if (immediateUpdates) {
 
  555             firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
 
  560         useLocalTimeRadioButton.setSelected(
false);
 
  561         useAnotherTimeRadioButton.setSelected(
true);
 
  562         timeZoneList.setEnabled(
true);
 
  563         if (immediateUpdates) {
 
  566             firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
 
  571         useLocalTimeRadioButton.setSelected(
true);
 
  572         useAnotherTimeRadioButton.setSelected(
false);
 
  573         timeZoneList.setEnabled(
false);
 
  574         if (immediateUpdates) {
 
  577             firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
 
  582         if (immediateUpdates) {
 
  585             firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
 
  590         if (immediateUpdates) {
 
  593             firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
 
  598         if (immediateUpdates) {
 
  601             firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
 
  606         if (immediateUpdates) {
 
  609             firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
 
  614         useBestViewerRadioButton.setSelected(
false);
 
  615         keepCurrentViewerRadioButton.setSelected(
true);
 
  616         if (immediateUpdates) {
 
  619             firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
 
  624         useBestViewerRadioButton.setSelected(
true);
 
  625         keepCurrentViewerRadioButton.setSelected(
false);
 
  626         if (immediateUpdates) {
 
  629             firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
 
  634         if (immediateUpdates) {
 
  635             storeGroupItemsInTreeByDataSource();
 
  637             firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
 
  642         if (immediateUpdates) {
 
  643             storeGroupItemsInTreeByDataSource();
 
  645             firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
 
javax.swing.JLabel hideKnownFilesLabel
javax.swing.JLabel scoColumnsLabel
javax.swing.JCheckBox dataSourcesHideKnownCheckbox
final boolean immediateUpdates
javax.swing.JCheckBox viewsHideKnownCheckbox
javax.swing.JPanel currentSessionSettingsPanel
static void setKeepPreferredContentViewer(boolean value)
javax.swing.JRadioButton useLocalTimeRadioButton
javax.swing.JLabel selectFileLabel
javax.swing.JList< String > timeZoneList
static List< String > createTimeZoneList()
static boolean hideSlackFilesInDataSourcesTree()
void keepCurrentViewerRadioButtonActionPerformed(java.awt.event.ActionEvent evt)
void radioGroupByPersonHostActionPerformed(java.awt.event.ActionEvent evt)
javax.swing.JLabel scoColumnsWrapAroundText
static void setDisplayTimesInLocalTime(boolean value)
javax.swing.JCheckBox viewsHideSlackCheckbox
javax.swing.JRadioButton radioGroupByPersonHost
javax.swing.JPanel viewPreferencesPanel
javax.swing.JRadioButton radioGroupByDataType
void fileNameTranslationColumnCheckboxActionPerformed(java.awt.event.ActionEvent evt)
javax.swing.JSpinner maxResultsSpinner
void setShowRejectedResults(boolean showRejectedResults)
static void setHideSlackFilesInViewsTree(boolean value)
static boolean keepPreferredContentViewer()
static boolean hideKnownFilesInViewsTree()
static void setHideSCOColumns(boolean value)
javax.swing.JLabel maxResultsLabel
static void setResultsTablePageSize(int pageSize)
javax.swing.JCheckBox scoColumnsCheckbox
void useLocalTimeRadioButtonActionPerformed(java.awt.event.ActionEvent evt)
javax.swing.JRadioButton useBestViewerRadioButton
void hideRejectedResultsCheckboxActionPerformed(java.awt.event.ActionEvent evt)
void dataSourcesHideKnownCheckboxActionPerformed(java.awt.event.ActionEvent evt)
static boolean showOnlyCurrentUserTags()
static synchronized DirectoryTreeTopComponent getDefault()
static void setHideKnownFilesInViewsTree(boolean value)
void maxResultsSpinnerStateChanged(javax.swing.event.ChangeEvent evt)
static TextTranslationService getInstance()
static void setGroupItemsInTreeByDataSource(boolean value)
javax.swing.JLabel translateTextLabel
static String createTimeZoneString(TimeZone timeZone)
static boolean displayTranslatedFileNames()
javax.swing.JLabel displayTimeLabel
static void setTimeZoneForDisplays(String timeZone)
javax.swing.JPanel globalSettingsPanel
javax.swing.JLabel hideOtherUsersTagsLabel
static void setDisplayTranslatedFileNames(boolean value)
static boolean getHideSCOColumns()
javax.swing.JCheckBox dataSourcesHideSlackCheckbox
javax.swing.JRadioButton keepCurrentViewerRadioButton
static boolean hideSlackFilesInViewsTree()
javax.swing.JPanel currentCaseSettingsPanel
ViewPreferencesPanel(boolean immediateUpdates)
void hideOtherUsersTagsCheckboxActionPerformed(java.awt.event.ActionEvent evt)
static Boolean getGroupItemsInTreeByDataSource()
javax.swing.JCheckBox hideOtherUsersTagsCheckbox
static void setHideSlackFilesInDataSourcesTree(boolean value)
static void setHideKnownFilesInDataSourcesTree(boolean value)
void viewsHideKnownCheckboxActionPerformed(java.awt.event.ActionEvent evt)
synchronized boolean hasProvider()
void useBestViewerRadioButtonActionPerformed(java.awt.event.ActionEvent evt)
void useAnotherTimeRadioButtonActionPerformed(java.awt.event.ActionEvent evt)
void radioGroupByDataTypeActionPerformed(java.awt.event.ActionEvent evt)
static int getResultsTablePageSize()
static boolean hideKnownFilesInDataSourcesTree()
javax.swing.JScrollPane jScrollPane1
static String getTimeZoneForDisplays()
javax.swing.JLabel hideSlackFilesLabel
void timeZoneListValueChanged(javax.swing.event.ListSelectionEvent evt)
boolean getShowRejectedResults()
static void addEventTypeSubscriber(Set< Events > eventTypes, PropertyChangeListener subscriber)
javax.swing.JCheckBox hideRejectedResultsCheckbox
static void setShowOnlyCurrentUserTags(boolean value)
void dataSourcesHideSlackCheckboxActionPerformed(java.awt.event.ActionEvent evt)
void scoColumnsCheckboxActionPerformed(java.awt.event.ActionEvent evt)
javax.swing.JRadioButton useAnotherTimeRadioButton
javax.swing.JScrollPane viewPreferencesScrollPane
static boolean displayTimesInLocalTime()
static boolean isCaseOpen()
void storeGroupItemsInTreeByDataSource()
void viewsHideSlackCheckboxActionPerformed(java.awt.event.ActionEvent evt)
javax.swing.JCheckBox fileNameTranslationColumnCheckbox
javax.swing.ButtonGroup curCaseRadioGroup