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 timeZoneList.addListSelectionListener(
new javax.swing.event.ListSelectionListener() {
276 public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
277 timeZoneListValueChanged(evt);
280 jScrollPane1.setViewportView(timeZoneList);
282 org.openide.awt.Mnemonics.setLocalizedText(translateTextLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.translateTextLabel.text"));
284 org.openide.awt.Mnemonics.setLocalizedText(scoColumnsWrapAroundText,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.scoColumnsWrapAroundText.text"));
286 org.openide.awt.Mnemonics.setLocalizedText(fileNameTranslationColumnCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.fileNameTranslationColumnCheckbox.text"));
287 fileNameTranslationColumnCheckbox.addActionListener(
new java.awt.event.ActionListener() {
288 public void actionPerformed(java.awt.event.ActionEvent evt) {
289 fileNameTranslationColumnCheckboxActionPerformed(evt);
293 org.openide.awt.Mnemonics.setLocalizedText(maxResultsLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.maxResultsLabel.text"));
294 maxResultsLabel.setToolTipText(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.maxResultsLabel.toolTipText"));
296 maxResultsSpinner.setModel(
new javax.swing.SpinnerNumberModel(0, 0, 50000, 10000));
297 maxResultsSpinner.addChangeListener(
new javax.swing.event.ChangeListener() {
298 public void stateChanged(javax.swing.event.ChangeEvent evt) {
299 maxResultsSpinnerStateChanged(evt);
303 javax.swing.GroupLayout globalSettingsPanelLayout =
new javax.swing.GroupLayout(globalSettingsPanel);
304 globalSettingsPanel.setLayout(globalSettingsPanelLayout);
305 globalSettingsPanelLayout.setHorizontalGroup(
306 globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
307 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
309 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
310 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
311 .addComponent(maxResultsLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
312 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
313 .addComponent(maxResultsSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
314 .addGap(325, 325, 325))
315 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
316 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
317 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
318 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
319 .addComponent(hideKnownFilesLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
320 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
321 .addComponent(hideOtherUsersTagsLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
323 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, globalSettingsPanelLayout.createSequentialGroup()
324 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
325 .addComponent(scoColumnsLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
326 .addGroup(javax.swing.GroupLayout.Alignment.LEADING, globalSettingsPanelLayout.createSequentialGroup()
328 .addComponent(hideOtherUsersTagsCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
330 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
332 .addComponent(scoColumnsWrapAroundText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
334 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
336 .addComponent(scoColumnsCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
337 .addGap(14, 14, 14)))
339 .addGroup(javax.swing.GroupLayout.Alignment.LEADING, globalSettingsPanelLayout.createSequentialGroup()
340 .addComponent(hideSlackFilesLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
342 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
344 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
345 .addComponent(dataSourcesHideSlackCheckbox, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
346 .addGroup(javax.swing.GroupLayout.Alignment.LEADING, globalSettingsPanelLayout.createSequentialGroup()
347 .addComponent(viewsHideKnownCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
348 .addGap(103, 103, 103))
349 .addComponent(dataSourcesHideKnownCheckbox, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
350 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
351 .addComponent(viewsHideSlackCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
352 .addGap(116, 116, 116)))
353 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
354 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
355 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
356 .addComponent(displayTimeLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
358 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
359 .addComponent(translateTextLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
361 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
362 .addComponent(selectFileLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
364 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
366 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
367 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
369 .addComponent(jScrollPane1))
370 .addComponent(fileNameTranslationColumnCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
371 .addComponent(useAnotherTimeRadioButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
372 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
373 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
374 .addComponent(useLocalTimeRadioButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
375 .addComponent(keepCurrentViewerRadioButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
376 .addComponent(useBestViewerRadioButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
377 .addGap(44, 44, 44)))))))
380 globalSettingsPanelLayout.setVerticalGroup(
381 globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
382 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
384 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
385 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
386 .addComponent(hideKnownFilesLabel)
387 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
388 .addComponent(dataSourcesHideKnownCheckbox)
389 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
390 .addComponent(viewsHideKnownCheckbox)
391 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
392 .addComponent(hideSlackFilesLabel)
393 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
394 .addComponent(dataSourcesHideSlackCheckbox)
395 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
396 .addComponent(viewsHideSlackCheckbox)
397 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
398 .addComponent(hideOtherUsersTagsLabel)
399 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
400 .addComponent(hideOtherUsersTagsCheckbox)
401 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
402 .addComponent(scoColumnsLabel)
404 .addComponent(scoColumnsCheckbox, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
405 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
406 .addComponent(scoColumnsWrapAroundText))
407 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
408 .addComponent(selectFileLabel)
409 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
410 .addComponent(useBestViewerRadioButton)
411 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
412 .addComponent(keepCurrentViewerRadioButton)
413 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
414 .addComponent(displayTimeLabel)
415 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
416 .addComponent(useLocalTimeRadioButton)
417 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
418 .addComponent(useAnotherTimeRadioButton, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
419 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
420 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
421 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
422 .addComponent(translateTextLabel)
423 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
424 .addComponent(fileNameTranslationColumnCheckbox)))
425 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
426 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
427 .addComponent(maxResultsLabel)
428 .addComponent(maxResultsSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
429 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
432 currentCaseSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.currentCaseSettingsPanel.border.title")));
434 org.openide.awt.Mnemonics.setLocalizedText(groupByDataSourceCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.groupByDataSourceCheckbox.text"));
435 groupByDataSourceCheckbox.addActionListener(
new java.awt.event.ActionListener() {
436 public void actionPerformed(java.awt.event.ActionEvent evt) {
437 groupByDataSourceCheckboxActionPerformed(evt);
441 javax.swing.GroupLayout currentCaseSettingsPanelLayout =
new javax.swing.GroupLayout(currentCaseSettingsPanel);
442 currentCaseSettingsPanel.setLayout(currentCaseSettingsPanelLayout);
443 currentCaseSettingsPanelLayout.setHorizontalGroup(
444 currentCaseSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
445 .addGroup(currentCaseSettingsPanelLayout.createSequentialGroup()
447 .addComponent(groupByDataSourceCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
448 .addGap(474, 474, 474))
450 currentCaseSettingsPanelLayout.setVerticalGroup(
451 currentCaseSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
452 .addGroup(currentCaseSettingsPanelLayout.createSequentialGroup()
453 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
454 .addComponent(groupByDataSourceCheckbox))
457 currentSessionSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.currentSessionSettingsPanel.border.title")));
459 org.openide.awt.Mnemonics.setLocalizedText(hideRejectedResultsCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideRejectedResultsCheckbox.text"));
460 hideRejectedResultsCheckbox.addActionListener(
new java.awt.event.ActionListener() {
461 public void actionPerformed(java.awt.event.ActionEvent evt) {
462 hideRejectedResultsCheckboxActionPerformed(evt);
466 javax.swing.GroupLayout currentSessionSettingsPanelLayout =
new javax.swing.GroupLayout(currentSessionSettingsPanel);
467 currentSessionSettingsPanel.setLayout(currentSessionSettingsPanelLayout);
468 currentSessionSettingsPanelLayout.setHorizontalGroup(
469 currentSessionSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
470 .addGroup(currentSessionSettingsPanelLayout.createSequentialGroup()
472 .addComponent(hideRejectedResultsCheckbox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
473 .addGap(418, 418, 418))
475 currentSessionSettingsPanelLayout.setVerticalGroup(
476 currentSessionSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
477 .addGroup(currentSessionSettingsPanelLayout.createSequentialGroup()
478 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
479 .addComponent(hideRejectedResultsCheckbox))
482 javax.swing.GroupLayout viewPreferencesPanelLayout =
new javax.swing.GroupLayout(viewPreferencesPanel);
483 viewPreferencesPanel.setLayout(viewPreferencesPanelLayout);
484 viewPreferencesPanelLayout.setHorizontalGroup(
485 viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
486 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, viewPreferencesPanelLayout.createSequentialGroup()
488 .addGroup(viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
489 .addComponent(currentSessionSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
490 .addComponent(currentCaseSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
491 .addComponent(globalSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
494 viewPreferencesPanelLayout.setVerticalGroup(
495 viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
496 .addGroup(viewPreferencesPanelLayout.createSequentialGroup()
497 .addComponent(globalSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
498 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
499 .addComponent(currentCaseSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
500 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
501 .addComponent(currentSessionSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
505 viewPreferencesScrollPane.setViewportView(viewPreferencesPanel);
507 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
508 this.setLayout(layout);
509 layout.setHorizontalGroup(
510 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
511 .addComponent(viewPreferencesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
513 layout.setVerticalGroup(
514 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
515 .addComponent(viewPreferencesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
520 if (immediateUpdates) {
521 storeGroupItemsInTreeByDataSource();
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) {
637 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
642 if (immediateUpdates) {
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)
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