diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardSelectDspVisual.java b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardSelectDspVisual.java index dea544c416..9c66184b47 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardSelectDspVisual.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/AddImageWizardSelectDspVisual.java @@ -37,6 +37,7 @@ import javax.swing.JPanel; import javax.swing.JTextArea; import javax.swing.JToggleButton; import org.openide.util.Lookup; +import org.openide.util.NbBundle; import org.sleuthkit.autopsy.corecomponentinterfaces.DataSourceProcessor; import org.sleuthkit.autopsy.datasourceprocessors.RawDSProcessor; import org.sleuthkit.autopsy.coreutils.Logger; @@ -56,8 +57,11 @@ final class AddImageWizardSelectDspVisual extends JPanel { AddImageWizardSelectDspVisual(String lastDspUsed) { initComponents(); selectedDsp = lastDspUsed; + //if the last selected DSP was the Local Disk DSP and it would be disabled then we want to select a different DSP + if ((Case.getCurrentCase().getCaseType() == Case.CaseType.MULTI_USER_CASE) && selectedDsp.equals(LocalDiskDSProcessor.getType())) { + selectedDsp = ImageDSProcessor.getType(); + } createDataSourceProcessorButtons(); - //add actionlistner to listen for change } @@ -87,6 +91,7 @@ final class AddImageWizardSelectDspVisual extends JPanel { return selectedDsp; } + @NbBundle.Messages("AddImageWizardSelectDspVisual.multiUserWarning.text=This type of Data Source Processor is not available in multi-user mode") /** * Create the a button for each DataSourceProcessor that should exist as an * option. @@ -110,6 +115,7 @@ final class AddImageWizardSelectDspVisual extends JPanel { constraints.anchor = GridBagConstraints.LINE_START; Dimension spacerBlockDimension = new Dimension(6, 4); // Space between left edge and button, Space between rows for (String dspType : dspList) { + boolean shouldAddMultiUserWarning = false; constraints.weightx = 1; //Add a spacer Filler spacer = new Filler(spacerBlockDimension, spacerBlockDimension, spacerBlockDimension); @@ -120,6 +126,11 @@ final class AddImageWizardSelectDspVisual extends JPanel { //Add the button JToggleButton dspButton = createDspButton(dspType); dspButton.addActionListener(cbActionListener); + if ((Case.getCurrentCase().getCaseType() == Case.CaseType.MULTI_USER_CASE) && dspType.equals(LocalDiskDSProcessor.getType())){ + dspButton.setEnabled(false); //disable the button for local disk DSP when this is a multi user case + dspButton.setSelected(false); + shouldAddMultiUserWarning = true; + } jPanel1.add(dspButton); buttonGroup1.add(dspButton); gridBagLayout.setConstraints(dspButton, constraints); @@ -130,7 +141,14 @@ final class AddImageWizardSelectDspVisual extends JPanel { jPanel1.add(buttonTextSpacer); constraints.gridx++; //Add the text area serving as a label to the right of the button - JTextArea myLabel = new JTextArea(dspType); + + JTextArea myLabel = new JTextArea(); + if (shouldAddMultiUserWarning) { + myLabel.setText(dspType + " - " + NbBundle.getMessage(this.getClass(), "AddImageWizardSelectDspVisual.multiUserWarning.text")); + myLabel.setEnabled(false); //gray out the text + } else { + myLabel.setText(dspType); + } myLabel.setBackground(new Color(240, 240, 240));//matches background of panel myLabel.setEditable(false); myLabel.setWrapStyleWord(true); @@ -169,12 +187,7 @@ final class AddImageWizardSelectDspVisual extends JPanel { } } dspList.add(ImageDSProcessor.getType()); - if (Case.getCurrentCase().getCaseType() != Case.CaseType.MULTI_USER_CASE) { - dspList.add(LocalDiskDSProcessor.getType()); - } else { - // remove LocalDiskDSProcessor from list of DSPs - datasourceProcessorsMap.remove(LocalDiskDSProcessor.getType()); - } + dspList.add(LocalDiskDSProcessor.getType()); dspList.add(LocalFilesDSProcessor.getType()); dspList.add(RawDSProcessor.getType()); // now add any addtional DSPs that haven't already been added diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/Bundle.properties b/Core/src/org/sleuthkit/autopsy/casemodule/Bundle.properties index 5b3313b1fd..05588f5d1f 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/Bundle.properties +++ b/Core/src/org/sleuthkit/autopsy/casemodule/Bundle.properties @@ -241,4 +241,4 @@ CasePropertiesPanel.lbDbType.text=Case Type: CasePropertiesPanel.examinerLabel.text=Examiner: CasePropertiesPanel.caseNumberLabel.text=Case Number: CasePropertiesPanel.deleteCaseButton.text=Delete Case -LocalDiskPanel.changeDatabasePathCheckbox.text=Change image path in the case to the VHD upon completion +LocalDiskPanel.changeDatabasePathCheckbox.text=Update case to use VHD file upon completion