Skip to main content


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 22:18 Go to next message
David Riemens is currently offline David RiemensFriend
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 08:28 Go to previous messageGo to next message
Eclipse UserFriend
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 18:44 Go to previous message
David Riemens is currently offline David RiemensFriend
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: Sat Apr 20 01:00:03 GMT 2024

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

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

Back to the top