Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Eclipse Search in e4(How to use the search environment with e4)
Eclipse Search in e4 [message #776768] Mon, 09 January 2012 08:46 Go to next message
Tom K. is currently offline Tom K.Friend
Messages: 22
Registered: July 2009
Junior Member
We try to implement a search within a e4 project.

We tried two solutions till now:

1) Use the standard eclipse.search (3.7.1) plugin:
The problem we encountered there, is that the when calling follwoing line to execute the query we get an exception:
org.eclipse.e4.core.di.InjectionException: java.lang.IllegalStateException: Workbench has not been created yet.


...since in the InternalSearchUI on line 130
PlatformUI.getWorkbench().getProgressService()
is called.
PlatformUI.getWorkbench().getProgressService().registerIconForFamily(SearchPluginImages.DESC_VIEW_SEARCHRES, FAMILY_SEARCH);


What can we do about that?

2) the e4searchconsole seems not to be ready to use...
http://wiki.eclipse.org/E4/Search_Console


Has anybody experience or a hint how to use eclipse search or how to implement a search in a e4 project.

Re: Eclipse Search in e4 [message #777003 is a reply to message #776768] Mon, 09 January 2012 16:31 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

For #1, the current search console only works in Eclipse 4.2 (with the UI workbench compatibility/bridging layer), not in Eclipse 4 (E4Application).

For #2, they have been working on the search console. I would contact them and see how much of workbench they need to deploy their search console.

PW


Re: Eclipse Search in e4 [message #777280 is a reply to message #777003] Tue, 10 January 2012 07:56 Go to previous messageGo to next message
Beat Schaller is currently offline Beat SchallerFriend
Messages: 42
Registered: July 2009
Member
But what does it mean? Will the standard search (until 3.7) be modified to work in e4 and if yes what is the plan? Or is the search console the only way? We need this feature for our business RCP application, trying to develop without compatibility layer.

Thx for clarifying
Beat
Re: Eclipse Search in e4 [message #777412 is a reply to message #777280] Tue, 10 January 2012 12:59 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

In Juno, the focus is on supporting plugins using the standard IWorkbench APIs (so the compat layer). Eclipse 4 and EAP (Eclipse Application Services) will continue to get more work in Juno+ (2013) but if it's not there now, it is unlikely to be by the time Juno releases.

The 3.7 search console won't work in an Eclipse 4 RCP app as it needs the IWorkbench APIs. I don't know the state of the new search console (and what it needs to work), you would have to contact the contributors to find out.


PW


Previous Topic:How can I get the IContributionManager for a MPart?
Next Topic:CSS: 'background-image' does not work
Goto Forum:
  


Current Time: Thu Apr 25 01:13:35 GMT 2024

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

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

Back to the top