mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 19:14:55 +00:00
5979 fix codacy issues
This commit is contained in:
parent
e497816e10
commit
d39a9d5d33
@ -28,7 +28,7 @@ import org.openide.util.NbBundle;
|
|||||||
/**
|
/**
|
||||||
* Utility class for the various user interface elements used by File Discovery.
|
* Utility class for the various user interface elements used by File Discovery.
|
||||||
*/
|
*/
|
||||||
class DiscoveryUiUtils {
|
final class DiscoveryUiUtils {
|
||||||
|
|
||||||
private static final int BYTE_UNIT_CONVERSION = 1000;
|
private static final int BYTE_UNIT_CONVERSION = 1000;
|
||||||
private static final int ICON_SIZE = 16;
|
private static final int ICON_SIZE = 16;
|
||||||
|
@ -133,6 +133,8 @@
|
|||||||
<Property name="verticalScrollBarPolicy" type="int" value="21"/>
|
<Property name="verticalScrollBarPolicy" type="int" value="21"/>
|
||||||
</Properties>
|
</Properties>
|
||||||
<AuxValues>
|
<AuxValues>
|
||||||
|
<AuxValue name="JavaCodeGenerator_VariableLocal" type="java.lang.Boolean" value="true"/>
|
||||||
|
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="0"/>
|
||||||
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
|
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
|
||||||
</AuxValues>
|
</AuxValues>
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ public class DocumentPanel extends javax.swing.JPanel implements ListCellRendere
|
|||||||
scoreLabel = new javax.swing.JLabel();
|
scoreLabel = new javax.swing.JLabel();
|
||||||
fileSizeLabel = new javax.swing.JLabel();
|
fileSizeLabel = new javax.swing.JLabel();
|
||||||
documentType = new javax.swing.JLabel();
|
documentType = new javax.swing.JLabel();
|
||||||
previewScrollPane = new javax.swing.JScrollPane();
|
javax.swing.JScrollPane previewScrollPane = new javax.swing.JScrollPane();
|
||||||
previewTextArea = new javax.swing.JTextArea();
|
previewTextArea = new javax.swing.JTextArea();
|
||||||
|
|
||||||
setBorder(javax.swing.BorderFactory.createEtchedBorder());
|
setBorder(javax.swing.BorderFactory.createEtchedBorder());
|
||||||
@ -69,15 +69,15 @@ public class DocumentPanel extends javax.swing.JPanel implements ListCellRendere
|
|||||||
|
|
||||||
isDeletedLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/sleuthkit/autopsy/images/file-icon-deleted.png"))); // NOI18N
|
isDeletedLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/sleuthkit/autopsy/images/file-icon-deleted.png"))); // NOI18N
|
||||||
isDeletedLabel.setToolTipText(org.openide.util.NbBundle.getMessage(DocumentPanel.class, "DocumentPanel.isDeletedLabel.toolTipText")); // NOI18N
|
isDeletedLabel.setToolTipText(org.openide.util.NbBundle.getMessage(DocumentPanel.class, "DocumentPanel.isDeletedLabel.toolTipText")); // NOI18N
|
||||||
isDeletedLabel.setMaximumSize(new Dimension(DiscoveryUiUtils.getIconSize(),DiscoveryUiUtils.getIconSize()));
|
isDeletedLabel.setMaximumSize(new Dimension(org.sleuthkit.autopsy.filequery.DiscoveryUiUtils.getIconSize(),org.sleuthkit.autopsy.filequery.DiscoveryUiUtils.getIconSize()));
|
||||||
isDeletedLabel.setMinimumSize(new Dimension(DiscoveryUiUtils.getIconSize(),DiscoveryUiUtils.getIconSize()));
|
isDeletedLabel.setMinimumSize(new Dimension(org.sleuthkit.autopsy.filequery.DiscoveryUiUtils.getIconSize(),org.sleuthkit.autopsy.filequery.DiscoveryUiUtils.getIconSize()));
|
||||||
isDeletedLabel.setPreferredSize(new Dimension(DiscoveryUiUtils.getIconSize(),DiscoveryUiUtils.getIconSize()));
|
isDeletedLabel.setPreferredSize(new Dimension(org.sleuthkit.autopsy.filequery.DiscoveryUiUtils.getIconSize(),org.sleuthkit.autopsy.filequery.DiscoveryUiUtils.getIconSize()));
|
||||||
|
|
||||||
scoreLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/sleuthkit/autopsy/images/red-circle-exclamation.png"))); // NOI18N
|
scoreLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/sleuthkit/autopsy/images/red-circle-exclamation.png"))); // NOI18N
|
||||||
scoreLabel.setToolTipText("");
|
scoreLabel.setToolTipText("");
|
||||||
scoreLabel.setMaximumSize(new Dimension(DiscoveryUiUtils.getIconSize(),DiscoveryUiUtils.getIconSize()));
|
scoreLabel.setMaximumSize(new Dimension(org.sleuthkit.autopsy.filequery.DiscoveryUiUtils.getIconSize(),org.sleuthkit.autopsy.filequery.DiscoveryUiUtils.getIconSize()));
|
||||||
scoreLabel.setMinimumSize(new Dimension(DiscoveryUiUtils.getIconSize(),DiscoveryUiUtils.getIconSize()));
|
scoreLabel.setMinimumSize(new Dimension(org.sleuthkit.autopsy.filequery.DiscoveryUiUtils.getIconSize(),org.sleuthkit.autopsy.filequery.DiscoveryUiUtils.getIconSize()));
|
||||||
scoreLabel.setPreferredSize(new Dimension(DiscoveryUiUtils.getIconSize(),DiscoveryUiUtils.getIconSize()));
|
scoreLabel.setPreferredSize(new Dimension(org.sleuthkit.autopsy.filequery.DiscoveryUiUtils.getIconSize(),org.sleuthkit.autopsy.filequery.DiscoveryUiUtils.getIconSize()));
|
||||||
|
|
||||||
fileSizeLabel.setToolTipText(org.openide.util.NbBundle.getMessage(DocumentPanel.class, "DocumentPanel.fileSizeLabel.toolTipText")); // NOI18N
|
fileSizeLabel.setToolTipText(org.openide.util.NbBundle.getMessage(DocumentPanel.class, "DocumentPanel.fileSizeLabel.toolTipText")); // NOI18N
|
||||||
|
|
||||||
@ -138,7 +138,6 @@ public class DocumentPanel extends javax.swing.JPanel implements ListCellRendere
|
|||||||
private javax.swing.JLabel documentType;
|
private javax.swing.JLabel documentType;
|
||||||
private javax.swing.JLabel fileSizeLabel;
|
private javax.swing.JLabel fileSizeLabel;
|
||||||
private javax.swing.JLabel isDeletedLabel;
|
private javax.swing.JLabel isDeletedLabel;
|
||||||
private javax.swing.JScrollPane previewScrollPane;
|
|
||||||
private javax.swing.JTextArea previewTextArea;
|
private javax.swing.JTextArea previewTextArea;
|
||||||
private javax.swing.JLabel scoreLabel;
|
private javax.swing.JLabel scoreLabel;
|
||||||
// End of variables declaration//GEN-END:variables
|
// End of variables declaration//GEN-END:variables
|
||||||
|
Loading…
x
Reference in New Issue
Block a user