I haven't tried your approach but I have created custom permissions in past using a permission provider which extends PermissionProviderBaseImpl and it helped in adding the permission in organization view. May be this information be of some help to you.
thanks for your answer. I found the solution. Because i was developing a web-client tab i only contributed my plugin to the server-app. But to load the permissions, you need to contribute some things to the rich-client ... found it out after a lot of decompiling.
So here is how i did it:
1 package for permissions, which i contribute to the rich client and the server
- here you have to add extensions to "com.heiler.ppm.std.core.displayElementContribution". Hint: have a look at "com.heiler.ppm.web.permission.core".
1 package for web-tab and logic which requires package 1.
Here is my logic and the tabs returning some static string from package 1 as ids.
Maybe this can prevent others from search hours for this.