mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-09 06:39:33 +00:00
Revert changes to AbstractFilePropertyType public enum.
This commit is contained in:
parent
bc9417c338
commit
938d5128d0
@ -191,8 +191,8 @@ public abstract class AbstractAbstractFileNode<T extends AbstractFile> extends A
|
||||
Score value = scorePropAndDescr.getLeft();
|
||||
String descr = scorePropAndDescr.getRight();
|
||||
CorrelationAttributeInstance attribute = getCorrelationAttributeInstance();
|
||||
updateSheet(new NodeProperty<>(SCORE.toString(),SCORE.toString(),descr,value),
|
||||
new NodeProperty<>(COMMENT.toString(),COMMENT.toString(),NO_DESCR,getCommentProperty(tags, attribute))
|
||||
updateSheet(new NodeProperty<>(SCORE.toString(), SCORE.toString(), descr, value),
|
||||
new NodeProperty<>(COMMENT.toString(), COMMENT.toString(), NO_DESCR, getCommentProperty(tags, attribute))
|
||||
);
|
||||
}
|
||||
} else if (eventType.equals(Case.Events.CONTENT_TAG_DELETED.toString())) {
|
||||
@ -203,8 +203,8 @@ public abstract class AbstractAbstractFileNode<T extends AbstractFile> extends A
|
||||
Score value = scorePropAndDescr.getLeft();
|
||||
String descr = scorePropAndDescr.getRight();
|
||||
CorrelationAttributeInstance attribute = getCorrelationAttributeInstance();
|
||||
updateSheet(new NodeProperty<>(SCORE.toString(), SCORE.toString(),descr,value),
|
||||
new NodeProperty<>(COMMENT.toString(), COMMENT.toString(),NO_DESCR,getCommentProperty(tags, attribute))
|
||||
updateSheet(new NodeProperty<>(SCORE.toString(), SCORE.toString(), descr, value),
|
||||
new NodeProperty<>(COMMENT.toString(), COMMENT.toString(), NO_DESCR, getCommentProperty(tags, attribute))
|
||||
);
|
||||
}
|
||||
} else if (eventType.equals(Case.Events.CR_COMMENT_CHANGED.toString())) {
|
||||
@ -212,14 +212,14 @@ public abstract class AbstractAbstractFileNode<T extends AbstractFile> extends A
|
||||
if (event.getContentID() == content.getId()) {
|
||||
List<ContentTag> tags = getContentTagsFromDatabase();
|
||||
CorrelationAttributeInstance attribute = getCorrelationAttributeInstance();
|
||||
updateSheet(new NodeProperty<>(COMMENT.toString(), COMMENT.toString(),NO_DESCR,getCommentProperty(tags, attribute)));
|
||||
updateSheet(new NodeProperty<>(COMMENT.toString(), COMMENT.toString(), NO_DESCR, getCommentProperty(tags, attribute)));
|
||||
}
|
||||
/*
|
||||
* Data that was being computed in the background task. Kicked off by a
|
||||
* call to createSheet().
|
||||
* Data that was being computed in the background task. Kicked off
|
||||
* by a call to createSheet().
|
||||
*/
|
||||
} else if (eventType.equals(NodeSpecificEvents.TRANSLATION_AVAILABLE.toString())) {
|
||||
updateSheet(new NodeProperty<>(TRANSLATION.toString(),TRANSLATION.toString(),NO_DESCR,evt.getNewValue()));
|
||||
updateSheet(new NodeProperty<>(TRANSLATION.toString(), TRANSLATION.toString(), NO_DESCR, evt.getNewValue()));
|
||||
}
|
||||
};
|
||||
/**
|
||||
@ -251,9 +251,9 @@ public abstract class AbstractAbstractFileNode<T extends AbstractFile> extends A
|
||||
Sheet visibleSheet = this.getSheet();
|
||||
Sheet.Set visibleSheetSet = visibleSheet.get(Sheet.PROPERTIES);
|
||||
Property<?>[] visibleProps = visibleSheetSet.getProperties();
|
||||
for(NodeProperty<?> newProp: newProps) {
|
||||
for(int i = 0; i < visibleProps.length; i++) {
|
||||
if(visibleProps[i].getName().equals(newProp.getName())) {
|
||||
for (NodeProperty<?> newProp : newProps) {
|
||||
for (int i = 0; i < visibleProps.length; i++) {
|
||||
if (visibleProps[i].getName().equals(newProp.getName())) {
|
||||
visibleProps[i] = newProp;
|
||||
}
|
||||
}
|
||||
@ -283,8 +283,8 @@ public abstract class AbstractAbstractFileNode<T extends AbstractFile> extends A
|
||||
});
|
||||
|
||||
/*
|
||||
* Submit the translation task ASAP. Keep all weak references so
|
||||
* this task doesn't block the ability of this node to be GC'd.
|
||||
* Submit the translation task ASAP. Keep all weak references so this
|
||||
* task doesn't block the ability of this node to be GC'd.
|
||||
*/
|
||||
translationPool.submit(new TranslationTask(new WeakReference<>(this), weakPcl));
|
||||
|
||||
@ -304,8 +304,16 @@ public abstract class AbstractAbstractFileNode<T extends AbstractFile> extends A
|
||||
"AbstractAbstractFileNode.sizeColLbl=Size",
|
||||
"AbstractAbstractFileNode.flagsDirColLbl=Flags(Dir)",
|
||||
"AbstractAbstractFileNode.flagsMetaColLbl=Flags(Meta)",
|
||||
"AbstractAbstractFileNode.modeColLbl=Mode",
|
||||
"AbstractAbstractFileNode.useridColLbl=UserID",
|
||||
"AbstractAbstractFileNode.groupidColLbl=GroupID",
|
||||
"AbstractAbstractFileNode.metaAddrColLbl=Meta Addr.",
|
||||
"AbstractAbstractFileNode.attrAddrColLbl=Attr. Addr.",
|
||||
"AbstractAbstractFileNode.typeDirColLbl=Type(Dir)",
|
||||
"AbstractAbstractFileNode.typeMetaColLbl=Type(Meta)",
|
||||
"AbstractAbstractFileNode.knownColLbl=Known",
|
||||
"AbstractAbstractFileNode.md5HashColLbl=MD5 Hash",
|
||||
"AbstractAbstractFileNode.objectId=Object ID",
|
||||
"AbstractAbstractFileNode.mimeType=MIME Type",
|
||||
"AbstractAbstractFileNode.extensionColLbl=Extension"})
|
||||
public enum AbstractFilePropertyType {
|
||||
@ -323,8 +331,16 @@ public abstract class AbstractAbstractFileNode<T extends AbstractFile> extends A
|
||||
SIZE(AbstractAbstractFileNode_sizeColLbl()),
|
||||
FLAGS_DIR(AbstractAbstractFileNode_flagsDirColLbl()),
|
||||
FLAGS_META(AbstractAbstractFileNode_flagsMetaColLbl()),
|
||||
MODE(AbstractAbstractFileNode_modeColLbl()),
|
||||
USER_ID(AbstractAbstractFileNode_useridColLbl()),
|
||||
GROUP_ID(AbstractAbstractFileNode_groupidColLbl()),
|
||||
META_ADDR(AbstractAbstractFileNode_metaAddrColLbl()),
|
||||
ATTR_ADDR(AbstractAbstractFileNode_attrAddrColLbl()),
|
||||
TYPE_DIR(AbstractAbstractFileNode_typeDirColLbl()),
|
||||
TYPE_META(AbstractAbstractFileNode_typeMetaColLbl()),
|
||||
KNOWN(AbstractAbstractFileNode_knownColLbl()),
|
||||
MD5HASH(AbstractAbstractFileNode_md5HashColLbl()),
|
||||
ObjectID(AbstractAbstractFileNode_objectId()),
|
||||
MIMETYPE(AbstractAbstractFileNode_mimeType()),
|
||||
EXTENSION(AbstractAbstractFileNode_extensionColLbl());
|
||||
|
||||
@ -508,8 +524,8 @@ public abstract class AbstractAbstractFileNode<T extends AbstractFile> extends A
|
||||
}
|
||||
|
||||
/**
|
||||
* Translates this nodes content name. Doesn't attempt translation if
|
||||
* the name is in english or if there is now translation service available.
|
||||
* Translates this nodes content name. Doesn't attempt translation if the
|
||||
* name is in english or if there is now translation service available.
|
||||
*/
|
||||
String getTranslatedFileName() {
|
||||
//If already in complete English, don't translate.
|
||||
@ -594,8 +610,8 @@ public abstract class AbstractAbstractFileNode<T extends AbstractFile> extends A
|
||||
* are put
|
||||
* @param content The content to get properties for.
|
||||
*
|
||||
* TODO JIRA-4421: Deprecate this method and resolve warnings that appear
|
||||
* in other locations.
|
||||
* TODO JIRA-4421: Deprecate this method and resolve warnings that appear in
|
||||
* other locations.
|
||||
*/
|
||||
static public void fillPropertyMap(Map<String, Object> map, AbstractFile content) {
|
||||
map.put(NAME.toString(), getContentDisplayName(content));
|
||||
|
@ -6,6 +6,9 @@ AbstractAbstractFileNode.changeTimeColLbl=\u5909\u66f4\u65e5\u6642
|
||||
AbstractAbstractFileNode.accessTimeColLbl=\u30a2\u30af\u30bb\u30b9\u65e5\u6642
|
||||
AbstractAbstractFileNode.createdTimeColLbl=\u4f5c\u6210\u65e5\u6642
|
||||
AbstractAbstractFileNode.sizeColLbl=\u30b5\u30a4\u30ba
|
||||
AbstractAbstractFileNode.modeColLbl=\u30e2\u30fc\u30c9
|
||||
AbstractAbstractFileNode.useridColLbl=\u30e6\u30fc\u30b6ID
|
||||
AbstractAbstractFileNode.groupidColLbl=\u30b0\u30eb\u30fc\u30d7ID
|
||||
AbstractAbstractFileNode.knownColLbl=\u65e2\u77e5
|
||||
AbstractAbstractFileNode.md5HashColLbl=MD5\u30cf\u30c3\u30b7\u30e5
|
||||
AbstractContentChildren.CreateTSKNodeVisitor.exception.noNodeMsg=\u6307\u5b9a\u3055\u308c\u305fSleuthkitItem\u306e\u30ce\u30fc\u30c9\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u305b\u3093
|
||||
@ -195,6 +198,10 @@ TagsNode.displayName.text=\u30bf\u30b0
|
||||
TagsNode.createSheet.name.name=\u540d\u524d
|
||||
AbstractAbstractFileNode.flagsDirColLbl=\u30d5\u30e9\u30b0\uff08\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff09
|
||||
AbstractAbstractFileNode.flagsMetaColLbl=\u30d5\u30e9\u30b0\uff08\u30e1\u30bf\u30c7\u30fc\u30bf\uff09
|
||||
AbstractAbstractFileNode.metaAddrColLbl=\u30e1\u30bf\u30c7\u30fc\u30bf\u30a2\u30c9\u30ec\u30b9
|
||||
AbstractAbstractFileNode.attrAddrColLbl=\u5c5e\u6027\u30a2\u30c9\u30ec\u30b9
|
||||
AbstractAbstractFileNode.typeDirColLbl=\u30bf\u30a4\u30d7\uff08\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff09
|
||||
AbstractAbstractFileNode.typeMetaColLbl=\u30bf\u30a4\u30d7\uff08\u30e1\u30bf\u30c7\u30fc\u30bf\uff09
|
||||
ArtifactTypeNode.createSheet.childCnt.displayName=\u30c1\u30e3\u30a4\u30eb\u30c9\u6570
|
||||
TagsNode.createSheet.name.displayName=\u540d\u524d
|
||||
ViewsNode.name.text=\u30d3\u30e5\u30fc
|
||||
@ -231,6 +238,7 @@ KeywordHits.createSheet.numChildren.name=\u30c1\u30e3\u30a4\u30eb\u30c9\u6570
|
||||
KeywordHits.createSheet.numChildren.displayName=\u30c1\u30e3\u30a4\u30eb\u30c9\u6570
|
||||
KeywordHits.simpleLiteralSearch.text=\u30b7\u30f3\u30b0\u30eb\u30ea\u30c6\u30e9\u30eb\u691c\u7d22
|
||||
KeywordHits.singleRegexSearch.text=\u30b7\u30f3\u30b0\u30eb\u6b63\u898f\u8868\u73fe\u691c\u7d22
|
||||
AbstractAbstractFileNode.objectId=\u30aa\u30d6\u30b8\u30a7\u30af\u30c8ID
|
||||
ArtifactStringContent.getStr.artifactId.text=\u30a2\u30fc\u30c6\u30a3\u30d5\u30a1\u30af\u30c8ID
|
||||
OpenReportAction.actionDisplayName=\u30ec\u30dd\u30fc\u30c8\u3092\u958b\u304f
|
||||
OpenReportAction.actionPerformed.MessageBoxTitle=\u5931\u6557\u30ec\u30dd\u30fc\u30c8\u3092\u958b\u304f
|
||||
|
Loading…
x
Reference in New Issue
Block a user