mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Simplify Lists top component as it no longer needs to share features with the other tabs
This commit is contained in:
parent
1f58c74006
commit
e145d545ca
@ -40,8 +40,6 @@ KeywordSearchListImportExportTopComponent.topLabel.text=Manage (import, export,
|
|||||||
KeywordSearchListImportExportTopComponent.importButton.text=Import
|
KeywordSearchListImportExportTopComponent.importButton.text=Import
|
||||||
KeywordSearchListImportExportTopComponent.exportButton.text=Export
|
KeywordSearchListImportExportTopComponent.exportButton.text=Export
|
||||||
KeywordSearchListImportExportTopComponent.deleteButton.text=Delete
|
KeywordSearchListImportExportTopComponent.deleteButton.text=Delete
|
||||||
KeywordSearchListImportExportTopComponent.filesIndexedNameLabel.text=Files indexed:
|
|
||||||
KeywordSearchListImportExportTopComponent.filesIndexedValLabel.text=-
|
|
||||||
KeywordSearchListTopComponent.curListNameLabel.text=Loaded list:
|
KeywordSearchListTopComponent.curListNameLabel.text=Loaded list:
|
||||||
KeywordSearchListTopComponent.curListValLabel.text=-
|
KeywordSearchListTopComponent.curListValLabel.text=-
|
||||||
KeywordSearchListTopComponent.importButton.text=Import List
|
KeywordSearchListTopComponent.importButton.text=Import List
|
||||||
|
@ -49,11 +49,6 @@
|
|||||||
<EmptySpace max="-2" attributes="0"/>
|
<EmptySpace max="-2" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="0" attributes="0">
|
<Group type="103" groupAlignment="0" attributes="0">
|
||||||
<Component id="topLabel" alignment="0" min="-2" max="-2" attributes="0"/>
|
<Component id="topLabel" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||||
<Group type="102" alignment="0" attributes="0">
|
|
||||||
<Component id="filesIndexedNameLabel" min="-2" max="-2" attributes="0"/>
|
|
||||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
|
||||||
<Component id="filesIndexedValLabel" min="-2" pref="62" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<Group type="103" alignment="0" groupAlignment="1" max="-2" attributes="0">
|
<Group type="103" alignment="0" groupAlignment="1" max="-2" attributes="0">
|
||||||
<Group type="102" alignment="0" attributes="1">
|
<Group type="102" alignment="0" attributes="1">
|
||||||
<Component id="importButton" min="-2" max="-2" attributes="0"/>
|
<Component id="importButton" min="-2" max="-2" attributes="0"/>
|
||||||
@ -82,31 +77,12 @@
|
|||||||
<Component id="exportButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="exportButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
<Component id="deleteButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
<Component id="deleteButton" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||||
</Group>
|
</Group>
|
||||||
<EmptySpace min="-2" pref="35" max="-2" attributes="0"/>
|
<EmptySpace pref="113" max="32767" attributes="0"/>
|
||||||
<Group type="103" groupAlignment="3" attributes="0">
|
|
||||||
<Component id="filesIndexedNameLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
<Component id="filesIndexedValLabel" alignment="3" min="-2" max="-2" attributes="0"/>
|
|
||||||
</Group>
|
|
||||||
<EmptySpace pref="64" max="32767" attributes="0"/>
|
|
||||||
</Group>
|
</Group>
|
||||||
</Group>
|
</Group>
|
||||||
</DimensionLayout>
|
</DimensionLayout>
|
||||||
</Layout>
|
</Layout>
|
||||||
<SubComponents>
|
<SubComponents>
|
||||||
<Component class="javax.swing.JLabel" name="filesIndexedNameLabel">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/keywordsearch/Bundle.properties" key="KeywordSearchListImportExportTopComponent.filesIndexedNameLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JLabel" name="filesIndexedValLabel">
|
|
||||||
<Properties>
|
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
|
||||||
<ResourceString bundle="org/sleuthkit/autopsy/keywordsearch/Bundle.properties" key="KeywordSearchListImportExportTopComponent.filesIndexedValLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
|
||||||
</Property>
|
|
||||||
</Properties>
|
|
||||||
</Component>
|
|
||||||
<Component class="javax.swing.JButton" name="importButton">
|
<Component class="javax.swing.JButton" name="importButton">
|
||||||
<Properties>
|
<Properties>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
package org.sleuthkit.autopsy.keywordsearch;
|
package org.sleuthkit.autopsy.keywordsearch;
|
||||||
|
|
||||||
import java.awt.Component;
|
import java.awt.Component;
|
||||||
import java.awt.event.ActionListener;
|
|
||||||
import java.beans.PropertyChangeEvent;
|
import java.beans.PropertyChangeEvent;
|
||||||
import java.beans.PropertyChangeListener;
|
import java.beans.PropertyChangeListener;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
@ -28,7 +27,6 @@ import java.text.SimpleDateFormat;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.TreeSet;
|
import java.util.TreeSet;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
@ -58,7 +56,7 @@ persistenceType = TopComponent.PERSISTENCE_NEVER)
|
|||||||
@ActionReference(path = "Menu/Window" /*, position = 333 */)
|
@ActionReference(path = "Menu/Window" /*, position = 333 */)
|
||||||
@TopComponent.OpenActionRegistration(displayName = "#CTL_KeywordSearchListImportExportAction",
|
@TopComponent.OpenActionRegistration(displayName = "#CTL_KeywordSearchListImportExportAction",
|
||||||
preferredID = "KeywordSearchListImportExportTopComponent")
|
preferredID = "KeywordSearchListImportExportTopComponent")
|
||||||
public final class KeywordSearchListImportExportTopComponent extends TopComponent implements KeywordSearchTopComponentInterface {
|
public final class KeywordSearchListImportExportTopComponent extends TopComponent {
|
||||||
|
|
||||||
private Logger logger = Logger.getLogger(KeywordSearchListImportExportTopComponent.class.getName());
|
private Logger logger = Logger.getLogger(KeywordSearchListImportExportTopComponent.class.getName());
|
||||||
private KeywordListTableModel tableModel;
|
private KeywordListTableModel tableModel;
|
||||||
@ -162,8 +160,6 @@ public final class KeywordSearchListImportExportTopComponent extends TopComponen
|
|||||||
|
|
||||||
mainScrollPane = new javax.swing.JScrollPane();
|
mainScrollPane = new javax.swing.JScrollPane();
|
||||||
mainPanel = new javax.swing.JPanel();
|
mainPanel = new javax.swing.JPanel();
|
||||||
filesIndexedNameLabel = new javax.swing.JLabel();
|
|
||||||
filesIndexedValLabel = new javax.swing.JLabel();
|
|
||||||
importButton = new javax.swing.JButton();
|
importButton = new javax.swing.JButton();
|
||||||
exportButton = new javax.swing.JButton();
|
exportButton = new javax.swing.JButton();
|
||||||
deleteButton = new javax.swing.JButton();
|
deleteButton = new javax.swing.JButton();
|
||||||
@ -175,10 +171,6 @@ public final class KeywordSearchListImportExportTopComponent extends TopComponen
|
|||||||
|
|
||||||
mainPanel.setPreferredSize(new java.awt.Dimension(349, 433));
|
mainPanel.setPreferredSize(new java.awt.Dimension(349, 433));
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(filesIndexedNameLabel, org.openide.util.NbBundle.getMessage(KeywordSearchListImportExportTopComponent.class, "KeywordSearchListImportExportTopComponent.filesIndexedNameLabel.text")); // NOI18N
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(filesIndexedValLabel, org.openide.util.NbBundle.getMessage(KeywordSearchListImportExportTopComponent.class, "KeywordSearchListImportExportTopComponent.filesIndexedValLabel.text")); // NOI18N
|
|
||||||
|
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(importButton, org.openide.util.NbBundle.getMessage(KeywordSearchListImportExportTopComponent.class, "KeywordSearchListImportExportTopComponent.importButton.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(importButton, org.openide.util.NbBundle.getMessage(KeywordSearchListImportExportTopComponent.class, "KeywordSearchListImportExportTopComponent.importButton.text")); // NOI18N
|
||||||
importButton.addActionListener(new java.awt.event.ActionListener() {
|
importButton.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
@ -217,10 +209,6 @@ public final class KeywordSearchListImportExportTopComponent extends TopComponen
|
|||||||
.addContainerGap()
|
.addContainerGap()
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||||
.addComponent(topLabel)
|
.addComponent(topLabel)
|
||||||
.addGroup(mainPanelLayout.createSequentialGroup()
|
|
||||||
.addComponent(filesIndexedNameLabel)
|
|
||||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
|
||||||
.addComponent(filesIndexedValLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE))
|
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
|
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
|
||||||
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, mainPanelLayout.createSequentialGroup()
|
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, mainPanelLayout.createSequentialGroup()
|
||||||
.addComponent(importButton)
|
.addComponent(importButton)
|
||||||
@ -243,11 +231,7 @@ public final class KeywordSearchListImportExportTopComponent extends TopComponen
|
|||||||
.addComponent(importButton)
|
.addComponent(importButton)
|
||||||
.addComponent(exportButton)
|
.addComponent(exportButton)
|
||||||
.addComponent(deleteButton))
|
.addComponent(deleteButton))
|
||||||
.addGap(35, 35, 35)
|
.addContainerGap(113, Short.MAX_VALUE))
|
||||||
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
|
||||||
.addComponent(filesIndexedNameLabel)
|
|
||||||
.addComponent(filesIndexedValLabel))
|
|
||||||
.addContainerGap(64, Short.MAX_VALUE))
|
|
||||||
);
|
);
|
||||||
|
|
||||||
mainScrollPane.setViewportView(mainPanel);
|
mainScrollPane.setViewportView(mainPanel);
|
||||||
@ -400,8 +384,6 @@ public final class KeywordSearchListImportExportTopComponent extends TopComponen
|
|||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
private javax.swing.JButton deleteButton;
|
private javax.swing.JButton deleteButton;
|
||||||
private javax.swing.JButton exportButton;
|
private javax.swing.JButton exportButton;
|
||||||
private javax.swing.JLabel filesIndexedNameLabel;
|
|
||||||
private javax.swing.JLabel filesIndexedValLabel;
|
|
||||||
private javax.swing.JButton importButton;
|
private javax.swing.JButton importButton;
|
||||||
private javax.swing.JScrollPane jScrollPane1;
|
private javax.swing.JScrollPane jScrollPane1;
|
||||||
private javax.swing.JTable listsTable;
|
private javax.swing.JTable listsTable;
|
||||||
@ -427,39 +409,6 @@ public final class KeywordSearchListImportExportTopComponent extends TopComponen
|
|||||||
void readProperties(java.util.Properties p) {
|
void readProperties(java.util.Properties p) {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void addSearchButtonListener(ActionListener l) {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<Keyword> getQueryList() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public String getQueryText() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isLuceneQuerySelected() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isMultiwordQuery() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isRegexQuerySelected() {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void setFilesIndexed(int filesIndexed) {
|
|
||||||
filesIndexedValLabel.setText(Integer.toString(filesIndexed));
|
|
||||||
}
|
|
||||||
|
|
||||||
private class KeywordListTableModel extends AbstractTableModel {
|
private class KeywordListTableModel extends AbstractTableModel {
|
||||||
//data
|
//data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user