mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Reword Extraction menu items, add dialog box on completion
This commit is contained in:
parent
57a493e761
commit
58a9caa47c
@ -109,7 +109,7 @@ public class AutopsyPropFile {
|
||||
}
|
||||
|
||||
public void removeProperty(String key){
|
||||
properties.setProperty(key, "");
|
||||
properties.setProperty(key, null);
|
||||
try {
|
||||
storeProperties();
|
||||
} catch (Exception ex) {
|
||||
|
@ -109,7 +109,7 @@ public class DataResultFilterNode extends FilterNode{
|
||||
public List<Action> visit(File f) {
|
||||
List<Action> actions = new ArrayList<Action>();
|
||||
actions.add(new ExternalViewerAction("Open in External Viewer", getOriginal()));
|
||||
actions.add(new ExtractAction("Extract", getOriginal()));
|
||||
actions.add(new ExtractAction("Extract File", getOriginal()));
|
||||
return actions;
|
||||
}
|
||||
|
||||
|
@ -106,6 +106,11 @@ public final class ExtractAction extends AbstractAction {
|
||||
}
|
||||
|
||||
ExtractFscContentVisitor.extract(fsContent, destination);
|
||||
if(fsContent.isDir())
|
||||
JOptionPane.showMessageDialog((Component) e.getSource(), "Directory extracted.");
|
||||
else if(fsContent.isFile()){
|
||||
JOptionPane.showMessageDialog((Component) e.getSource(), "File extracted.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -60,6 +60,7 @@ public class DataResultFilterNode extends FilterNode {
|
||||
@Override
|
||||
public Action[] visit(Directory dir) {
|
||||
return new Action[]{
|
||||
new ExtractAction("Extract Directory", getOriginal()),
|
||||
new ChangeViewAction("View", 0, getOriginal()),
|
||||
new OpenParentFolderAction("Open Parent Directory", ContentUtils.getSystemPath(dir))
|
||||
};
|
||||
@ -69,7 +70,7 @@ public class DataResultFilterNode extends FilterNode {
|
||||
public Action[] visit(File f) {
|
||||
return new Action[]{
|
||||
new ExternalViewerAction("Open in External Viewer", getOriginal()),
|
||||
new ExtractAction("Extract", getOriginal()),
|
||||
new ExtractAction("Extract File", getOriginal()),
|
||||
new ChangeViewAction("View", 0, getOriginal()),
|
||||
new OpenParentFolderAction("Open Parent Directory", ContentUtils.getSystemPath(f))
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user