mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Add PhysicalDrive access permission warning
This commit is contained in:
parent
38d88fb782
commit
87322bde4d
@ -85,7 +85,7 @@
|
|||||||
</Group>
|
</Group>
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||||
<Component id="containerPanel" min="-2" max="-2" attributes="0"/>
|
<Component id="containerPanel" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace pref="40" max="32767" attributes="0"/>
|
<EmptySpace max="32767" attributes="0"/>
|
||||||
<Component id="nextLabel" min="-2" max="-2" attributes="0"/>
|
<Component id="nextLabel" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
@ -200,7 +200,7 @@
|
|||||||
<Container class="javax.swing.JPanel" name="typePanel">
|
<Container class="javax.swing.JPanel" name="typePanel">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||||
<Dimension value="[0, 45]"/>
|
<Dimension value="[0, 60]"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
|
|
||||||
|
@ -232,7 +232,7 @@ final class AddImageVisualPanel1 extends JPanel {
|
|||||||
|
|
||||||
timeZoneComboBox.setMaximumRowCount(30);
|
timeZoneComboBox.setMaximumRowCount(30);
|
||||||
|
|
||||||
typePanel.setMinimumSize(new java.awt.Dimension(0, 45));
|
typePanel.setMinimumSize(new java.awt.Dimension(0, 60));
|
||||||
|
|
||||||
javax.swing.GroupLayout typePanelLayout = new javax.swing.GroupLayout(typePanel);
|
javax.swing.GroupLayout typePanelLayout = new javax.swing.GroupLayout(typePanel);
|
||||||
typePanel.setLayout(typePanelLayout);
|
typePanel.setLayout(typePanelLayout);
|
||||||
@ -338,7 +338,7 @@ final class AddImageVisualPanel1 extends JPanel {
|
|||||||
.addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 6, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 6, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||||
.addComponent(containerPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
.addComponent(containerPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 40, Short.MAX_VALUE)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
||||||
.addComponent(nextLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(nextLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||||
);
|
);
|
||||||
}// </editor-fold>//GEN-END:initComponents
|
}// </editor-fold>//GEN-END:initComponents
|
||||||
|
@ -135,3 +135,4 @@ AddImageVisualPanel1.timeZoneLabel.text=Please select the image timezone:
|
|||||||
AddImageVisualPanel1.noFatOrphansCheckbox.toolTipText=
|
AddImageVisualPanel1.noFatOrphansCheckbox.toolTipText=
|
||||||
AddImageVisualPanel1.noFatOrphansCheckbox.text=Ignore orphan files in FAT file systems
|
AddImageVisualPanel1.noFatOrphansCheckbox.text=Ignore orphan files in FAT file systems
|
||||||
MissingImageDialog.cancelButton.text=Cancel
|
MissingImageDialog.cancelButton.text=Cancel
|
||||||
|
LocalDiskPanel.errorLabel.text=Error Label
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
<Form version="1.5" maxVersion="1.8" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
|
<Form version="1.5" maxVersion="1.8" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
<Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||||
<Dimension value="[0, 43]"/>
|
<Dimension value="[0, 60]"/>
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||||
<Dimension value="[485, 43]"/>
|
<Dimension value="[485, 60]"/>
|
||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
<AuxValues>
|
<AuxValues>
|
||||||
@ -28,6 +28,7 @@
|
|||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="diskLabel" min="-2" max="-2" attributes="0"/>
|
<Component id="diskLabel" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="diskComboBox" min="-2" pref="345" max="-2" attributes="0"/>
|
<Component id="diskComboBox" min="-2" pref="345" max="-2" attributes="0"/>
|
||||||
|
<Component id="errorLabel" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace min="0" pref="140" max="32767" attributes="0"/>
|
<EmptySpace min="0" pref="140" max="32767" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
@ -39,6 +40,8 @@
|
|||||||
<Component id="diskLabel" min="-2" max="-2" attributes="0"/>
|
<Component id="diskLabel" min="-2" max="-2" attributes="0"/>
|
||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Component id="diskComboBox" min="-2" max="-2" attributes="0"/>
|
<Component id="diskComboBox" min="-2" max="-2" attributes="0"/>
|
||||||
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
|
<Component id="errorLabel" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
@ -58,5 +61,15 @@
|
|||||||
</Property>
|
</Property>
|
||||||
</Properties>
|
</Properties>
|
||||||
</Component>
|
</Component>
|
||||||
|
<Component class="javax.swing.JLabel" name="errorLabel">
|
||||||
|
<Properties>
|
||||||
|
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||||
|
<Color blue="0" green="0" red="ff" type="rgb"/>
|
||||||
|
</Property>
|
||||||
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
|
<ResourceString bundle="org/sleuthkit/autopsy/casemodule/Bundle.properties" key="LocalDiskPanel.errorLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
|
</Property>
|
||||||
|
</Properties>
|
||||||
|
</Component>
|
||||||
</SubComponents>
|
</SubComponents>
|
||||||
</Form>
|
</Form>
|
||||||
|
@ -58,9 +58,15 @@ public class LocalDiskPanel extends ImageTypePanel {
|
|||||||
* Update the JComboBox with the list of disks.
|
* Update the JComboBox with the list of disks.
|
||||||
*/
|
*/
|
||||||
private void updateDisks() {
|
private void updateDisks() {
|
||||||
|
errorLabel.setText("");
|
||||||
disks = new ArrayList<LocalDisk>();
|
disks = new ArrayList<LocalDisk>();
|
||||||
disks.addAll(PlatformUtil.getPhysicalDrives());
|
List<LocalDisk> physical = PlatformUtil.getPhysicalDrives();
|
||||||
disks.addAll(PlatformUtil.getPartitions());
|
List<LocalDisk> local = PlatformUtil.getPartitions();
|
||||||
|
if(physical.isEmpty()) {
|
||||||
|
errorLabel.setText("Warning: You do not have the proper permissions to access your computer's physical drives.");
|
||||||
|
}
|
||||||
|
disks.addAll(physical);
|
||||||
|
disks.addAll(local);
|
||||||
model = new LocalDiskModel();
|
model = new LocalDiskModel();
|
||||||
diskComboBox.setModel(model);
|
diskComboBox.setModel(model);
|
||||||
diskComboBox.setSelectedIndex(0);
|
diskComboBox.setSelectedIndex(0);
|
||||||
@ -77,12 +83,16 @@ public class LocalDiskPanel extends ImageTypePanel {
|
|||||||
|
|
||||||
diskLabel = new javax.swing.JLabel();
|
diskLabel = new javax.swing.JLabel();
|
||||||
diskComboBox = new javax.swing.JComboBox();
|
diskComboBox = new javax.swing.JComboBox();
|
||||||
|
errorLabel = new javax.swing.JLabel();
|
||||||
|
|
||||||
setMinimumSize(new java.awt.Dimension(0, 43));
|
setMinimumSize(new java.awt.Dimension(0, 60));
|
||||||
setPreferredSize(new java.awt.Dimension(485, 43));
|
setPreferredSize(new java.awt.Dimension(485, 60));
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(diskLabel, org.openide.util.NbBundle.getMessage(LocalDiskPanel.class, "LocalDiskPanel.diskLabel.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(diskLabel, org.openide.util.NbBundle.getMessage(LocalDiskPanel.class, "LocalDiskPanel.diskLabel.text")); // NOI18N
|
||||||
|
|
||||||
|
errorLabel.setForeground(new java.awt.Color(255, 0, 0));
|
||||||
|
org.openide.awt.Mnemonics.setLocalizedText(errorLabel, org.openide.util.NbBundle.getMessage(LocalDiskPanel.class, "LocalDiskPanel.errorLabel.text")); // NOI18N
|
||||||
|
|
||||||
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
|
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
|
||||||
this.setLayout(layout);
|
this.setLayout(layout);
|
||||||
layout.setHorizontalGroup(
|
layout.setHorizontalGroup(
|
||||||
@ -90,7 +100,8 @@ public class LocalDiskPanel extends ImageTypePanel {
|
|||||||
.addGroup(layout.createSequentialGroup()
|
.addGroup(layout.createSequentialGroup()
|
||||||
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(diskLabel)
|
.addComponent(diskLabel)
|
||||||
.addComponent(diskComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 345, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(diskComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 345, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addComponent(errorLabel))
|
||||||
.addGap(0, 140, Short.MAX_VALUE))
|
.addGap(0, 140, Short.MAX_VALUE))
|
||||||
);
|
);
|
||||||
layout.setVerticalGroup(
|
layout.setVerticalGroup(
|
||||||
@ -98,12 +109,15 @@ public class LocalDiskPanel extends ImageTypePanel {
|
|||||||
.addGroup(layout.createSequentialGroup()
|
.addGroup(layout.createSequentialGroup()
|
||||||
.addComponent(diskLabel)
|
.addComponent(diskLabel)
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
.addComponent(diskComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
.addComponent(diskComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||||
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||||
|
.addComponent(errorLabel))
|
||||||
);
|
);
|
||||||
}// </editor-fold>//GEN-END:initComponents
|
}// </editor-fold>//GEN-END:initComponents
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
private javax.swing.JComboBox diskComboBox;
|
private javax.swing.JComboBox diskComboBox;
|
||||||
private javax.swing.JLabel diskLabel;
|
private javax.swing.JLabel diskLabel;
|
||||||
|
private javax.swing.JLabel errorLabel;
|
||||||
// End of variables declaration//GEN-END:variables
|
// End of variables declaration//GEN-END:variables
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user