use of org.jkiss.dbeaver.ui.ProgramInfo in project dbeaver by serge-rider.
the class DefaultResourceHandlerImpl method makeNavigatorNode.
@NotNull
@Override
public DBNResource makeNavigatorNode(@NotNull DBNNode parentNode, @NotNull IResource resource) throws CoreException, DBException {
DBNResource node = super.makeNavigatorNode(parentNode, resource);
ProgramInfo program = ProgramInfo.getProgram(resource);
if (program != null && program.getImage() != null) {
node.setResourceImage(program.getImage());
}
return node;
}
Aggregations