[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: role based functionality

On Thu, 28 Jun 2007 23:11:40 +0200, Tino Langer <tino.langer@xxxxxxx>
wrote:

>I want to implement a simple role based user management. So I dont want
>to hide some views but I want to gray out (disable) some buttons. Is
>there a helpfull pattern or a helpfull framework available to realize
>this behavior?
>

Hi Tino,

there is no out-of-the-box solution for this problem that I know of.
You may have a look at the IAction or ..Delegate interfaces and their
setEnabled() method. However there are a few gotchas if you are using
extension points and plugins.

A colleague has just written a small article on the subject for the
Eclipse Magazin (published in Germany), it should be in the next
volume.

Achim