mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 07:56:16 +00:00
changes to isPreferred() return values
This commit is contained in:
parent
6e207f2245
commit
4c481c5db2
@ -46,7 +46,7 @@ import org.sleuthkit.datamodel.TskException;
|
|||||||
/**
|
/**
|
||||||
* Viewer displays Artifacts associated with Contents
|
* Viewer displays Artifacts associated with Contents
|
||||||
*/
|
*/
|
||||||
@ServiceProvider(service = DataContentViewer.class)
|
@ServiceProvider(service = DataContentViewer.class, position=3)
|
||||||
public class DataContentViewerArtifact extends javax.swing.JPanel implements DataContentViewer{
|
public class DataContentViewerArtifact extends javax.swing.JPanel implements DataContentViewer{
|
||||||
|
|
||||||
private static int currentPage = 1;
|
private static int currentPage = 1;
|
||||||
@ -319,10 +319,8 @@ public class DataContentViewerArtifact extends javax.swing.JPanel implements Dat
|
|||||||
if(isSupported) {
|
if(isSupported) {
|
||||||
if(art == null) {
|
if(art == null) {
|
||||||
return 3;
|
return 3;
|
||||||
} else if(art.getArtifactTypeID() == BlackboardArtifact.ARTIFACT_TYPE.TSK_KEYWORD_HIT.getTypeID()) {
|
|
||||||
return 3;
|
|
||||||
} else {
|
} else {
|
||||||
return 4;
|
return 5;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -39,7 +39,7 @@ import org.sleuthkit.datamodel.TskException;
|
|||||||
/**
|
/**
|
||||||
* Hex view of file contents.
|
* Hex view of file contents.
|
||||||
*/
|
*/
|
||||||
@ServiceProvider(service = DataContentViewer.class)
|
@ServiceProvider(service = DataContentViewer.class, position=1)
|
||||||
public class DataContentViewerHex extends javax.swing.JPanel implements DataContentViewer {
|
public class DataContentViewerHex extends javax.swing.JPanel implements DataContentViewer {
|
||||||
|
|
||||||
private static long currentOffset = 0;
|
private static long currentOffset = 0;
|
||||||
|
@ -45,7 +45,7 @@ import org.sleuthkit.datamodel.TskData;
|
|||||||
*
|
*
|
||||||
* @author dfickling
|
* @author dfickling
|
||||||
*/
|
*/
|
||||||
@ServiceProvider(service = DataContentViewer.class)
|
@ServiceProvider(service = DataContentViewer.class, position=5)
|
||||||
public class DataContentViewerMedia extends javax.swing.JPanel implements DataContentViewer {
|
public class DataContentViewerMedia extends javax.swing.JPanel implements DataContentViewer {
|
||||||
|
|
||||||
private static final String[] IMAGES = new String[]{ ".jpg", ".jpeg", ".png", ".gif", ".jpe", ".bmp"};
|
private static final String[] IMAGES = new String[]{ ".jpg", ".jpeg", ".png", ".gif", ".jpe", ".bmp"};
|
||||||
@ -303,7 +303,7 @@ public class DataContentViewerMedia extends javax.swing.JPanel implements DataCo
|
|||||||
@Override
|
@Override
|
||||||
public int isPreferred(Node node, boolean isSupported) {
|
public int isPreferred(Node node, boolean isSupported) {
|
||||||
if(isSupported) {
|
if(isSupported) {
|
||||||
return 5;
|
return 7;
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ import org.sleuthkit.datamodel.TskException;
|
|||||||
/**
|
/**
|
||||||
* Viewer displays strings extracted from contents.
|
* Viewer displays strings extracted from contents.
|
||||||
*/
|
*/
|
||||||
@ServiceProvider(service = DataContentViewer.class)
|
@ServiceProvider(service = DataContentViewer.class, position=2)
|
||||||
public class DataContentViewerString extends javax.swing.JPanel implements DataContentViewer {
|
public class DataContentViewerString extends javax.swing.JPanel implements DataContentViewer {
|
||||||
|
|
||||||
private static long currentOffset = 0;
|
private static long currentOffset = 0;
|
||||||
@ -429,15 +429,11 @@ public class DataContentViewerString extends javax.swing.JPanel implements DataC
|
|||||||
@Override
|
@Override
|
||||||
public int isPreferred(Node node, boolean isSupported) {
|
public int isPreferred(Node node, boolean isSupported) {
|
||||||
if(node != null && isSupported){
|
if(node != null && isSupported){
|
||||||
StringContent scontent = node.getLookup().lookup(StringContent.class);
|
|
||||||
if(scontent != null){
|
|
||||||
return 3;
|
|
||||||
} else {
|
|
||||||
return 2;
|
return 2;
|
||||||
}
|
} else {
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Component getComponent() {
|
public Component getComponent() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user