Search in sources :

Example 1 with ProgramInfo

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;
}
Also used : DBNResource(org.jkiss.dbeaver.model.navigator.DBNResource) ProgramInfo(org.jkiss.dbeaver.ui.ProgramInfo) NotNull(org.jkiss.code.NotNull)

Aggregations

NotNull (org.jkiss.code.NotNull)1 DBNResource (org.jkiss.dbeaver.model.navigator.DBNResource)1 ProgramInfo (org.jkiss.dbeaver.ui.ProgramInfo)1