Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Stopping the default search commands from loading(Eclipse rcp, org.eclipse.search.searchPages)
Stopping the default search commands from loading [message #897345] Mon, 23 July 2012 16:37 Go to next message
Thomas Sörensen is currently offline Thomas SörensenFriend
Messages: 2
Registered: July 2012
Junior Member
Hi
I have a Eclipse RCP app that I have created 2 searchpages and added them to the org.eclipse.search.searchPages extension point. These search pages are visible and work just fine after running the app and clicking on the search menu and then the search command.

However there are a some items in the menu that shouldn't be visible. Like the File search and java search pages.
I extracted the jar files that are part of the org.eclipse.search package and discovered that there is a plugin.xml in the jar file that adds all of these commands and pages that I don't whant.

How do I remove these so that only my own searchpages are visible?
Even better would be to stop it from loading completly.


I have been able to remove the search menu completely but it seems impossible to access and remove the commands themselves. But even if I remove these items on runtime the pages will still be loaded won't they?
Re: Stopping the default search commands from loading [message #897502 is a reply to message #897345] Tue, 24 July 2012 10:13 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 23.07.2012 18:37, Thomas Sörensen wrote:
> Hi I have a Eclipse RCP app that I have created 2 searchpages and
> added them to the org.eclipse.search.searchPages extension point.
> These search pages are visible and work just fine after running the
> app and clicking on the search menu and then the search command.
>
> However there are a some items in the menu that shouldn't be visible.
> Like the File search and java search pages. I extracted the jar files
> that are part of the org.eclipse.search package and discovered that
> there is a plugin.xml in the jar file that adds all of these commands
> and pages that I don't whant.
This is not true: e.g. the Java stuff comes from the
'org.eclipse.jdt.ui' plug-ins, which you probably don't need for your RCP.
>
> How do I remove these so that only my own searchpages are visible?
You can hide them using the 'org.eclipse.ui.activities' extension point.

Dani

> Even better would be to stop it from loading completly.
>
>
> I have been able to remove the search menu completely but it seems
> impossible to access and remove the commands themselves. But even if I
> remove these items on runtime the pages will still be loaded won't they?
Previous Topic:zxing
Next Topic:i can´t run simple code, i get the same error once and again
Goto Forum:
  


Current Time: Thu Apr 25 21:15:31 GMT 2024

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

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

Back to the top