extract a string

This commit is contained in:
Nick Davis 2016-02-04 18:16:54 -05:00
parent f70f840f0e
commit 83b824b2c6

View File

@ -65,6 +65,8 @@ import org.sleuthkit.datamodel.TagName;
/** /**
* Shows details of the selected file. * Shows details of the selected file.
*/ */
@NbBundle.Messages({"MetaDataPane.tableView.placeholder=Select a file to show its details here.",
"MetaDataPane.copyMenuItem.text=Copy"})
public class MetaDataPane extends DrawableUIBase { public class MetaDataPane extends DrawableUIBase {
private static final Logger LOGGER = Logger.getLogger(MetaDataPane.class.getName()); private static final Logger LOGGER = Logger.getLogger(MetaDataPane.class.getName());
@ -80,7 +82,7 @@ public class MetaDataPane extends DrawableUIBase {
@FXML @FXML
private TableColumn<Pair<DrawableAttribute<?>, Collection<?>>, String> valueColumn; private TableColumn<Pair<DrawableAttribute<?>, Collection<?>>, String> valueColumn;
private final MenuItem copyMenuItem = new MenuItem("Copy"); private final MenuItem copyMenuItem = new MenuItem(Bundle.MetaDataPane_copyMenuItem_text());
private final ContextMenu contextMenu = new ContextMenu(copyMenuItem); private final ContextMenu contextMenu = new ContextMenu(copyMenuItem);
public MetaDataPane(ImageGalleryController controller) { public MetaDataPane(ImageGalleryController controller) {
@ -89,7 +91,6 @@ public class MetaDataPane extends DrawableUIBase {
} }
@FXML @FXML
@NbBundle.Messages({"MetaDataPane.tableView.placeholder=Select a file to show its details here."})
void initialize() { void initialize() {
assert attributeColumn != null : "fx:id=\"attributeColumn\" was not injected: check your FXML file 'MetaDataPane.fxml'."; assert attributeColumn != null : "fx:id=\"attributeColumn\" was not injected: check your FXML file 'MetaDataPane.fxml'.";
assert imageView != null : "fx:id=\"imageView\" was not injected: check your FXML file 'MetaDataPane.fxml'."; assert imageView != null : "fx:id=\"imageView\" was not injected: check your FXML file 'MetaDataPane.fxml'.";