Autopsy  4.14.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
OpenMultiUserCaseDialog.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2017-2019 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.casemodule;
20 
21 import java.awt.Dialog;
22 import javax.swing.JDialog;
23 import org.openide.util.NbBundle;
24 import org.openide.windows.WindowManager;
25 
29 final class OpenMultiUserCaseDialog extends JDialog {
30 
31  private static final long serialVersionUID = 1L;
32  private static OpenMultiUserCaseDialog instance;
33  private static OpenMultiUserCasePanel multiUserCasesPanel;
34 
40  public synchronized static OpenMultiUserCaseDialog getInstance() {
41  if (instance == null) {
42  instance = new OpenMultiUserCaseDialog();
43  instance.init();
44  }
45  return instance;
46  }
47 
52  @NbBundle.Messages({
53  "OpenMultiUserCaseDialog.title=Open Multi-User Case"
54  })
55  private OpenMultiUserCaseDialog() {
56  super(WindowManager.getDefault().getMainWindow(), Bundle.OpenMultiUserCaseDialog_title(), Dialog.ModalityType.APPLICATION_MODAL);
57  }
58 
63  private void init() {
64  multiUserCasesPanel = new OpenMultiUserCasePanel(this);
65  add(multiUserCasesPanel);
66  pack();
67  setResizable(false);
68  }
69 
76  @Override
77  public void setVisible(boolean makeVisible) {
78  if (makeVisible) {
79  multiUserCasesPanel.refreshDisplay();
80  }
81  super.setVisible(makeVisible);
82  }
83 
84 }

Copyright © 2012-2020 Basis Technology. Generated on: Wed Apr 8 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.