Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to remove UI contributions?
How to remove UI contributions? [message #415885] Wed, 16 March 2005 11:01 Go to next message
Eclipse UserFriend
I'm working on implementing security for my RCP application.
I need to be able to remove UI Contributions that user does not have permissions for.
This includes
-Views and editors
-Perspectives
-Preference and property pages
-Menus and toolbars

Initially I thought that the Activities would be the best way to implement this functionality. The only problem is that it looks like user can enable activities by opening the Workbench>Capabilities preference page.

My questions are:
1. Am I on the right track with using Activities or there is a better way to implement hiding UI contributions?
2. What is the best way to prevent users from enabling Activities?

Thanks.
Dimitry.
Re: How to remove UI contributions? [message #415894 is a reply to message #415885] Wed, 16 March 2005 15:30 Go to previous messageGo to next message
Eclipse UserFriend
If you don't bind the activity to a category, it will not show up in the
dialog.

See also
https://bugs.eclipse.org/bugs/show_bug.cgi?id=71857

Nick

Dimitry Fayerman wrote:
> I'm working on implementing security for my RCP application.
> I need to be able to remove UI Contributions that user does not have permissions for.
> This includes
> -Views and editors
> -Perspectives
> -Preference and property pages
> -Menus and toolbars
>
> Initially I thought that the Activities would be the best way to implement this functionality. The only problem is that it looks like user can enable activities by opening the Workbench>Capabilities preference page.
>
> My questions are:
> 1. Am I on the right track with using Activities or there is a better way to implement hiding UI contributions?
> 2. What is the best way to prevent users from enabling Activities?
>
> Thanks.
> Dimitry.
>
Re: How to remove UI contributions? [message #416042 is a reply to message #415894] Wed, 16 March 2005 22:03 Go to previous messageGo to next message
Eclipse UserFriend
Nick,
Thanks a lot.
I started implementing security using activities.
The problem that I encountered is that the Perspectives dialog allows to access hidden perspectives if user checks the "Show all" check box.
When user selects the hidden perspective they are offered to enable the activity.

Is there a way to restrict showing restricted Perspectives.

Thanks.
Dimitry.

>>> Nick Edgar<nick_edgar@_no.spam.please_.ca.ibm.com> 3/16/2005 3:30:19 PM >>>
If you don't bind the activity to a category, it will not show up in the
dialog.

See also
https://bugs.eclipse.org/bugs/show_bug.cgi?id=71857

Nick

Dimitry Fayerman wrote:
> I'm working on implementing security for my RCP application.
> I need to be able to remove UI Contributions that user does not have permissions for.
> This includes
> -Views and editors
> -Perspectives
> -Preference and property pages
> -Menus and toolbars
>
> Initially I thought that the Activities would be the best way to implement this functionality. The only problem is that it looks like user can enable activities by opening the Workbench>Capabilities preference page.
>
> My questions are:
> 1. Am I on the right track with using Activities or there is a better way to implement hiding UI contributions?
> 2. What is the best way to prevent users from enabling Activities?
>
> Thanks.
> Dimitry.
>
Re: How to remove UI contributions? [message #416044 is a reply to message #416042] Wed, 16 March 2005 22:14 Go to previous messageGo to next message
Eclipse UserFriend
Yes, in 3.1 the Perspective registry has been made available as API
meaning that you can create menus and dialogs that show Perspective. You
could create your own switcher that doesn't show all Perspectives.
Jean-Michel

Dimitry Fayerman wrote:
> Nick,
> Thanks a lot.
> I started implementing security using activities.
> The problem that I encountered is that the Perspectives dialog allows to access hidden perspectives if user checks the "Show all" check box.
> When user selects the hidden perspective they are offered to enable the activity.
>
> Is there a way to restrict showing restricted Perspectives.
>
> Thanks.
> Dimitry.
>
>
>>>>Nick Edgar<nick_edgar@_no.spam.please_.ca.ibm.com> 3/16/2005 3:30:19 PM >>>
>
> If you don't bind the activity to a category, it will not show up in the
> dialog.
>
> See also
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=71857
>
> Nick
>
> Dimitry Fayerman wrote:
>
>>I'm working on implementing security for my RCP application.
>>I need to be able to remove UI Contributions that user does not have permissions for.
>>This includes
>>-Views and editors
>>-Perspectives
>>-Preference and property pages
>>-Menus and toolbars
>>
>>Initially I thought that the Activities would be the best way to implement this functionality. The only problem is that it looks like user can enable activities by opening the Workbench>Capabilities preference page.
>>
>>My questions are:
>>1. Am I on the right track with using Activities or there is a better way to implement hiding UI contributions?
>>2. What is the best way to prevent users from enabling Activities?
>>
>>Thanks.
>>Dimitry.
>>
>
>
>
Re: How to remove UI contributions? [message #416540 is a reply to message #416044] Thu, 17 March 2005 08:47 Go to previous messageGo to next message
Eclipse UserFriend
Thanks Jean-Chichel,

The same issue applies to the New Wizards dialog, it also allows to see hidden dialogs if user selects "Show All".
I can create my own dialogs for both Perspective Switcher and New Wizards Selection but I think the better solution would be if
I could set a global option to allow/restrict Activity enablement. This would be honored by all dialogs and we would not have to recreate the wheel.

Dimitry.

>>> Jean-Michel Lemieux<jean-michel@at.ibm> 3/16/2005 10:14:45 PM >>>
Yes, in 3.1 the Perspective registry has been made available as API
meaning that you can create menus and dialogs that show Perspective. You
could create your own switcher that doesn't show all Perspectives.
Jean-Michel

Dimitry Fayerman wrote:
> Nick,
> Thanks a lot.
> I started implementing security using activities.
> The problem that I encountered is that the Perspectives dialog allows to access hidden perspectives if user checks the "Show all" check box.
> When user selects the hidden perspective they are offered to enable the activity.
>
> Is there a way to restrict showing restricted Perspectives.
>
> Thanks.
> Dimitry.
>
>
>>>>Nick Edgar<nick_edgar@_no.spam.please_.ca.ibm.com> 3/16/2005 3:30:19 PM >>>
>
> If you don't bind the activity to a category, it will not show up in the
> dialog.
>
> See also
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=71857
>
> Nick
>
> Dimitry Fayerman wrote:
>
>>I'm working on implementing security for my RCP application.
>>I need to be able to remove UI Contributions that user does not have permissions for.
>>This includes
>>-Views and editors
>>-Perspectives
>>-Preference and property pages
>>-Menus and toolbars
>>
>>Initially I thought that the Activities would be the best way to implement this functionality. The only problem is that it looks like user can enable activities by opening the Workbench>Capabilities preference page.
>>
>>My questions are:
>>1. Am I on the right track with using Activities or there is a better way to implement hiding UI contributions?
>>2. What is the best way to prevent users from enabling Activities?
>>
>>Thanks.
>>Dimitry.
>>
>
>
>
Re: How to remove UI contributions? [message #416584 is a reply to message #416540] Fri, 18 March 2005 11:40 Go to previous messageGo to next message
Eclipse UserFriend
Dmitry, could you please file this as an enhancement request against
Platform UI, providing as much detail about your scenario as possible?
https://bugs.eclipse.org/bugs/

Thanks,
Nick

Dimitry Fayerman wrote:
> Thanks Jean-Chichel,
>
> The same issue applies to the New Wizards dialog, it also allows to see hidden dialogs if user selects "Show All".
> I can create my own dialogs for both Perspective Switcher and New Wizards Selection but I think the better solution would be if
> I could set a global option to allow/restrict Activity enablement. This would be honored by all dialogs and we would not have to recreate the wheel.
>
> Dimitry.
>
>
>>>>Jean-Michel Lemieux<jean-michel@at.ibm> 3/16/2005 10:14:45 PM >>>
>
> Yes, in 3.1 the Perspective registry has been made available as API
> meaning that you can create menus and dialogs that show Perspective. You
> could create your own switcher that doesn't show all Perspectives.
> Jean-Michel
>
> Dimitry Fayerman wrote:
>
>>Nick,
>>Thanks a lot.
>>I started implementing security using activities.
>>The problem that I encountered is that the Perspectives dialog allows to access hidden perspectives if user checks the "Show all" check box.
>>When user selects the hidden perspective they are offered to enable the activity.
>>
>>Is there a way to restrict showing restricted Perspectives.
>>
>>Thanks.
>>Dimitry.
>>
>>
>>
>>>>>Nick Edgar<nick_edgar@_no.spam.please_.ca.ibm.com> 3/16/2005 3:30:19 PM >>>
>>
>>If you don't bind the activity to a category, it will not show up in the
>>dialog.
>>
>>See also
>>https://bugs.eclipse.org/bugs/show_bug.cgi?id=71857
>>
>>Nick
>>
>>Dimitry Fayerman wrote:
>>
>>
>>>I'm working on implementing security for my RCP application.
>>>I need to be able to remove UI Contributions that user does not have permissions for.
>>>This includes
>>>-Views and editors
>>>-Perspectives
>>>-Preference and property pages
>>>-Menus and toolbars
>>>
>>>Initially I thought that the Activities would be the best way to implement this functionality. The only problem is that it looks like user can enable activities by opening the Workbench>Capabilities preference page.
>>>
>>>My questions are:
>>>1. Am I on the right track with using Activities or there is a better way to implement hiding UI contributions?
>>>2. What is the best way to prevent users from enabling Activities?
>>>
>>>Thanks.
>>>Dimitry.
>>>
>>
>>
>>
>
>
Re: How to remove UI contributions? [message #416808 is a reply to message #416584] Sat, 19 March 2005 16:45 Go to previous messageGo to next message
Eclipse UserFriend
Submitted:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=88579

Thanks.
Dimitry.

>>> Nick Edgar<nick_edgar@_no.spam.please_.ca.ibm.com> 3/18/2005 11:40:13 AM >>>
Dmitry, could you please file this as an enhancement request against
Platform UI, providing as much detail about your scenario as possible?
https://bugs.eclipse.org/bugs/

Thanks,
Nick

Dimitry Fayerman wrote:
> Thanks Jean-Chichel,
>
> The same issue applies to the New Wizards dialog, it also allows to see hidden dialogs if user selects "Show All".
> I can create my own dialogs for both Perspective Switcher and New Wizards Selection but I think the better solution would be if
> I could set a global option to allow/restrict Activity enablement. This would be honored by all dialogs and we would not have to recreate the wheel.
>
> Dimitry.
>
>
>>>>Jean-Michel Lemieux<jean-michel@at.ibm> 3/16/2005 10:14:45 PM >>>
>
> Yes, in 3.1 the Perspective registry has been made available as API
> meaning that you can create menus and dialogs that show Perspective. You
> could create your own switcher that doesn't show all Perspectives.
> Jean-Michel
>
> Dimitry Fayerman wrote:
>
>>Nick,
>>Thanks a lot.
>>I started implementing security using activities.
>>The problem that I encountered is that the Perspectives dialog allows to access hidden perspectives if user checks the "Show all" check box.
>>When user selects the hidden perspective they are offered to enable the activity.
>>
>>Is there a way to restrict showing restricted Perspectives.
>>
>>Thanks.
>>Dimitry.
>>
>>
>>
>>>>>Nick Edgar<nick_edgar@_no.spam.please_.ca.ibm.com> 3/16/2005 3:30:19 PM >>>
>>
>>If you don't bind the activity to a category, it will not show up in the
>>dialog.
>>
>>See also
>>https://bugs.eclipse.org/bugs/show_bug.cgi?id=71857
>>
>>Nick
>>
>>Dimitry Fayerman wrote:
>>
>>
>>>I'm working on implementing security for my RCP application.
>>>I need to be able to remove UI Contributions that user does not have permissions for.
>>>This includes
>>>-Views and editors
>>>-Perspectives
>>>-Preference and property pages
>>>-Menus and toolbars
>>>
>>>Initially I thought that the Activities would be the best way to implement this functionality. The only problem is that it looks like user can enable activities by opening the Workbench>Capabilities preference page.
>>>
>>>My questions are:
>>>1. Am I on the right track with using Activities or there is a better way to implement hiding UI contributions?
>>>2. What is the best way to prevent users from enabling Activities?
>>>
>>>Thanks.
>>>Dimitry.
>>>
>>
>>
>>
>
>
Re: How to remove UI contributions? [message #416809 is a reply to message #416584] Sat, 19 March 2005 17:07 Go to previous messageGo to next message
Eclipse UserFriend
The other problem that I found is that if a user had saved worspace with a view or perspective opened and the permissions to access this view are revoked. Next time they open the application, the view is displayed even though the Activity is disabled.(The activity gets enabled automatically)

Is there a place where I could maybe throw an exception to prevent Activity from being enabled?

Thanks.
Dimitry.

>>> Nick Edgar<nick_edgar@_no.spam.please_.ca.ibm.com> 3/18/2005 11:40:13 AM >>>
Dmitry, could you please file this as an enhancement request against
Platform UI, providing as much detail about your scenario as possible?
https://bugs.eclipse.org/bugs/

Thanks,
Nick

Dimitry Fayerman wrote:
> Thanks Jean-Chichel,
>
> The same issue applies to the New Wizards dialog, it also allows to see hidden dialogs if user selects "Show All".
> I can create my own dialogs for both Perspective Switcher and New Wizards Selection but I think the better solution would be if
> I could set a global option to allow/restrict Activity enablement. This would be honored by all dialogs and we would not have to recreate the wheel.
>
> Dimitry.
>
>
>>>>Jean-Michel Lemieux<jean-michel@at.ibm> 3/16/2005 10:14:45 PM >>>
>
> Yes, in 3.1 the Perspective registry has been made available as API
> meaning that you can create menus and dialogs that show Perspective. You
> could create your own switcher that doesn't show all Perspectives.
> Jean-Michel
>
> Dimitry Fayerman wrote:
>
>>Nick,
>>Thanks a lot.
>>I started implementing security using activities.
>>The problem that I encountered is that the Perspectives dialog allows to access hidden perspectives if user checks the "Show all" check box.
>>When user selects the hidden perspective they are offered to enable the activity.
>>
>>Is there a way to restrict showing restricted Perspectives.
>>
>>Thanks.
>>Dimitry.
>>
>>
>>
>>>>>Nick Edgar<nick_edgar@_no.spam.please_.ca.ibm.com> 3/16/2005 3:30:19 PM >>>
>>
>>If you don't bind the activity to a category, it will not show up in the
>>dialog.
>>
>>See also
>>https://bugs.eclipse.org/bugs/show_bug.cgi?id=71857
>>
>>Nick
>>
>>Dimitry Fayerman wrote:
>>
>>
>>>I'm working on implementing security for my RCP application.
>>>I need to be able to remove UI Contributions that user does not have permissions for.
>>>This includes
>>>-Views and editors
>>>-Perspectives
>>>-Preference and property pages
>>>-Menus and toolbars
>>>
>>>Initially I thought that the Activities would be the best way to implement this functionality. The only problem is that it looks like user can enable activities by opening the Workbench>Capabilities preference page.
>>>
>>>My questions are:
>>>1. Am I on the right track with using Activities or there is a better way to implement hiding UI contributions?
>>>2. What is the best way to prevent users from enabling Activities?
>>>
>>>Thanks.
>>>Dimitry.
>>>
>>
>>
>>
>
>
Re: How to remove UI contributions? [message #416811 is a reply to message #416809] Sat, 19 March 2005 18:33 Go to previous message
Eclipse UserFriend
Originally posted by: kim_horne.ca.ibm.com

No, there is currently no way to veto an activities enablement. You
could attach a listener to the activity manager and when you detect the
activity being enabled you could simply turn it off. You may get some
flicker of action bars and menus in this case, however.

Dimitry Fayerman wrote:
> The other problem that I found is that if a user had saved worspace with a view or perspective opened and the permissions to access this view are revoked. Next time they open the application, the view is displayed even though the Activity is disabled.(The activity gets enabled automatically)
>
> Is there a place where I could maybe throw an exception to prevent Activity from being enabled?
>
> Thanks.
> Dimitry.
>
>
>>>>Nick Edgar<nick_edgar@_no.spam.please_.ca.ibm.com> 3/18/2005 11:40:13 AM >>>
>
> Dmitry, could you please file this as an enhancement request against
> Platform UI, providing as much detail about your scenario as possible?
> https://bugs.eclipse.org/bugs/
>
> Thanks,
> Nick
>
> Dimitry Fayerman wrote:
>
>>Thanks Jean-Chichel,
>>
>>The same issue applies to the New Wizards dialog, it also allows to see hidden dialogs if user selects "Show All".
>>I can create my own dialogs for both Perspective Switcher and New Wizards Selection but I think the better solution would be if
>>I could set a global option to allow/restrict Activity enablement. This would be honored by all dialogs and we would not have to recreate the wheel.
>>
>>Dimitry.
>>
>>
>>
>>>>>Jean-Michel Lemieux<jean-michel@at.ibm> 3/16/2005 10:14:45 PM >>>
>>
>>Yes, in 3.1 the Perspective registry has been made available as API
>>meaning that you can create menus and dialogs that show Perspective. You
>>could create your own switcher that doesn't show all Perspectives.
>>Jean-Michel
>>
>>Dimitry Fayerman wrote:
>>
>>
>>>Nick,
>>>Thanks a lot.
>>>I started implementing security using activities.
>>>The problem that I encountered is that the Perspectives dialog allows to access hidden perspectives if user checks the "Show all" check box.
>>>When user selects the hidden perspective they are offered to enable the activity.
>>>
>>>Is there a way to restrict showing restricted Perspectives.
>>>
>>>Thanks.
>>>Dimitry.
>>>
>>>
>>>
>>>
>>>>>>Nick Edgar<nick_edgar@_no.spam.please_.ca.ibm.com> 3/16/2005 3:30:19 PM >>>
>>>
>>>If you don't bind the activity to a category, it will not show up in the
>>>dialog.
>>>
>>>See also
>>>https://bugs.eclipse.org/bugs/show_bug.cgi?id=71857
>>>
>>>Nick
>>>
>>>Dimitry Fayerman wrote:
>>>
>>>
>>>
>>>>I'm working on implementing security for my RCP application.
>>>>I need to be able to remove UI Contributions that user does not have permissions for.
>>>>This includes
>>>>-Views and editors
>>>>-Perspectives
>>>>-Preference and property pages
>>>>-Menus and toolbars
>>>>
>>>>Initially I thought that the Activities would be the best way to implement this functionality. The only problem is that it looks like user can enable activities by opening the Workbench>Capabilities preference page.
>>>>
>>>>My questions are:
>>>>1. Am I on the right track with using Activities or there is a better way to implement hiding UI contributions?
>>>>2. What is the best way to prevent users from enabling Activities?
>>>>
>>>>Thanks.
>>>>Dimitry.
>>>>
>>>
>>>
>>>
>>
>
>
Previous Topic:RCP App in OS X cannot gain focus
Next Topic:Is the resources plug-in (org.eclipse.core.resources) considered part of the Rich Client Platform?
Goto Forum:
  


Current Time: Sat Nov 08 14:03:13 EST 2025

Powered by FUDForum. Page generated in 0.04168 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top