mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 07:56:16 +00:00
4792 fix other right click actions
This commit is contained in:
parent
cd1a2782f2
commit
00ee5c7a8b
@ -302,7 +302,7 @@ public class DataContentViewerOtherCases extends JPanel implements DataContentVi
|
|||||||
headers.append('"').append(Bundle.DataContentViewerOtherCasesModel_csvHeader_value()).append('"').append(',');
|
headers.append('"').append(Bundle.DataContentViewerOtherCasesModel_csvHeader_value()).append('"').append(',');
|
||||||
headers.append('"').append(Bundle.DataContentViewerOtherCasesModel_csvHeader_known()).append('"').append(',');
|
headers.append('"').append(Bundle.DataContentViewerOtherCasesModel_csvHeader_known()).append('"').append(',');
|
||||||
headers.append('"').append(Bundle.DataContentViewerOtherCasesModel_csvHeader_path()).append('"').append(',');
|
headers.append('"').append(Bundle.DataContentViewerOtherCasesModel_csvHeader_path()).append('"').append(',');
|
||||||
headers.append('"').append(Bundle.DataContentViewerOtherCasesModel_csvHeader_value()).append('"').append(System.getProperty("line.separator"));
|
headers.append('"').append(Bundle.DataContentViewerOtherCasesModel_csvHeader_comment()).append('"').append(System.getProperty("line.separator"));
|
||||||
writer.write(headers.toString());
|
writer.write(headers.toString());
|
||||||
//write content
|
//write content
|
||||||
for (CorrelationAttributeInstance corAttr : correlationAttributes) {
|
for (CorrelationAttributeInstance corAttr : correlationAttributes) {
|
||||||
@ -1078,18 +1078,17 @@ public class DataContentViewerOtherCases extends JPanel implements DataContentVi
|
|||||||
}// </editor-fold>//GEN-END:initComponents
|
}// </editor-fold>//GEN-END:initComponents
|
||||||
|
|
||||||
private void rightClickPopupMenuPopupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {//GEN-FIRST:event_rightClickPopupMenuPopupMenuWillBecomeVisible
|
private void rightClickPopupMenuPopupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {//GEN-FIRST:event_rightClickPopupMenuPopupMenuWillBecomeVisible
|
||||||
// boolean enableCentralRepoActions = false;
|
boolean enableCentralRepoActions = false;
|
||||||
//
|
if (EamDb.isEnabled() && filesTable.getSelectedRowCount() == 1) {
|
||||||
// if (EamDb.isEnabled() && filesTable.getSelectedRowCount() == 1) {
|
int rowIndex = filesTable.getSelectedRow();
|
||||||
// int rowIndex = filesTable.getSelectedRow();
|
List<OtherOccurrenceNodeData> selectedFile = filesTableModel.getRow(rowIndex);
|
||||||
// List<OtherOccurrenceNodeData> selectedNode = (OtherOccurrenceNodeData) filesTableModel.getRow(rowIndex);
|
if (selectedFile.get(0) instanceof OtherOccurrenceNodeInstanceData) {
|
||||||
// if (selectedNode instanceof OtherOccurrenceNodeInstanceData) {
|
OtherOccurrenceNodeInstanceData instanceData = (OtherOccurrenceNodeInstanceData) selectedFile.get(0);
|
||||||
// OtherOccurrenceNodeInstanceData instanceData = (OtherOccurrenceNodeInstanceData) selectedNode;
|
enableCentralRepoActions = instanceData.isCentralRepoNode();
|
||||||
// enableCentralRepoActions = instanceData.isCentralRepoNode();
|
}
|
||||||
// }
|
}
|
||||||
// }
|
showCaseDetailsMenuItem.setVisible(enableCentralRepoActions);
|
||||||
// showCaseDetailsMenuItem.setVisible(enableCentralRepoActions);
|
showCommonalityMenuItem.setVisible(enableCentralRepoActions);
|
||||||
// showCommonalityMenuItem.setVisible(enableCentralRepoActions);
|
|
||||||
}//GEN-LAST:event_rightClickPopupMenuPopupMenuWillBecomeVisible
|
}//GEN-LAST:event_rightClickPopupMenuPopupMenuWillBecomeVisible
|
||||||
|
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
|
Loading…
x
Reference in New Issue
Block a user