2740 moved Properties context action adding to after null content check

This commit is contained in:
William Schaefer 2017-09-21 17:15:59 -04:00
parent 5d037a403c
commit 2174f2c040

View File

@ -162,9 +162,10 @@ class DirectoryTreeFilterNode extends FilterNode {
@Override
public Action[] getActions(boolean context) {
List<Action> actions = new ArrayList<>();
actions.addAll(Arrays.asList(super.getActions(true)));
final Content content = this.getLookup().lookup(Content.class);
if (content != null) {
actions.addAll(Arrays.asList(super.getActions(true)));
if (content instanceof Volume) {
actions.add(new FileSystemDetailsAction((Volume) content));
}