mirror of
https://github.com/elisspace/autopsy.git
synced 2026-10-05 16:56:16 +00:00
messages implemented using message Attribute
This commit is contained in:
@@ -1,7 +1 @@
|
||||
CommonFilesNode.getName.text=Common Files
|
||||
CommonFilesDialog.frame.title=Find Common Files
|
||||
CommonFilesDialog.frame.msg=Find Common Files
|
||||
CommonFilesPanel.searchButton.text=Search
|
||||
CommonFilesPanel.search.results.title=Common Files
|
||||
CommonFilesPanel.search.results.pathText=Common Files Search Results\:
|
||||
CommonFilesAction.getName.text=Common Files Search
|
||||
CommonFilesPanel.searchButton.text=Search
|
||||
@@ -62,9 +62,11 @@ final class CommonFilesAction extends CallableSystemAction implements FileSearch
|
||||
new CommonFilesDialog().setVisible(true);
|
||||
}
|
||||
|
||||
@NbBundle.Messages({
|
||||
"CommonFilesAction.getName.text=Common Files Search"})
|
||||
@Override
|
||||
public String getName() {
|
||||
return NbBundle.getMessage(this.getClass(), "CommonFilesAction.getName.text");
|
||||
return Bundle.CommonFilesAction_getName_text();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -34,9 +34,12 @@ public final class CommonFilesDialog extends javax.swing.JDialog {
|
||||
/**
|
||||
* Creates new form CommonFilesDialog
|
||||
*/
|
||||
@NbBundle.Messages({
|
||||
"CommonFilesDialog.frame.title=Find Common Files",
|
||||
"CommonFilesDialog.frame.msg=Find Common Files"})
|
||||
public CommonFilesDialog() {
|
||||
super(new JFrame(NbBundle.getMessage(CommonFilesDialog.class, "CommonFilesDialog.frame.title")),
|
||||
NbBundle.getMessage(CommonFilesDialog.class, "CommonFilesDialog.frame.msg"), true);
|
||||
super(new JFrame(Bundle.CommonFilesDialog_frame_title()),
|
||||
Bundle.CommonFilesDialog_frame_msg(), true);
|
||||
initComponents();
|
||||
|
||||
this.setResizable(false);
|
||||
|
||||
@@ -35,8 +35,10 @@ final class CommonFilesNode extends AbstractNode {
|
||||
this.children = (CommonFilesChildren) this.getChildren();
|
||||
}
|
||||
|
||||
@NbBundle.Messages({
|
||||
"CommonFilesNode.getName.text=CommonFiles"})
|
||||
@Override
|
||||
public String getName() {
|
||||
return NbBundle.getMessage(this.getClass(), "CommonFilesNode.getName.text");
|
||||
return Bundle.CommonFilesNode_getName_text();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@ import java.util.concurrent.ExecutionException;
|
||||
import java.util.logging.Level;
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.SwingWorker;
|
||||
import org.openide.util.Exceptions;
|
||||
import org.openide.util.NbBundle;
|
||||
import org.openide.windows.TopComponent;
|
||||
import org.openide.windows.WindowManager;
|
||||
@@ -70,10 +69,13 @@ public final class CommonFilesPanel extends javax.swing.JPanel {
|
||||
this.searchButton.addActionListener(l);
|
||||
}
|
||||
|
||||
@NbBundle.Messages({
|
||||
"CommonFilesPanel.search.results.title=Common Files",
|
||||
"CommonFilesPanel.search.results.pathText=Common Files Search Results\\:"})
|
||||
private void search() {
|
||||
|
||||
String title = NbBundle.getMessage(this.getClass(), "CommonFilesPanel.search.results.title");
|
||||
String pathText = NbBundle.getMessage(this.getClass(), "CommonFilesPanel.search.results.pathText");
|
||||
String title = Bundle.CommonFilesPanel_search_results_title();
|
||||
String pathText = Bundle.CommonFilesPanel_search_results_pathText();
|
||||
|
||||
new SwingWorker<Void, Void>() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user