Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » import org.eclipse.e4.ui.di.Focus; failing(org.eclipse.e4.ui.di cannot be resolved)
import org.eclipse.e4.ui.di.Focus; failing [message #931054] Tue, 02 October 2012 18:18 Go to next message
David Riemens is currently offline David Riemens
Messages: 3
Registered: August 2012
Junior Member
Hi,

I just started trying to create an RCP application using Eclipse E4,
using the EclipseRCP tutorial of Lars Vogel.
I was starting from scratch, so I have still a clean installation:
Eclipse for RCP and RAP Developers
Eclipse e4 tooling
as explained in the tutorial.

The basics of the tutorial work without any issue, but in section 18.3
the tutorial describes the need for adding a @Focus method.

Now the strange thing is that the required import for Focus:

import org.eclipse.e4.ui.di.Focus;

is failing. Eclipse cannot resolve the org.eclipse.e4.ui.di
I've searched the forum and eclipse faq's but all examples
using injection use exactly the same import.

I also copied some example (by Lars Vogel) from
http://www.eclipse.org/forums/index.php/m/813698/?srch=%40Focus+injection#msg_813698

but this gives the same problem.

What am I missing ?

thx, David

I am running eclipse-rcp-juno-win32-x86_64
with feature/plugins as shown in the attached txt file


Re: import org.eclipse.e4.ui.di.Focus; failing [message #931467 is a reply to message #931054] Wed, 03 October 2012 04:28 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot Cela
Messages: 596
Registered: December 2010
Senior Member

You need to add org.eclipse.e4.ui.di to the plugin dependencies and running config.
Re: import org.eclipse.e4.ui.di.Focus; failing [message #932007 is a reply to message #931467] Wed, 03 October 2012 14:44 Go to previous message
David Riemens is currently offline David Riemens
Messages: 3
Registered: August 2012
Junior Member
Hi,
it took me a while to find where to add the dependency. In the end
it was missing from the MANIFEST.MF/plugin.xml .
(I'm not very familiar yet looking through the several views of the
project.)
And, after adding it there, the example is now working again, thx.
gr, David
Previous Topic:Another XWT Validation Trouble
Next Topic:how can I make this editor using RCP?
Goto Forum:
  


Current Time: Tue Jul 29 15:01:45 EDT 2014

Powered by FUDForum. Page generated in 0.03279 seconds