Resource view context menu with more tests.
Resource types enum now as a typedef.