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 03:46 Go to next message
Tom K. is currently offline Tom K.
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 11:31 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
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 02:56 Go to previous messageGo to next message
Beat Schaller is currently offline Beat Schaller
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 07:59 Go to previous message
Paul Webster is currently offline Paul Webster
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: Tue Jul 29 15:10:00 EDT 2014

Powered by FUDForum. Page generated in 0.03906 seconds