Add file times and size properties to ContentTagNode property sheet

This commit is contained in:
Richard Cordovano 2014-08-06 18:01:30 -04:00
parent faf592a2bb
commit 01749ab3ab
2 changed files with 4 additions and 4 deletions

View File

@ -66,8 +66,8 @@ ContentTagNode.createSheet.fileAccessedTime.name=Accessed Time
ContentTagNode.createSheet.fileAccessedTime.displayName=Accessed Time
ContentTagNode.createSheet.fileCreatedTime.name=Created Time
ContentTagNode.createSheet.fileCreatedTime.displayName=Created Time
ContentTagNode.createSheet.filesize.name=Size
ContentTagNode.createSheet.filesize.displayName=Size
ContentTagNode.createSheet.fileSize.name=Size
ContentTagNode.createSheet.fileSize.displayName=Size
ContentTagTypeNode.displayName.text=File Tags
ContentTagTypeNode.createSheet.name.name=Name
ContentTagTypeNode.createSheet.name.displayName=Name

View File

@ -97,8 +97,8 @@ class ContentTagNode extends DisplayableItemNode {
NbBundle.getMessage(this.getClass(), "ContentTagNode.createSheet.fileCreatedTime.displayName"),
"",
file != null ? ContentUtils.getStringTime(file.getCrtime(), file) : ""));
properties.put(new NodeProperty<>(NbBundle.getMessage(this.getClass(), "ContentTagNode.createSheet.filesize.name"),
NbBundle.getMessage(this.getClass(), "ContentTagNode.createSheet.filesize.displayName"),
properties.put(new NodeProperty<>(NbBundle.getMessage(this.getClass(), "ContentTagNode.createSheet.fileSize.name"),
NbBundle.getMessage(this.getClass(), "ContentTagNode.createSheet.fileSize.displayName"),
"",
content.getSize()));
return propertySheet;