Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Are enabled activities persisted?
Are enabled activities persisted? [message #330620] Tue, 05 August 2008 20:22 Go to next message
Eclipse UserFriend
Originally posted by: brianogorman.yahoo.com

I cannot find anything in the doc re this.

If I enable an activity using
IWorkbenchActivitySupport.setEnabledActivities(), will the activity be
automatically enabled when I restart Eclipse? (or my Eclipse based
application).
Re: Are enabled activities persisted? [message #330630 is a reply to message #330620] Wed, 06 August 2008 11:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: brianogorman.yahoo.com

Brian O'Gorman wrote:
> I cannot find anything in the doc re this.
>
> If I enable an activity using
> IWorkbenchActivitySupport.setEnabledActivities(), will the activity be
> automatically enabled when I restart Eclipse? (or my Eclipse based
> application).


Ok. <one little plugin later>. Seems they are.

Does anyone know if this is something new in 3.4 or if it always was so
(just curious).
Re: Are enabled activities persisted? [message #330642 is a reply to message #330630] Thu, 07 August 2008 03:23 Go to previous messageGo to next message
Craig Foote is currently offline Craig FooteFriend
Messages: 217
Registered: July 2009
Senior Member
On Wed, 06 Aug 2008 12:07:18 +0100, Brian O'Gorman wrote:
I'm pretty sure it was the same in 3.3. We've tried using activities to
hide plugins from some users. We found that a workspace from one user,
who had visibility of the plugin, when used by another user allowed
access to the plugin. Points out that activities shouldn't be used for
security and that eclipse lacks robust access control.

Craig

> Brian O'Gorman wrote:
>> I cannot find anything in the doc re this.
>>
>> If I enable an activity using
>> IWorkbenchActivitySupport.setEnabledActivities(), will the activity be
>> automatically enabled when I restart Eclipse? (or my Eclipse based
>> application).
>
>
> Ok. <one little plugin later>. Seems they are.
>
> Does anyone know if this is something new in 3.4 or if it always was so
> (just curious).
Re: Are enabled activities persisted? [message #330863 is a reply to message #330642] Thu, 14 August 2008 17:43 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Craig Foote wrote:
> On Wed, 06 Aug 2008 12:07:18 +0100, Brian O'Gorman wrote:
> I'm pretty sure it was the same in 3.3. We've tried using activities to
> hide plugins from some users. We found that a workspace from one user,
> who had visibility of the plugin, when used by another user allowed
> access to the plugin. Points out that activities shouldn't be used for
> security and that eclipse lacks robust access control.

Eclipse has no access control at all. Activities are for progressive UI
element disclosure (think novice->intermediate->advanced). They can be
used to remove most UI elements (and there was new enabledWhen
activities added in 3.4 that are state based and cannot be changed by
the user, https://bugs.eclipse.org/bugs/show_bug.cgi?id=201052 ). That
can get you part of the way there, but I don't think it's still true
"security".

There has been some good work on the security front down in the equinox
layer in 3.4, but (AFAIK) focused first on trusting code and secondly on
user security. But that work has not made it up to the UI layer.

Later,
PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:Hooking existing clipboard commands
Next Topic:Open File in Editor
Goto Forum:
  


Current Time: Tue Jul 16 13:29:05 GMT 2024

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

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

Back to the top