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 groupByDataSourceCheckbox.setEnabled(evt.getNewValue() != null);
60 ((JSpinner.DefaultEditor)maxResultsSpinner.getEditor()).getTextField().setEditable(
false);
67 keepCurrentViewerRadioButton.setSelected(keepPreferredViewer);
68 useBestViewerRadioButton.setSelected(!keepPreferredViewer);
71 timeZoneList.setEnabled(!useLocalTime);
73 useLocalTimeRadioButton.setSelected(useLocalTime);
74 useAnotherTimeRadioButton.setSelected(!useLocalTime);
88 fileNameTranslationColumnCheckbox.setEnabled(tts.
hasProvider());
94 currentCaseSettingsPanel.setEnabled(caseIsOpen);
95 groupByDataSourceCheckbox.setEnabled(caseIsOpen);
100 groupByDataSourceCheckbox.setSelected(
false);
111 if (useAnotherTimeRadioButton.isSelected()) {
123 storeGroupItemsInTreeByDataSource();
147 @SuppressWarnings(
"unchecked")
149 private
void initComponents() {
151 viewPreferencesScrollPane =
new javax.swing.JScrollPane();
152 viewPreferencesPanel =
new javax.swing.JPanel();
153 globalSettingsPanel =
new javax.swing.JPanel();
154 selectFileLabel =
new javax.swing.JLabel();
155 useBestViewerRadioButton =
new javax.swing.JRadioButton();
156 keepCurrentViewerRadioButton =
new javax.swing.JRadioButton();
157 hideKnownFilesLabel =
new javax.swing.JLabel();
158 dataSourcesHideKnownCheckbox =
new javax.swing.JCheckBox();
159 viewsHideKnownCheckbox =
new javax.swing.JCheckBox();
160 hideSlackFilesLabel =
new javax.swing.JLabel();
161 dataSourcesHideSlackCheckbox =
new javax.swing.JCheckBox();
162 viewsHideSlackCheckbox =
new javax.swing.JCheckBox();
163 displayTimeLabel =
new javax.swing.JLabel();
164 useLocalTimeRadioButton =
new javax.swing.JRadioButton();
165 useAnotherTimeRadioButton =
new javax.swing.JRadioButton();
166 hideOtherUsersTagsCheckbox =
new javax.swing.JCheckBox();
167 hideOtherUsersTagsLabel =
new javax.swing.JLabel();
168 scoColumnsLabel =
new javax.swing.JLabel();
169 scoColumnsCheckbox =
new javax.swing.JCheckBox();
170 jScrollPane1 =
new javax.swing.JScrollPane();
171 timeZoneList =
new javax.swing.JList<>();
172 translateTextLabel =
new javax.swing.JLabel();
173 scoColumnsWrapAroundText =
new javax.swing.JLabel();
174 fileNameTranslationColumnCheckbox =
new javax.swing.JCheckBox();
175 maxResultsLabel =
new javax.swing.JLabel();
176 maxResultsSpinner =
new javax.swing.JSpinner();
177 currentCaseSettingsPanel =
new javax.swing.JPanel();
178 groupByDataSourceCheckbox =
new javax.swing.JCheckBox();
179 currentSessionSettingsPanel =
new javax.swing.JPanel();
180 hideRejectedResultsCheckbox =
new javax.swing.JCheckBox();
182 setPreferredSize(
new java.awt.Dimension(727, 495));
184 viewPreferencesScrollPane.setBorder(null);
185 viewPreferencesScrollPane.setPreferredSize(
new java.awt.Dimension(727, 493));
187 viewPreferencesPanel.setPreferredSize(
new java.awt.Dimension(727, 492));
189 globalSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.globalSettingsPanel.border.title")));
191 org.openide.awt.Mnemonics.setLocalizedText(selectFileLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.selectFileLabel.text"));
193 org.openide.awt.Mnemonics.setLocalizedText(useBestViewerRadioButton,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.useBestViewerRadioButton.text"));
194 useBestViewerRadioButton.setToolTipText(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.useBestViewerRadioButton.toolTipText"));
195 useBestViewerRadioButton.addActionListener(
new java.awt.event.ActionListener() {
196 public void actionPerformed(java.awt.event.ActionEvent evt) {
197 useBestViewerRadioButtonActionPerformed(evt);
201 org.openide.awt.Mnemonics.setLocalizedText(keepCurrentViewerRadioButton,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.keepCurrentViewerRadioButton.text"));
202 keepCurrentViewerRadioButton.setToolTipText(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.keepCurrentViewerRadioButton.toolTipText"));
203 keepCurrentViewerRadioButton.addActionListener(
new java.awt.event.ActionListener() {
204 public void actionPerformed(java.awt.event.ActionEvent evt) {
205 keepCurrentViewerRadioButtonActionPerformed(evt);
209 org.openide.awt.Mnemonics.setLocalizedText(hideKnownFilesLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideKnownFilesLabel.text"));
211 org.openide.awt.Mnemonics.setLocalizedText(dataSourcesHideKnownCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.dataSourcesHideKnownCheckbox.text"));
212 dataSourcesHideKnownCheckbox.addActionListener(
new java.awt.event.ActionListener() {
213 public void actionPerformed(java.awt.event.ActionEvent evt) {
214 dataSourcesHideKnownCheckboxActionPerformed(evt);
218 org.openide.awt.Mnemonics.setLocalizedText(viewsHideKnownCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.viewsHideKnownCheckbox.text"));
219 viewsHideKnownCheckbox.addActionListener(
new java.awt.event.ActionListener() {
220 public void actionPerformed(java.awt.event.ActionEvent evt) {
221 viewsHideKnownCheckboxActionPerformed(evt);
225 org.openide.awt.Mnemonics.setLocalizedText(hideSlackFilesLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideSlackFilesLabel.text"));
227 org.openide.awt.Mnemonics.setLocalizedText(dataSourcesHideSlackCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.dataSourcesHideSlackCheckbox.text"));
228 dataSourcesHideSlackCheckbox.addActionListener(
new java.awt.event.ActionListener() {
229 public void actionPerformed(java.awt.event.ActionEvent evt) {
230 dataSourcesHideSlackCheckboxActionPerformed(evt);
234 org.openide.awt.Mnemonics.setLocalizedText(viewsHideSlackCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.viewsHideSlackCheckbox.text"));
235 viewsHideSlackCheckbox.addActionListener(
new java.awt.event.ActionListener() {
236 public void actionPerformed(java.awt.event.ActionEvent evt) {
237 viewsHideSlackCheckboxActionPerformed(evt);
241 org.openide.awt.Mnemonics.setLocalizedText(displayTimeLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.displayTimeLabel.text"));
243 org.openide.awt.Mnemonics.setLocalizedText(useLocalTimeRadioButton,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.useLocalTimeRadioButton.text"));
244 useLocalTimeRadioButton.addActionListener(
new java.awt.event.ActionListener() {
245 public void actionPerformed(java.awt.event.ActionEvent evt) {
246 useLocalTimeRadioButtonActionPerformed(evt);
250 org.openide.awt.Mnemonics.setLocalizedText(useAnotherTimeRadioButton,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.useAnotherTimeRadioButton.text"));
251 useAnotherTimeRadioButton.addActionListener(
new java.awt.event.ActionListener() {
252 public void actionPerformed(java.awt.event.ActionEvent evt) {
253 useAnotherTimeRadioButtonActionPerformed(evt);
257 org.openide.awt.Mnemonics.setLocalizedText(hideOtherUsersTagsCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideOtherUsersTagsCheckbox.text"));
258 hideOtherUsersTagsCheckbox.addActionListener(
new java.awt.event.ActionListener() {
259 public void actionPerformed(java.awt.event.ActionEvent evt) {
260 hideOtherUsersTagsCheckboxActionPerformed(evt);
264 org.openide.awt.Mnemonics.setLocalizedText(hideOtherUsersTagsLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideOtherUsersTagsLabel.text"));
266 org.openide.awt.Mnemonics.setLocalizedText(scoColumnsLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.scoColumnsLabel.text"));
268 org.openide.awt.Mnemonics.setLocalizedText(scoColumnsCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.scoColumnsCheckbox.text"));
269 scoColumnsCheckbox.addActionListener(
new java.awt.event.ActionListener() {
270 public void actionPerformed(java.awt.event.ActionEvent evt) {
271 scoColumnsCheckboxActionPerformed(evt);
275 jScrollPane1.setMaximumSize(
new java.awt.Dimension(150, 130));
276 jScrollPane1.setPreferredSize(
new java.awt.Dimension(150, 130));
278 timeZoneList.addListSelectionListener(
new javax.swing.event.ListSelectionListener() {
279 public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
280 timeZoneListValueChanged(evt);
283 jScrollPane1.setViewportView(timeZoneList);
285 org.openide.awt.Mnemonics.setLocalizedText(translateTextLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.translateTextLabel.text"));
287 org.openide.awt.Mnemonics.setLocalizedText(scoColumnsWrapAroundText,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.scoColumnsWrapAroundText.text"));
289 org.openide.awt.Mnemonics.setLocalizedText(fileNameTranslationColumnCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.fileNameTranslationColumnCheckbox.text"));
290 fileNameTranslationColumnCheckbox.addActionListener(
new java.awt.event.ActionListener() {
291 public void actionPerformed(java.awt.event.ActionEvent evt) {
292 fileNameTranslationColumnCheckboxActionPerformed(evt);
296 org.openide.awt.Mnemonics.setLocalizedText(maxResultsLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.maxResultsLabel.text"));
297 maxResultsLabel.setToolTipText(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.maxResultsLabel.toolTipText"));
299 maxResultsSpinner.setModel(
new javax.swing.SpinnerNumberModel(0, 0, 50000, 10000));
300 maxResultsSpinner.addChangeListener(
new javax.swing.event.ChangeListener() {
301 public void stateChanged(javax.swing.event.ChangeEvent evt) {
302 maxResultsSpinnerStateChanged(evt);
306 javax.swing.GroupLayout globalSettingsPanelLayout =
new javax.swing.GroupLayout(globalSettingsPanel);
307 globalSettingsPanel.setLayout(globalSettingsPanelLayout);
308 globalSettingsPanelLayout.setHorizontalGroup(
309 globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
310 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
312 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
313 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
314 .addComponent(maxResultsLabel)
316 .addComponent(maxResultsSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
317 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
318 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
319 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
321 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
322 .addComponent(viewsHideKnownCheckbox)
323 .addComponent(dataSourcesHideKnownCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
324 .addComponent(hideOtherUsersTagsCheckbox)
325 .addComponent(viewsHideSlackCheckbox)
326 .addComponent(hideOtherUsersTagsLabel)
327 .addComponent(scoColumnsLabel)
328 .addComponent(scoColumnsCheckbox)
329 .addComponent(dataSourcesHideSlackCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
330 .addComponent(scoColumnsWrapAroundText)))
331 .addComponent(hideSlackFilesLabel)
332 .addComponent(hideKnownFilesLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 289, javax.swing.GroupLayout.PREFERRED_SIZE))
333 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
334 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
335 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
337 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
338 .addComponent(useLocalTimeRadioButton)
339 .addComponent(keepCurrentViewerRadioButton)
340 .addComponent(fileNameTranslationColumnCheckbox)
341 .addComponent(useAnotherTimeRadioButton)
342 .addComponent(useBestViewerRadioButton)
343 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE)))
344 .addComponent(displayTimeLabel)
345 .addComponent(selectFileLabel)
346 .addComponent(translateTextLabel))))
347 .addContainerGap(107, Short.MAX_VALUE))
349 globalSettingsPanelLayout.setVerticalGroup(
350 globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
351 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
353 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
354 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
355 .addComponent(hideKnownFilesLabel)
356 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
357 .addComponent(dataSourcesHideKnownCheckbox)
358 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
359 .addComponent(viewsHideKnownCheckbox)
360 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
361 .addComponent(hideSlackFilesLabel)
362 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
363 .addComponent(dataSourcesHideSlackCheckbox)
364 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
365 .addComponent(viewsHideSlackCheckbox)
366 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
367 .addComponent(hideOtherUsersTagsLabel)
368 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
369 .addComponent(hideOtherUsersTagsCheckbox)
370 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
371 .addComponent(scoColumnsLabel)
373 .addComponent(scoColumnsCheckbox, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
374 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
375 .addComponent(scoColumnsWrapAroundText))
376 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
377 .addComponent(selectFileLabel)
378 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
379 .addComponent(useBestViewerRadioButton)
380 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
381 .addComponent(keepCurrentViewerRadioButton)
382 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
383 .addComponent(displayTimeLabel)
384 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
385 .addComponent(useLocalTimeRadioButton)
386 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
387 .addComponent(useAnotherTimeRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
388 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
389 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
390 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
391 .addComponent(translateTextLabel)
392 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
393 .addComponent(fileNameTranslationColumnCheckbox)))
394 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
395 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
396 .addComponent(maxResultsLabel)
397 .addComponent(maxResultsSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
398 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
401 currentCaseSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.currentCaseSettingsPanel.border.title")));
403 org.openide.awt.Mnemonics.setLocalizedText(groupByDataSourceCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.groupByDataSourceCheckbox.text"));
404 groupByDataSourceCheckbox.addActionListener(
new java.awt.event.ActionListener() {
405 public void actionPerformed(java.awt.event.ActionEvent evt) {
406 groupByDataSourceCheckboxActionPerformed(evt);
410 javax.swing.GroupLayout currentCaseSettingsPanelLayout =
new javax.swing.GroupLayout(currentCaseSettingsPanel);
411 currentCaseSettingsPanel.setLayout(currentCaseSettingsPanelLayout);
412 currentCaseSettingsPanelLayout.setHorizontalGroup(
413 currentCaseSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
414 .addGroup(currentCaseSettingsPanelLayout.createSequentialGroup()
416 .addComponent(groupByDataSourceCheckbox)
417 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
419 currentCaseSettingsPanelLayout.setVerticalGroup(
420 currentCaseSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
421 .addGroup(currentCaseSettingsPanelLayout.createSequentialGroup()
422 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
423 .addComponent(groupByDataSourceCheckbox))
426 currentSessionSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.currentSessionSettingsPanel.border.title")));
428 org.openide.awt.Mnemonics.setLocalizedText(hideRejectedResultsCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideRejectedResultsCheckbox.text"));
429 hideRejectedResultsCheckbox.addActionListener(
new java.awt.event.ActionListener() {
430 public void actionPerformed(java.awt.event.ActionEvent evt) {
431 hideRejectedResultsCheckboxActionPerformed(evt);
435 javax.swing.GroupLayout currentSessionSettingsPanelLayout =
new javax.swing.GroupLayout(currentSessionSettingsPanel);
436 currentSessionSettingsPanel.setLayout(currentSessionSettingsPanelLayout);
437 currentSessionSettingsPanelLayout.setHorizontalGroup(
438 currentSessionSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
439 .addGroup(currentSessionSettingsPanelLayout.createSequentialGroup()
441 .addComponent(hideRejectedResultsCheckbox)
442 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
444 currentSessionSettingsPanelLayout.setVerticalGroup(
445 currentSessionSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
446 .addGroup(currentSessionSettingsPanelLayout.createSequentialGroup()
447 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
448 .addComponent(hideRejectedResultsCheckbox))
451 javax.swing.GroupLayout viewPreferencesPanelLayout =
new javax.swing.GroupLayout(viewPreferencesPanel);
452 viewPreferencesPanel.setLayout(viewPreferencesPanelLayout);
453 viewPreferencesPanelLayout.setHorizontalGroup(
454 viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
455 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, viewPreferencesPanelLayout.createSequentialGroup()
457 .addGroup(viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
458 .addComponent(currentSessionSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
459 .addComponent(currentCaseSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
460 .addComponent(globalSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
463 viewPreferencesPanelLayout.setVerticalGroup(
464 viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
465 .addGroup(viewPreferencesPanelLayout.createSequentialGroup()
466 .addComponent(globalSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
467 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
468 .addComponent(currentCaseSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
469 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
470 .addComponent(currentSessionSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
474 viewPreferencesScrollPane.setViewportView(viewPreferencesPanel);
476 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
477 this.setLayout(layout);
478 layout.setHorizontalGroup(
479 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
480 .addComponent(viewPreferencesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
482 layout.setVerticalGroup(
483 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
484 .addComponent(viewPreferencesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
489 if (immediateUpdates) {
490 storeGroupItemsInTreeByDataSource();
492 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
497 if (immediateUpdates) {
500 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
505 if (immediateUpdates) {
508 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
513 if (immediateUpdates) {
516 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
521 if (immediateUpdates && useAnotherTimeRadioButton.isSelected()) {
524 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
529 if (immediateUpdates) {
532 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
537 if (immediateUpdates) {
540 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
545 useLocalTimeRadioButton.setSelected(
false);
546 useAnotherTimeRadioButton.setSelected(
true);
547 timeZoneList.setEnabled(
true);
548 if (immediateUpdates) {
551 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
556 useLocalTimeRadioButton.setSelected(
true);
557 useAnotherTimeRadioButton.setSelected(
false);
558 timeZoneList.setEnabled(
false);
559 if (immediateUpdates) {
562 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
567 if (immediateUpdates) {
570 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
575 if (immediateUpdates) {
578 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
583 if (immediateUpdates) {
586 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
591 if (immediateUpdates) {
594 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
599 useBestViewerRadioButton.setSelected(
false);
600 keepCurrentViewerRadioButton.setSelected(
true);
601 if (immediateUpdates) {
604 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
609 useBestViewerRadioButton.setSelected(
true);
610 keepCurrentViewerRadioButton.setSelected(
false);
611 if (immediateUpdates) {
614 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)
javax.swing.JLabel scoColumnsWrapAroundText
static void setDisplayTimesInLocalTime(boolean value)
javax.swing.JCheckBox viewsHideSlackCheckbox
javax.swing.JPanel viewPreferencesPanel
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)
void groupByDataSourceCheckboxActionPerformed(java.awt.event.ActionEvent evt)
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)
javax.swing.JCheckBox groupByDataSourceCheckbox
void useAnotherTimeRadioButtonActionPerformed(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