Autopsy  4.8.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
ViewPreferencesPanel.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2018 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.corecomponents;
20 
21 import java.util.Objects;
22 import javax.swing.JPanel;
23 import org.netbeans.spi.options.OptionsPanelController;
29 
33 public class ViewPreferencesPanel extends JPanel implements OptionsPanel {
34 
35  private final boolean immediateUpdates;
36 
43  public ViewPreferencesPanel(boolean immediateUpdates) {
45  this.immediateUpdates = immediateUpdates;
46  }
47 
48  @Override
49  public void load() {
50  // Global Settings
51  boolean keepPreferredViewer = UserPreferences.keepPreferredContentViewer();
52  keepCurrentViewerRadioButton.setSelected(keepPreferredViewer);
53  useBestViewerRadioButton.setSelected(!keepPreferredViewer);
54 
55  boolean useLocalTime = UserPreferences.displayTimesInLocalTime();
56  useLocalTimeRadioButton.setSelected(useLocalTime);
57  useGMTTimeRadioButton.setSelected(!useLocalTime);
58 
61 
64 
67 
68  // Current Case Settings
69  boolean caseIsOpen = Case.isCaseOpen();
70  currentCaseSettingsPanel.setEnabled(caseIsOpen);
71  groupByDataSourceCheckbox.setEnabled(caseIsOpen);
72 
75 
76  // Current Session Settings
78  }
79 
80  @Override
81  public void store() {
90 
92 
94  }
95 
107  }
108  }
109 
115  @SuppressWarnings("unchecked")
116  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
117  private void initComponents() {
118 
119  viewPreferencesScrollPane = new javax.swing.JScrollPane();
120  viewPreferencesPanel = new javax.swing.JPanel();
121  globalSettingsPanel = new javax.swing.JPanel();
122  selectFileLabel = new javax.swing.JLabel();
123  useBestViewerRadioButton = new javax.swing.JRadioButton();
124  keepCurrentViewerRadioButton = new javax.swing.JRadioButton();
125  hideKnownFilesLabel = new javax.swing.JLabel();
126  dataSourcesHideKnownCheckbox = new javax.swing.JCheckBox();
127  viewsHideKnownCheckbox = new javax.swing.JCheckBox();
128  hideSlackFilesLabel = new javax.swing.JLabel();
129  dataSourcesHideSlackCheckbox = new javax.swing.JCheckBox();
130  viewsHideSlackCheckbox = new javax.swing.JCheckBox();
131  displayTimeLabel = new javax.swing.JLabel();
132  useLocalTimeRadioButton = new javax.swing.JRadioButton();
133  useGMTTimeRadioButton = new javax.swing.JRadioButton();
134  hideOtherUsersTagsCheckbox = new javax.swing.JCheckBox();
135  hideOtherUsersTagsLabel = new javax.swing.JLabel();
136  commentsOccurencesColumnsCheckbox = new javax.swing.JCheckBox();
137  centralRepoLabel = new javax.swing.JLabel();
138  currentCaseSettingsPanel = new javax.swing.JPanel();
139  groupByDataSourceCheckbox = new javax.swing.JCheckBox();
140  currentSessionSettingsPanel = new javax.swing.JPanel();
141  hideRejectedResultsCheckbox = new javax.swing.JCheckBox();
142 
143  viewPreferencesScrollPane.setBorder(null);
144 
145  globalSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.globalSettingsPanel.border.title"))); // NOI18N
146 
147  org.openide.awt.Mnemonics.setLocalizedText(selectFileLabel, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.selectFileLabel.text")); // NOI18N
148 
149  org.openide.awt.Mnemonics.setLocalizedText(useBestViewerRadioButton, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.useBestViewerRadioButton.text")); // NOI18N
150  useBestViewerRadioButton.setToolTipText(org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.useBestViewerRadioButton.toolTipText")); // NOI18N
151  useBestViewerRadioButton.addActionListener(new java.awt.event.ActionListener() {
152  public void actionPerformed(java.awt.event.ActionEvent evt) {
154  }
155  });
156 
157  org.openide.awt.Mnemonics.setLocalizedText(keepCurrentViewerRadioButton, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.keepCurrentViewerRadioButton.text")); // NOI18N
158  keepCurrentViewerRadioButton.setToolTipText(org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.keepCurrentViewerRadioButton.toolTipText")); // NOI18N
159  keepCurrentViewerRadioButton.addActionListener(new java.awt.event.ActionListener() {
160  public void actionPerformed(java.awt.event.ActionEvent evt) {
162  }
163  });
164 
165  org.openide.awt.Mnemonics.setLocalizedText(hideKnownFilesLabel, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.hideKnownFilesLabel.text")); // NOI18N
166 
167  org.openide.awt.Mnemonics.setLocalizedText(dataSourcesHideKnownCheckbox, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.dataSourcesHideKnownCheckbox.text")); // NOI18N
168  dataSourcesHideKnownCheckbox.addActionListener(new java.awt.event.ActionListener() {
169  public void actionPerformed(java.awt.event.ActionEvent evt) {
171  }
172  });
173 
174  org.openide.awt.Mnemonics.setLocalizedText(viewsHideKnownCheckbox, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.viewsHideKnownCheckbox.text")); // NOI18N
175  viewsHideKnownCheckbox.addActionListener(new java.awt.event.ActionListener() {
176  public void actionPerformed(java.awt.event.ActionEvent evt) {
178  }
179  });
180 
181  org.openide.awt.Mnemonics.setLocalizedText(hideSlackFilesLabel, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.hideSlackFilesLabel.text")); // NOI18N
182 
183  org.openide.awt.Mnemonics.setLocalizedText(dataSourcesHideSlackCheckbox, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.dataSourcesHideSlackCheckbox.text")); // NOI18N
184  dataSourcesHideSlackCheckbox.addActionListener(new java.awt.event.ActionListener() {
185  public void actionPerformed(java.awt.event.ActionEvent evt) {
187  }
188  });
189 
190  org.openide.awt.Mnemonics.setLocalizedText(viewsHideSlackCheckbox, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.viewsHideSlackCheckbox.text")); // NOI18N
191  viewsHideSlackCheckbox.addActionListener(new java.awt.event.ActionListener() {
192  public void actionPerformed(java.awt.event.ActionEvent evt) {
194  }
195  });
196 
197  org.openide.awt.Mnemonics.setLocalizedText(displayTimeLabel, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.displayTimeLabel.text")); // NOI18N
198 
199  org.openide.awt.Mnemonics.setLocalizedText(useLocalTimeRadioButton, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.useLocalTimeRadioButton.text")); // NOI18N
200  useLocalTimeRadioButton.addActionListener(new java.awt.event.ActionListener() {
201  public void actionPerformed(java.awt.event.ActionEvent evt) {
203  }
204  });
205 
206  org.openide.awt.Mnemonics.setLocalizedText(useGMTTimeRadioButton, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.useGMTTimeRadioButton.text")); // NOI18N
207  useGMTTimeRadioButton.addActionListener(new java.awt.event.ActionListener() {
208  public void actionPerformed(java.awt.event.ActionEvent evt) {
210  }
211  });
212 
213  org.openide.awt.Mnemonics.setLocalizedText(hideOtherUsersTagsCheckbox, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.hideOtherUsersTagsCheckbox.text")); // NOI18N
214  hideOtherUsersTagsCheckbox.addActionListener(new java.awt.event.ActionListener() {
215  public void actionPerformed(java.awt.event.ActionEvent evt) {
217  }
218  });
219 
220  org.openide.awt.Mnemonics.setLocalizedText(hideOtherUsersTagsLabel, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.hideOtherUsersTagsLabel.text")); // NOI18N
221 
222  org.openide.awt.Mnemonics.setLocalizedText(commentsOccurencesColumnsCheckbox, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.commentsOccurencesColumnsCheckbox.text")); // NOI18N
223  commentsOccurencesColumnsCheckbox.addActionListener(new java.awt.event.ActionListener() {
224  public void actionPerformed(java.awt.event.ActionEvent evt) {
226  }
227  });
228 
229  org.openide.awt.Mnemonics.setLocalizedText(centralRepoLabel, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.centralRepoLabel.text")); // NOI18N
230 
231  javax.swing.GroupLayout globalSettingsPanelLayout = new javax.swing.GroupLayout(globalSettingsPanel);
232  globalSettingsPanel.setLayout(globalSettingsPanelLayout);
233  globalSettingsPanelLayout.setHorizontalGroup(
234  globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
235  .addGroup(globalSettingsPanelLayout.createSequentialGroup()
236  .addContainerGap()
237  .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
238  .addGroup(globalSettingsPanelLayout.createSequentialGroup()
239  .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
240  .addComponent(hideKnownFilesLabel)
241  .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
242  .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
243  .addGroup(globalSettingsPanelLayout.createSequentialGroup()
244  .addGap(10, 10, 10)
245  .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
246  .addComponent(dataSourcesHideSlackCheckbox)
247  .addComponent(viewsHideSlackCheckbox)))
248  .addComponent(hideSlackFilesLabel))
249  .addGroup(globalSettingsPanelLayout.createSequentialGroup()
250  .addGap(10, 10, 10)
251  .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
252  .addComponent(dataSourcesHideKnownCheckbox)
253  .addComponent(viewsHideKnownCheckbox)))))
254  .addGap(18, 18, 18)
255  .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
256  .addComponent(displayTimeLabel)
257  .addGroup(globalSettingsPanelLayout.createSequentialGroup()
258  .addGap(10, 10, 10)
259  .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
260  .addComponent(keepCurrentViewerRadioButton)
261  .addComponent(useBestViewerRadioButton)
262  .addComponent(useGMTTimeRadioButton)
263  .addComponent(useLocalTimeRadioButton)))
264  .addComponent(selectFileLabel)))
265  .addComponent(hideOtherUsersTagsLabel)
266  .addComponent(centralRepoLabel)
267  .addGroup(globalSettingsPanelLayout.createSequentialGroup()
268  .addGap(10, 10, 10)
269  .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
270  .addComponent(commentsOccurencesColumnsCheckbox)
271  .addComponent(hideOtherUsersTagsCheckbox))))
272  .addContainerGap(16, Short.MAX_VALUE))
273  );
274  globalSettingsPanelLayout.setVerticalGroup(
275  globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
276  .addGroup(globalSettingsPanelLayout.createSequentialGroup()
277  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
278  .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
279  .addGroup(globalSettingsPanelLayout.createSequentialGroup()
280  .addComponent(hideKnownFilesLabel)
281  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
282  .addComponent(dataSourcesHideKnownCheckbox)
283  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
284  .addComponent(viewsHideKnownCheckbox)
285  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
286  .addComponent(hideSlackFilesLabel)
287  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
288  .addComponent(dataSourcesHideSlackCheckbox)
289  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
290  .addComponent(viewsHideSlackCheckbox))
291  .addGroup(globalSettingsPanelLayout.createSequentialGroup()
292  .addComponent(selectFileLabel)
293  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
294  .addComponent(useBestViewerRadioButton)
295  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
296  .addComponent(keepCurrentViewerRadioButton)
297  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
298  .addComponent(displayTimeLabel)
299  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
300  .addComponent(useLocalTimeRadioButton)
301  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
302  .addComponent(useGMTTimeRadioButton)))
303  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
304  .addComponent(hideOtherUsersTagsLabel)
305  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
306  .addComponent(hideOtherUsersTagsCheckbox)
307  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
308  .addComponent(centralRepoLabel)
309  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
310  .addComponent(commentsOccurencesColumnsCheckbox))
311  );
312 
313  currentCaseSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.currentCaseSettingsPanel.border.title"))); // NOI18N
314 
315  org.openide.awt.Mnemonics.setLocalizedText(groupByDataSourceCheckbox, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.groupByDataSourceCheckbox.text")); // NOI18N
316  groupByDataSourceCheckbox.addActionListener(new java.awt.event.ActionListener() {
317  public void actionPerformed(java.awt.event.ActionEvent evt) {
319  }
320  });
321 
322  javax.swing.GroupLayout currentCaseSettingsPanelLayout = new javax.swing.GroupLayout(currentCaseSettingsPanel);
323  currentCaseSettingsPanel.setLayout(currentCaseSettingsPanelLayout);
324  currentCaseSettingsPanelLayout.setHorizontalGroup(
325  currentCaseSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
326  .addGroup(currentCaseSettingsPanelLayout.createSequentialGroup()
327  .addContainerGap()
328  .addComponent(groupByDataSourceCheckbox)
329  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
330  );
331  currentCaseSettingsPanelLayout.setVerticalGroup(
332  currentCaseSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
333  .addGroup(currentCaseSettingsPanelLayout.createSequentialGroup()
334  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
335  .addComponent(groupByDataSourceCheckbox))
336  );
337 
338  currentSessionSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.currentSessionSettingsPanel.border.title"))); // NOI18N
339 
340  org.openide.awt.Mnemonics.setLocalizedText(hideRejectedResultsCheckbox, org.openide.util.NbBundle.getMessage(ViewPreferencesPanel.class, "ViewPreferencesPanel.hideRejectedResultsCheckbox.text")); // NOI18N
341  hideRejectedResultsCheckbox.addActionListener(new java.awt.event.ActionListener() {
342  public void actionPerformed(java.awt.event.ActionEvent evt) {
344  }
345  });
346 
347  javax.swing.GroupLayout currentSessionSettingsPanelLayout = new javax.swing.GroupLayout(currentSessionSettingsPanel);
348  currentSessionSettingsPanel.setLayout(currentSessionSettingsPanelLayout);
349  currentSessionSettingsPanelLayout.setHorizontalGroup(
350  currentSessionSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
351  .addGroup(currentSessionSettingsPanelLayout.createSequentialGroup()
352  .addContainerGap()
353  .addComponent(hideRejectedResultsCheckbox)
354  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
355  );
356  currentSessionSettingsPanelLayout.setVerticalGroup(
357  currentSessionSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
358  .addGroup(currentSessionSettingsPanelLayout.createSequentialGroup()
359  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
360  .addComponent(hideRejectedResultsCheckbox))
361  );
362 
363  javax.swing.GroupLayout viewPreferencesPanelLayout = new javax.swing.GroupLayout(viewPreferencesPanel);
364  viewPreferencesPanel.setLayout(viewPreferencesPanelLayout);
365  viewPreferencesPanelLayout.setHorizontalGroup(
366  viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
367  .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, viewPreferencesPanelLayout.createSequentialGroup()
368  .addContainerGap()
369  .addGroup(viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
370  .addComponent(currentSessionSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
371  .addComponent(currentCaseSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
372  .addComponent(globalSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
373  .addContainerGap())
374  );
375  viewPreferencesPanelLayout.setVerticalGroup(
376  viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
377  .addGroup(viewPreferencesPanelLayout.createSequentialGroup()
378  .addComponent(globalSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
379  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
380  .addComponent(currentCaseSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
381  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
382  .addComponent(currentSessionSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
383  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
384  );
385 
387 
388  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
389  this.setLayout(layout);
390  layout.setHorizontalGroup(
391  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
392  .addComponent(viewPreferencesScrollPane)
393  );
394  layout.setVerticalGroup(
395  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
396  .addComponent(viewPreferencesScrollPane)
397  );
398  }// </editor-fold>//GEN-END:initComponents
399 
400  private void useBestViewerRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_useBestViewerRadioButtonActionPerformed
401  useBestViewerRadioButton.setSelected(true);
402  keepCurrentViewerRadioButton.setSelected(false);
403  if (immediateUpdates) {
405  } else {
406  firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
407  }
408  }//GEN-LAST:event_useBestViewerRadioButtonActionPerformed
409 
410  private void keepCurrentViewerRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_keepCurrentViewerRadioButtonActionPerformed
411  useBestViewerRadioButton.setSelected(false);
412  keepCurrentViewerRadioButton.setSelected(true);
413  if (immediateUpdates) {
415  } else {
416  firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
417  }
418  }//GEN-LAST:event_keepCurrentViewerRadioButtonActionPerformed
419 
420  private void useLocalTimeRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_useLocalTimeRadioButtonActionPerformed
421  useLocalTimeRadioButton.setSelected(true);
422  useGMTTimeRadioButton.setSelected(false);
423  if (immediateUpdates) {
425  } else {
426  firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
427  }
428  }//GEN-LAST:event_useLocalTimeRadioButtonActionPerformed
429 
430  private void useGMTTimeRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_useGMTTimeRadioButtonActionPerformed
431  useLocalTimeRadioButton.setSelected(false);
432  useGMTTimeRadioButton.setSelected(true);
433  if (immediateUpdates) {
435  } else {
436  firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
437  }
438  }//GEN-LAST:event_useGMTTimeRadioButtonActionPerformed
439 
440  private void dataSourcesHideKnownCheckboxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dataSourcesHideKnownCheckboxActionPerformed
441  if (immediateUpdates) {
443  } else {
444  firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
445  }
446  }//GEN-LAST:event_dataSourcesHideKnownCheckboxActionPerformed
447 
448  private void viewsHideKnownCheckboxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewsHideKnownCheckboxActionPerformed
449  if (immediateUpdates) {
451  } else {
452  firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
453  }
454  }//GEN-LAST:event_viewsHideKnownCheckboxActionPerformed
455 
456  private void dataSourcesHideSlackCheckboxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dataSourcesHideSlackCheckboxActionPerformed
457  if (immediateUpdates) {
459  } else {
460  firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
461  }
462  }//GEN-LAST:event_dataSourcesHideSlackCheckboxActionPerformed
463 
464  private void viewsHideSlackCheckboxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_viewsHideSlackCheckboxActionPerformed
465  if (immediateUpdates) {
467  } else {
468  firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
469  }
470  }//GEN-LAST:event_viewsHideSlackCheckboxActionPerformed
471 
472  private void hideOtherUsersTagsCheckboxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_hideOtherUsersTagsCheckboxActionPerformed
473  if (immediateUpdates) {
475  } else {
476  firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
477  }
478  }//GEN-LAST:event_hideOtherUsersTagsCheckboxActionPerformed
479 
480  private void groupByDataSourceCheckboxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_groupByDataSourceCheckboxActionPerformed
481  if (immediateUpdates) {
483  } else {
484  firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
485  }
486  }//GEN-LAST:event_groupByDataSourceCheckboxActionPerformed
487 
488  private void hideRejectedResultsCheckboxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_hideRejectedResultsCheckboxActionPerformed
489  if (immediateUpdates) {
491  } else {
492  firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
493  }
494  }//GEN-LAST:event_hideRejectedResultsCheckboxActionPerformed
495 
496  private void commentsOccurencesColumnsCheckboxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_commentsOccurencesColumnsCheckboxActionPerformed
497  if (immediateUpdates) {
499  } else {
500  firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
501  }
502  }//GEN-LAST:event_commentsOccurencesColumnsCheckboxActionPerformed
503 
504 
505  // Variables declaration - do not modify//GEN-BEGIN:variables
506  private javax.swing.JLabel centralRepoLabel;
507  private javax.swing.JCheckBox commentsOccurencesColumnsCheckbox;
508  private javax.swing.JPanel currentCaseSettingsPanel;
509  private javax.swing.JPanel currentSessionSettingsPanel;
510  private javax.swing.JCheckBox dataSourcesHideKnownCheckbox;
511  private javax.swing.JCheckBox dataSourcesHideSlackCheckbox;
512  private javax.swing.JLabel displayTimeLabel;
513  private javax.swing.JPanel globalSettingsPanel;
514  private javax.swing.JCheckBox groupByDataSourceCheckbox;
515  private javax.swing.JLabel hideKnownFilesLabel;
516  private javax.swing.JCheckBox hideOtherUsersTagsCheckbox;
517  private javax.swing.JLabel hideOtherUsersTagsLabel;
518  private javax.swing.JCheckBox hideRejectedResultsCheckbox;
519  private javax.swing.JLabel hideSlackFilesLabel;
520  private javax.swing.JRadioButton keepCurrentViewerRadioButton;
521  private javax.swing.JLabel selectFileLabel;
522  private javax.swing.JRadioButton useBestViewerRadioButton;
523  private javax.swing.JRadioButton useGMTTimeRadioButton;
524  private javax.swing.JRadioButton useLocalTimeRadioButton;
525  private javax.swing.JPanel viewPreferencesPanel;
526  private javax.swing.JScrollPane viewPreferencesScrollPane;
527  private javax.swing.JCheckBox viewsHideKnownCheckbox;
528  private javax.swing.JCheckBox viewsHideSlackCheckbox;
529  // End of variables declaration//GEN-END:variables
530 }
static void setKeepPreferredContentViewer(boolean value)
void keepCurrentViewerRadioButtonActionPerformed(java.awt.event.ActionEvent evt)
void commentsOccurencesColumnsCheckboxActionPerformed(java.awt.event.ActionEvent evt)
static void setDisplayTimesInLocalTime(boolean value)
static void setHideSlackFilesInViewsTree(boolean value)
void useLocalTimeRadioButtonActionPerformed(java.awt.event.ActionEvent evt)
void hideRejectedResultsCheckboxActionPerformed(java.awt.event.ActionEvent evt)
void dataSourcesHideKnownCheckboxActionPerformed(java.awt.event.ActionEvent evt)
static void setHideKnownFilesInViewsTree(boolean value)
static void setGroupItemsInTreeByDataSource(boolean value)
void groupByDataSourceCheckboxActionPerformed(java.awt.event.ActionEvent evt)
static void setHideCentralRepoCommentsAndOccurrences(boolean value)
void hideOtherUsersTagsCheckboxActionPerformed(java.awt.event.ActionEvent evt)
static void setHideSlackFilesInDataSourcesTree(boolean value)
static void setHideKnownFilesInDataSourcesTree(boolean value)
void viewsHideKnownCheckboxActionPerformed(java.awt.event.ActionEvent evt)
void useBestViewerRadioButtonActionPerformed(java.awt.event.ActionEvent evt)
static void setShowOnlyCurrentUserTags(boolean value)
void dataSourcesHideSlackCheckboxActionPerformed(java.awt.event.ActionEvent evt)
void useGMTTimeRadioButtonActionPerformed(java.awt.event.ActionEvent evt)
void viewsHideSlackCheckboxActionPerformed(java.awt.event.ActionEvent evt)

Copyright © 2012-2018 Basis Technology. Generated on: Thu Oct 4 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.