@Override
public boolean accept(ReadGraph graph, Object input) throws DatabaseException {
- Resource res = WorkbenchSelectionUtils.getPossibleResource(input);
+ Resource res = WorkbenchSelectionUtils.getPossibleResourceFromSelection(graph, input);
if(res == null) return false;
return graph.isInstanceOf(res, DiagramResource.getInstance(graph).SVGElement);
}
@Override
public void contribute(ReadGraph graph, Object selection, Collection<ComparableTabContributor> result)
throws DatabaseException {
- Resource res = WorkbenchSelectionUtils.getPossibleResource(selection);
+ Resource res = WorkbenchSelectionUtils.getPossibleResourceFromSelection(graph, selection);
if(res != null) {
if(graph.isInstanceOf(res, DiagramResource.getInstance(graph).SVGElement)) {
result.add(make(res, 100.0, "SVG"));