get content and not just abstractfiles

This commit is contained in:
millmanorama 2019-03-11 10:11:06 +01:00
parent a500ef01e6
commit ae9c821e4d

View File

@ -121,7 +121,7 @@ public class EventNode extends DisplayableItemNode {
List<Action> actionsList = new ArrayList<>();
actionsList.addAll(Arrays.asList(superActions));
final AbstractFile sourceFile = getLookup().lookup(AbstractFile.class);
final Content sourceFile = getLookup().lookup(Content.class);
/*
* if this event is derived from an artifact, add actions to view the
@ -141,7 +141,9 @@ public class EventNode extends DisplayableItemNode {
//if this event has associated content, add the action to view the content in the timeline
if (null != sourceFile) {
actionsList.add(ViewFileInTimelineAction.createViewSourceFileAction(sourceFile));
if (sourceFile instanceof AbstractFile) {
actionsList.add(ViewFileInTimelineAction.createViewSourceFileAction((AbstractFile) sourceFile));
}
}
}