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;
39 @SuppressWarnings(
"PMD.SingularField")
52 this.immediateUpdates = immediateUpdates;
55 currentCaseSettingsPanel.setEnabled(evt.getNewValue() != null);
56 groupByDataSourceCheckbox.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);
84 commentsOccurencesColumnWrapAroundText.setEnabled(
EamDb.
isEnabled());
91 fileNameTranslationColumnCheckbox.setEnabled(tts.
hasProvider());
97 currentCaseSettingsPanel.setEnabled(caseIsOpen);
98 groupByDataSourceCheckbox.setEnabled(caseIsOpen);
103 groupByDataSourceCheckbox.setSelected(
false);
114 if (useAnotherTimeRadioButton.isSelected()) {
126 storeGroupItemsInTreeByDataSource();
150 @SuppressWarnings(
"unchecked")
152 private
void initComponents() {
154 viewPreferencesScrollPane =
new javax.swing.JScrollPane();
155 viewPreferencesPanel =
new javax.swing.JPanel();
156 globalSettingsPanel =
new javax.swing.JPanel();
157 selectFileLabel =
new javax.swing.JLabel();
158 useBestViewerRadioButton =
new javax.swing.JRadioButton();
159 keepCurrentViewerRadioButton =
new javax.swing.JRadioButton();
160 hideKnownFilesLabel =
new javax.swing.JLabel();
161 dataSourcesHideKnownCheckbox =
new javax.swing.JCheckBox();
162 viewsHideKnownCheckbox =
new javax.swing.JCheckBox();
163 hideSlackFilesLabel =
new javax.swing.JLabel();
164 dataSourcesHideSlackCheckbox =
new javax.swing.JCheckBox();
165 viewsHideSlackCheckbox =
new javax.swing.JCheckBox();
166 displayTimeLabel =
new javax.swing.JLabel();
167 useLocalTimeRadioButton =
new javax.swing.JRadioButton();
168 useAnotherTimeRadioButton =
new javax.swing.JRadioButton();
169 hideOtherUsersTagsCheckbox =
new javax.swing.JCheckBox();
170 hideOtherUsersTagsLabel =
new javax.swing.JLabel();
171 centralRepoLabel =
new javax.swing.JLabel();
172 commentsOccurencesColumnsCheckbox =
new javax.swing.JCheckBox();
173 jScrollPane1 =
new javax.swing.JScrollPane();
174 timeZoneList =
new javax.swing.JList<>();
175 translateTextLabel =
new javax.swing.JLabel();
176 commentsOccurencesColumnWrapAroundText =
new javax.swing.JLabel();
177 fileNameTranslationColumnCheckbox =
new javax.swing.JCheckBox();
178 maxResultsLabel =
new javax.swing.JLabel();
179 maxResultsSpinner =
new javax.swing.JSpinner();
180 currentCaseSettingsPanel =
new javax.swing.JPanel();
181 groupByDataSourceCheckbox =
new javax.swing.JCheckBox();
182 currentSessionSettingsPanel =
new javax.swing.JPanel();
183 hideRejectedResultsCheckbox =
new javax.swing.JCheckBox();
185 setPreferredSize(
new java.awt.Dimension(625, 465));
187 viewPreferencesScrollPane.setBorder(null);
188 viewPreferencesScrollPane.setPreferredSize(
new java.awt.Dimension(625, 465));
190 viewPreferencesPanel.setPreferredSize(
new java.awt.Dimension(625, 465));
192 globalSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.globalSettingsPanel.border.title")));
194 org.openide.awt.Mnemonics.setLocalizedText(selectFileLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.selectFileLabel.text"));
196 org.openide.awt.Mnemonics.setLocalizedText(useBestViewerRadioButton,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.useBestViewerRadioButton.text"));
197 useBestViewerRadioButton.setToolTipText(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.useBestViewerRadioButton.toolTipText"));
198 useBestViewerRadioButton.addActionListener(
new java.awt.event.ActionListener() {
199 public void actionPerformed(java.awt.event.ActionEvent evt) {
200 useBestViewerRadioButtonActionPerformed(evt);
204 org.openide.awt.Mnemonics.setLocalizedText(keepCurrentViewerRadioButton,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.keepCurrentViewerRadioButton.text"));
205 keepCurrentViewerRadioButton.setToolTipText(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.keepCurrentViewerRadioButton.toolTipText"));
206 keepCurrentViewerRadioButton.addActionListener(
new java.awt.event.ActionListener() {
207 public void actionPerformed(java.awt.event.ActionEvent evt) {
208 keepCurrentViewerRadioButtonActionPerformed(evt);
212 org.openide.awt.Mnemonics.setLocalizedText(hideKnownFilesLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideKnownFilesLabel.text"));
214 org.openide.awt.Mnemonics.setLocalizedText(dataSourcesHideKnownCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.dataSourcesHideKnownCheckbox.text"));
215 dataSourcesHideKnownCheckbox.addActionListener(
new java.awt.event.ActionListener() {
216 public void actionPerformed(java.awt.event.ActionEvent evt) {
217 dataSourcesHideKnownCheckboxActionPerformed(evt);
221 org.openide.awt.Mnemonics.setLocalizedText(viewsHideKnownCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.viewsHideKnownCheckbox.text"));
222 viewsHideKnownCheckbox.addActionListener(
new java.awt.event.ActionListener() {
223 public void actionPerformed(java.awt.event.ActionEvent evt) {
224 viewsHideKnownCheckboxActionPerformed(evt);
228 org.openide.awt.Mnemonics.setLocalizedText(hideSlackFilesLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideSlackFilesLabel.text"));
230 org.openide.awt.Mnemonics.setLocalizedText(dataSourcesHideSlackCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.dataSourcesHideSlackCheckbox.text"));
231 dataSourcesHideSlackCheckbox.addActionListener(
new java.awt.event.ActionListener() {
232 public void actionPerformed(java.awt.event.ActionEvent evt) {
233 dataSourcesHideSlackCheckboxActionPerformed(evt);
237 org.openide.awt.Mnemonics.setLocalizedText(viewsHideSlackCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.viewsHideSlackCheckbox.text"));
238 viewsHideSlackCheckbox.addActionListener(
new java.awt.event.ActionListener() {
239 public void actionPerformed(java.awt.event.ActionEvent evt) {
240 viewsHideSlackCheckboxActionPerformed(evt);
244 org.openide.awt.Mnemonics.setLocalizedText(displayTimeLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.displayTimeLabel.text"));
246 org.openide.awt.Mnemonics.setLocalizedText(useLocalTimeRadioButton,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.useLocalTimeRadioButton.text"));
247 useLocalTimeRadioButton.addActionListener(
new java.awt.event.ActionListener() {
248 public void actionPerformed(java.awt.event.ActionEvent evt) {
249 useLocalTimeRadioButtonActionPerformed(evt);
253 org.openide.awt.Mnemonics.setLocalizedText(useAnotherTimeRadioButton,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.useAnotherTimeRadioButton.text"));
254 useAnotherTimeRadioButton.addActionListener(
new java.awt.event.ActionListener() {
255 public void actionPerformed(java.awt.event.ActionEvent evt) {
256 useAnotherTimeRadioButtonActionPerformed(evt);
260 org.openide.awt.Mnemonics.setLocalizedText(hideOtherUsersTagsCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideOtherUsersTagsCheckbox.text"));
261 hideOtherUsersTagsCheckbox.addActionListener(
new java.awt.event.ActionListener() {
262 public void actionPerformed(java.awt.event.ActionEvent evt) {
263 hideOtherUsersTagsCheckboxActionPerformed(evt);
267 org.openide.awt.Mnemonics.setLocalizedText(hideOtherUsersTagsLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideOtherUsersTagsLabel.text"));
269 org.openide.awt.Mnemonics.setLocalizedText(centralRepoLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.centralRepoLabel.text"));
271 org.openide.awt.Mnemonics.setLocalizedText(commentsOccurencesColumnsCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.commentsOccurencesColumnsCheckbox.text"));
272 commentsOccurencesColumnsCheckbox.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
273 commentsOccurencesColumnsCheckbox.addActionListener(
new java.awt.event.ActionListener() {
274 public void actionPerformed(java.awt.event.ActionEvent evt) {
275 commentsOccurencesColumnsCheckboxActionPerformed(evt);
279 timeZoneList.addListSelectionListener(
new javax.swing.event.ListSelectionListener() {
280 public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
281 timeZoneListValueChanged(evt);
284 jScrollPane1.setViewportView(timeZoneList);
286 org.openide.awt.Mnemonics.setLocalizedText(translateTextLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.translateTextLabel.text"));
288 org.openide.awt.Mnemonics.setLocalizedText(commentsOccurencesColumnWrapAroundText,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.commentsOccurencesColumnWrapAroundText.text"));
290 org.openide.awt.Mnemonics.setLocalizedText(fileNameTranslationColumnCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.fileNameTranslationColumnCheckbox.text"));
291 fileNameTranslationColumnCheckbox.addActionListener(
new java.awt.event.ActionListener() {
292 public void actionPerformed(java.awt.event.ActionEvent evt) {
293 fileNameTranslationColumnCheckboxActionPerformed(evt);
297 org.openide.awt.Mnemonics.setLocalizedText(maxResultsLabel,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.maxResultsLabel.text"));
298 maxResultsLabel.setToolTipText(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.maxResultsLabel.toolTipText"));
300 maxResultsSpinner.setModel(
new javax.swing.SpinnerNumberModel(0, 0, 50000, 10000));
301 maxResultsSpinner.addChangeListener(
new javax.swing.event.ChangeListener() {
302 public void stateChanged(javax.swing.event.ChangeEvent evt) {
303 maxResultsSpinnerStateChanged(evt);
307 javax.swing.GroupLayout globalSettingsPanelLayout =
new javax.swing.GroupLayout(globalSettingsPanel);
308 globalSettingsPanel.setLayout(globalSettingsPanelLayout);
309 globalSettingsPanelLayout.setHorizontalGroup(
310 globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
311 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
313 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
314 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
316 .addComponent(hideOtherUsersTagsCheckbox))
317 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
318 .addComponent(centralRepoLabel)
319 .addGap(135, 135, 135)
320 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 272, javax.swing.GroupLayout.PREFERRED_SIZE))
321 .addComponent(hideOtherUsersTagsLabel)
322 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
323 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
324 .addComponent(hideKnownFilesLabel)
325 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
326 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
327 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
329 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
330 .addComponent(dataSourcesHideSlackCheckbox)
331 .addComponent(viewsHideSlackCheckbox)))
332 .addComponent(hideSlackFilesLabel))
333 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
335 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
336 .addComponent(dataSourcesHideKnownCheckbox)
337 .addComponent(viewsHideKnownCheckbox))))
338 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
340 .addComponent(commentsOccurencesColumnsCheckbox))
341 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
343 .addComponent(commentsOccurencesColumnWrapAroundText)))
345 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
346 .addComponent(displayTimeLabel)
347 .addComponent(selectFileLabel)
348 .addComponent(translateTextLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
349 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
351 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
352 .addComponent(fileNameTranslationColumnCheckbox)
353 .addComponent(keepCurrentViewerRadioButton)
354 .addComponent(useBestViewerRadioButton)
355 .addComponent(useLocalTimeRadioButton)
356 .addComponent(useAnotherTimeRadioButton)))))
357 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
358 .addComponent(maxResultsLabel)
359 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
360 .addComponent(maxResultsSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)))
361 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
363 globalSettingsPanelLayout.setVerticalGroup(
364 globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
365 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
367 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
368 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
369 .addComponent(hideKnownFilesLabel)
370 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
371 .addComponent(dataSourcesHideKnownCheckbox)
372 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
373 .addComponent(viewsHideKnownCheckbox)
374 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
375 .addComponent(hideSlackFilesLabel)
376 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
377 .addComponent(dataSourcesHideSlackCheckbox)
378 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
379 .addComponent(viewsHideSlackCheckbox)
380 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
381 .addComponent(hideOtherUsersTagsLabel)
382 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
383 .addComponent(hideOtherUsersTagsCheckbox)
384 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
385 .addComponent(centralRepoLabel)
387 .addComponent(commentsOccurencesColumnsCheckbox, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
388 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
389 .addComponent(commentsOccurencesColumnWrapAroundText))
390 .addGroup(globalSettingsPanelLayout.createSequentialGroup()
391 .addComponent(selectFileLabel)
392 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
393 .addComponent(useBestViewerRadioButton)
394 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
395 .addComponent(keepCurrentViewerRadioButton)
396 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
397 .addComponent(displayTimeLabel)
398 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
399 .addComponent(useLocalTimeRadioButton)
400 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
401 .addComponent(useAnotherTimeRadioButton)
402 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
403 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
404 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
405 .addComponent(translateTextLabel)
406 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
407 .addComponent(fileNameTranslationColumnCheckbox)))
408 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
409 .addGroup(globalSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
410 .addComponent(maxResultsLabel)
411 .addComponent(maxResultsSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
412 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
415 currentCaseSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.currentCaseSettingsPanel.border.title")));
417 org.openide.awt.Mnemonics.setLocalizedText(groupByDataSourceCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.groupByDataSourceCheckbox.text"));
418 groupByDataSourceCheckbox.addActionListener(
new java.awt.event.ActionListener() {
419 public void actionPerformed(java.awt.event.ActionEvent evt) {
420 groupByDataSourceCheckboxActionPerformed(evt);
424 javax.swing.GroupLayout currentCaseSettingsPanelLayout =
new javax.swing.GroupLayout(currentCaseSettingsPanel);
425 currentCaseSettingsPanel.setLayout(currentCaseSettingsPanelLayout);
426 currentCaseSettingsPanelLayout.setHorizontalGroup(
427 currentCaseSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
428 .addGroup(currentCaseSettingsPanelLayout.createSequentialGroup()
430 .addComponent(groupByDataSourceCheckbox)
431 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
433 currentCaseSettingsPanelLayout.setVerticalGroup(
434 currentCaseSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
435 .addGroup(currentCaseSettingsPanelLayout.createSequentialGroup()
436 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
437 .addComponent(groupByDataSourceCheckbox))
440 currentSessionSettingsPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.currentSessionSettingsPanel.border.title")));
442 org.openide.awt.Mnemonics.setLocalizedText(hideRejectedResultsCheckbox,
org.openide.util.NbBundle.getMessage(
ViewPreferencesPanel.class,
"ViewPreferencesPanel.hideRejectedResultsCheckbox.text"));
443 hideRejectedResultsCheckbox.addActionListener(
new java.awt.event.ActionListener() {
444 public void actionPerformed(java.awt.event.ActionEvent evt) {
445 hideRejectedResultsCheckboxActionPerformed(evt);
449 javax.swing.GroupLayout currentSessionSettingsPanelLayout =
new javax.swing.GroupLayout(currentSessionSettingsPanel);
450 currentSessionSettingsPanel.setLayout(currentSessionSettingsPanelLayout);
451 currentSessionSettingsPanelLayout.setHorizontalGroup(
452 currentSessionSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
453 .addGroup(currentSessionSettingsPanelLayout.createSequentialGroup()
455 .addComponent(hideRejectedResultsCheckbox, javax.swing.GroupLayout.PREFERRED_SIZE, 259, javax.swing.GroupLayout.PREFERRED_SIZE)
456 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
458 currentSessionSettingsPanelLayout.setVerticalGroup(
459 currentSessionSettingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
460 .addGroup(currentSessionSettingsPanelLayout.createSequentialGroup()
461 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
462 .addComponent(hideRejectedResultsCheckbox))
465 javax.swing.GroupLayout viewPreferencesPanelLayout =
new javax.swing.GroupLayout(viewPreferencesPanel);
466 viewPreferencesPanel.setLayout(viewPreferencesPanelLayout);
467 viewPreferencesPanelLayout.setHorizontalGroup(
468 viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
469 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, viewPreferencesPanelLayout.createSequentialGroup()
471 .addGroup(viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
472 .addComponent(currentSessionSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
473 .addComponent(currentCaseSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
474 .addComponent(globalSettingsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
477 viewPreferencesPanelLayout.setVerticalGroup(
478 viewPreferencesPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
479 .addGroup(viewPreferencesPanelLayout.createSequentialGroup()
480 .addComponent(globalSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
481 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
482 .addComponent(currentCaseSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
483 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
484 .addComponent(currentSessionSettingsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
485 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
488 viewPreferencesScrollPane.setViewportView(viewPreferencesPanel);
490 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
491 this.setLayout(layout);
492 layout.setHorizontalGroup(
493 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
494 .addComponent(viewPreferencesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
496 layout.setVerticalGroup(
497 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
498 .addComponent(viewPreferencesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
503 if (immediateUpdates) {
504 storeGroupItemsInTreeByDataSource();
506 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
511 if (immediateUpdates) {
514 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
519 if (immediateUpdates && useAnotherTimeRadioButton.isSelected()) {
522 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
527 if (immediateUpdates) {
530 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
535 if (immediateUpdates) {
538 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
543 useLocalTimeRadioButton.setSelected(
false);
544 useAnotherTimeRadioButton.setSelected(
true);
545 timeZoneList.setEnabled(
true);
546 if (immediateUpdates) {
549 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
554 useLocalTimeRadioButton.setSelected(
true);
555 useAnotherTimeRadioButton.setSelected(
false);
556 timeZoneList.setEnabled(
false);
557 if (immediateUpdates) {
560 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
565 if (immediateUpdates) {
568 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
573 if (immediateUpdates) {
576 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
581 if (immediateUpdates) {
584 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
589 if (immediateUpdates) {
592 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
597 useBestViewerRadioButton.setSelected(
false);
598 keepCurrentViewerRadioButton.setSelected(
true);
599 if (immediateUpdates) {
602 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
607 useBestViewerRadioButton.setSelected(
true);
608 keepCurrentViewerRadioButton.setSelected(
false);
609 if (immediateUpdates) {
612 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
617 if (immediateUpdates) {
620 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
625 if (immediateUpdates) {
628 firePropertyChange(OptionsPanelController.PROP_CHANGED, null, null);
javax.swing.JLabel hideKnownFilesLabel
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.JCheckBox commentsOccurencesColumnsCheckbox
javax.swing.JLabel selectFileLabel
javax.swing.JList< String > timeZoneList
static List< String > createTimeZoneList()
static boolean hideSlackFilesInDataSourcesTree()
void keepCurrentViewerRadioButtonActionPerformed(java.awt.event.ActionEvent evt)
void commentsOccurencesColumnsCheckboxActionPerformed(java.awt.event.ActionEvent evt)
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()
javax.swing.JLabel maxResultsLabel
static void setResultsTablePageSize(int pageSize)
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 void setHideCentralRepoCommentsAndOccurrences(boolean value)
javax.swing.JCheckBox dataSourcesHideSlackCheckbox
javax.swing.JRadioButton keepCurrentViewerRadioButton
static boolean hideSlackFilesInViewsTree()
javax.swing.JPanel currentCaseSettingsPanel
static boolean isEnabled()
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)
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)
static boolean hideCentralRepoCommentsAndOccurrences()
javax.swing.JCheckBox hideRejectedResultsCheckbox
static void setShowOnlyCurrentUserTags(boolean value)
javax.swing.JLabel commentsOccurencesColumnWrapAroundText
javax.swing.JLabel centralRepoLabel
void dataSourcesHideSlackCheckboxActionPerformed(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