Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Disabling Activity Enablement(Need to disable activity enablement )
Disabling Activity Enablement [message #491270] Tue, 13 October 2009 21:49 Go to next message
dwain Missing name is currently offline dwain Missing nameFriend
Messages: 35
Registered: October 2009
Member
I am creating an eclipse plugin where different users have different roles. I am able to define what the user is able to see with no problem. My problem is when they are not allowed to see a perspective because of their roles, they simply have to open the "open perspectives" dialog, then click the "show all" check box at the bottom, and then they can attempt to open that dialog. It then states that a certain activity must be enabled in order to open that perspective and asks if you would like to enable that activity. After they click yes, then the perspective is opened.

That is my problem though, since I don't want that user to be able to open that perspective. So I was thinking that I would like to override that action that loads the org.eclipse.ui.internal.activities.ws.EnablementDialog or is there a way to disable it through an activityPatternBinding or something like that? Or does anyone have any ideas about how to turn that feature off? Well I really appreciate the help and I hope that this is the correct place to ask a question like this. Thank you.

Dwain

[Updated on: Tue, 13 October 2009 21:50]

Report message to a moderator

Re: Disabling Activity Enablement [message #491272 is a reply to message #491270] Tue, 13 October 2009 22:02 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi,

have a look at activities:

http://www.vogella.de/blog/2009/07/13/eclipse-activities/

Best regards, Lars

--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter


dwain wrote:
> I am creating an eclipse plugin where different users have different
> roles. I am able to define what the user is able to see with no
> problem. My problem is when they are not allowed to see a perspective
> because of their roles, they simply have to open the "open perspectives"
> dialog, then click the "show all" check box at the bottom, and then they
> can attempt to open that dialog. It then states that a certain activity
> must be enabled in order to open that perspective and asks if you would
> like to enable that activity. After they click yes, then the
> perspective is opened.
> That is my problem though, since I don't want that user to be able to
> open that perspective. So I was thinking that I would like to override
> that action that loads the
> org.eclipse.ui.internal.activities.ws.EnablementDialog or is there a way
> to disable it through an activityPatternBinding or something like that?
> Or does anyone have any ideas about how to turn that feature off? Well
> I really appreciate the help and I hope that this is the correct place
> to ask a question like this. Thank you.
>
> Dwain
Re: Disabling Activity Enablement [message #918057 is a reply to message #491270] Thu, 20 September 2012 17:46 Go to previous messageGo to next message
David Ip is currently offline David IpFriend
Messages: 1
Registered: September 2012
Junior Member
Hi Dwain,
I am facing the same problem right now and I am not able to apply Lars Vogel's tutorial to solve the problem. What is the right activity pattern to hide the "Show all" checkbox in the Open Perspective dialog? Thanks.
David
Re: Disabling Activity Enablement [message #930732 is a reply to message #918057] Tue, 02 October 2012 15:30 Go to previous message
dwain Missing name is currently offline dwain Missing nameFriend
Messages: 35
Registered: October 2009
Member
Hello David, I am not certain which pattern is the correct one. I do know that this set of bindings worked in eclipse 3.6 but does not appear to work with the current version of eclipse.
org.eclipse.ui.ide/org.eclipse.ui.wizards.new.project
org.eclipse.ui.ide/org.eclipse.ui.wizards.new.file
org.eclipse.ui.ide/org.eclipse.ui.wizards.new.folder
org.eclipse.ui.editors/org.eclipse.ui.editors.wizards.UntitledTextFileWizard
.*/org.eclipse.team.*
.*/org.eclipse.ui.edit.text.gotoNextAnnotation
.*/org.eclipse.ui.edit.text.gotoPreviousAnnotation
.*/org.eclipse.ui.edit.text.gotoLastEditPosition
.*/org.eclipse.search.TextSearchFile
.*/org.eclipse.search.OpenFileSearchPage
.*/org.eclipse.search.TextSearchProject
.*/org.eclipse.search.TextSearchWorkspace
.*/org.eclipse.search.TextSearchWorkingSet
.*/org.eclipse.search.internal.ui.text.TextSearchPage
.*/org.eclipse.ui.views.ResourceNavigator
.*/org.eclipse.ui.views.BookmarkView
.*/org.eclipse.ui.views.TaskList
.*/org.eclipse.ui.views.ProblemView
.*/org.eclipse.ui.views.AllMarkersView
.*/org.eclipse.search.SearchResultView
.*/org.eclipse.search.ui.views.SearchView
.*/org.eclipse.ui.views.PropertySheet
.*/org.eclipse.ui.views.ContentOutline
.*/org.eclipse.ui.navigator.ProjectExplorer
.*/org.eclipse.debug.ui.DebugPerspective
.*/org.eclipse.debug.ui.BreakpointView
.*/org.eclipse.debug.ui.DebugView
.*/org.eclipse.debug.ui.ExpressionView
.*/org.eclipse.debug.ui.MemoryView
.*/org.eclipse.debug.ui.ModuleView
.*/org.eclipse.debug.ui.RegisterView
.*/org.eclipse.debug.ui.VariableView
.*/org.eclipse.ui.console.ConsoleView
.*/org.eclipse.ui.internal.introview
.*/org.eclipse.wst.xml.ui.perspective
org.eclipse.debug.*/org.eclipse.debug.*
.*/org.eclipse.ui.preferencePages.Workspace
.*/org.eclipse.wst.xml.ui.preferences.xml
.*/org.eclipse.wst.xml.ui.internal.wizards.NewXMLWizard
.*/org.eclipse.wst.xml.ui.XMLExampleProjectCreationWizard
.*/org.eclipse.wst.css.ui.internal.wizard.NewCSSWizard
.*/org.eclipse.wst.html.ui.internal.wizard.NewHTMLWizard
.*/org.eclipse.jdt.ui.JavaPerspective
.*/org.eclipse.jdt.ui.JavaHierarchyPerspective
.*/org.eclipse.jdt.ui.JavaBrowsingPerspective
.*/org.eclipse.pde.ui.PDEPerspective
Previous Topic:Problem with Update site...I'm producing plugin's for eclipse - but for some reason when I build a n
Next Topic:Eclipse IDE in XP "Open File - Security Warning"
Goto Forum:
  


Current Time: Fri Apr 19 23:32:30 GMT 2024

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

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

Back to the top