Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [XCore] CompoundXtextEditorCallback - Was configured with another client or not configured at all([XCore] CompoundXtextEditorCallback - Was configured with another client or not configured at all)
[XCore] CompoundXtextEditorCallback - Was configured with another client or not configured at all [message #923256] Tue, 25 September 2012 19:05 Go to next message
Régent L'Archevêque is currently offline Régent L'ArchevêqueFriend
Messages: 39
Registered: May 2010
Member
Hi,

I created a xcore meta-model that refers to an existing .ecore model. This .ecore model does not have the XText nature. When I put the plugin dependency in the Manifest.MF (XCore Project) then I am unable to open the .xcore and I get the the following Exception:
"java.lang.IllegalStateException: Was configured with another client or not configured at all."

It seems it is related to XText itself. Help would be appreciated.

Thanks Wink




Re: [XCore] CompoundXtextEditorCallback - Was configured with another client or not configured at a [message #923274 is a reply to message #923256] Tue, 25 September 2012 19:28 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26221
Registered: July 2009
Senior Member
Can you provide a stack trace? This is with the EMF 2.8 release?

On 25/09/2012 9:05 PM, Régent L Archevêque wrote:
> Hi,
> I created a xcore meta-model that refers to an existing .ecore model.
> This .ecore model does not have the XText nature. When I put the
> plugin dependency in the Manifest.MF (XCore Project) then I am unable
> to open the .xcore and I get the the following Exception:
> "java.lang.IllegalStateException: Was configured with another client
> or not configured at all."
>
> It seems it is related to XText itself. Help would be appreciated.
>
> Thanks ;)
>
>
>
>
>
Re: [XCore] CompoundXtextEditorCallback - Was configured with another client or not configured at a [message #924062 is a reply to message #923274] Wed, 26 September 2012 13:10 Go to previous messageGo to next message
Régent L'Archevêque is currently offline Régent L'ArchevêqueFriend
Messages: 39
Registered: May 2010
Member
Hi Ed,

yes I am using EMF 2.8.0.v20120608-0554 with Eclipse Juno 4.2.0 Build id: I20120608-1400.

I put the stack trace in attachment. If you need further info for the investigation let me know.

Thanks Wink

  • Attachment: xcore.log
    (Size: 4.13KB, Downloaded 36 times)
Re: [XCore] CompoundXtextEditorCallback - Was configured with another client or not configured at a [message #924743 is a reply to message #924062] Thu, 27 September 2012 05:04 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26221
Registered: July 2009
Senior Member
Régent,

Please try the latest maintenance stream build:
http://download.eclipse.org/modeling/emf/emf/updates/2.8.x

On 26/09/2012 3:10 PM, Régent L Archevêque wrote:
> Hi Ed,
>
> yes I am using EMF 2.8.0.v20120608-0554 with Eclipse Juno 4.2.0 Build id: I20120608-1400.
>
> I put the stack trace in attachment. If you need further info for the investigation let me know.
>
> Thanks ;)
>
>
Re: [XCore] CompoundXtextEditorCallback - Was configured with another client or not configured at a [message #926338 is a reply to message #924743] Fri, 28 September 2012 14:56 Go to previous messageGo to next message
Régent L'Archevêque is currently offline Régent L'ArchevêqueFriend
Messages: 39
Registered: May 2010
Member
Hi Ed,

I installed a fresh version of Eclipse 4.2 + EMF 2.8.x as you recommended. I tried and I got similar issue. I created a simple example (see the attachment) that illustrates the issue. There are two models: 1 ecore + 1 xcore. The xcore project refers to one class of the ecore project but I get the "Couldn't resolve reference to GenBase 'EcoreProjectClass'.

Thanks Wink
Re: [XCore] CompoundXtextEditorCallback - Was configured with another client or not configured at a [message #926431 is a reply to message #926338] Fri, 28 September 2012 16:43 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26221
Registered: July 2009
Senior Member
Régent,

Yes, workspace projects need an Xtext nature in order to be indexed by
the Xtext builder and that's needed for the qualified names to be
visible in Xcore models.


On 28/09/2012 4:56 PM, Régent L Archevêque wrote:
> Hi Ed,
>
> I installed a fresh version of Eclipse 4.2 + EMF 2.8.x as you recommended. I tried and I got similar issue. I created a simple example (see the attachment) that illustrates the issue. There are two models: 1 ecore + 1 xcore. The xcore project refers to one class of the ecore project but I get the "Couldn't resolve reference to GenBase 'EcoreProjectClass'.
>
> Thanks ;)
>
Re: [XCore] CompoundXtextEditorCallback - Was configured with another client or not configured at a [message #926496 is a reply to message #926431] Fri, 28 September 2012 18:15 Go to previous messageGo to next message
Régent L'Archevêque is currently offline Régent L'ArchevêqueFriend
Messages: 39
Registered: May 2010
Member
Understood. Thanks Ed.

When I add the XText Nature the problem is fixed if both projects are located in the same workspace. But on my side, the ecore project is an installed plugin and the xcore is the only project in the workspace. What should I do to make that work. I am wondering because I can refer EMF Meta-Model Classes such as EClass, EObject with no problem but it does not work with my models.

Thanks again for you support

Regent Wink
Re: [XCore] CompoundXtextEditorCallback - Was configured with another client or not configured at a [message #926514 is a reply to message #926496] Fri, 28 September 2012 18:31 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26221
Registered: July 2009
Senior Member
Régent,

Comments below.

On 28/09/2012 8:15 PM, Régent L Archevêque wrote:
> Understood. Thanks Ed.
>
> When I add the XText Nature the problem is fixed if both projects are
> located in the same workspace. But on my side, the ecore project is
> an installed plugin and the xcore is the only project in the workspace.
That should just work... That plugin has the model folder in the jarred
bundle and it's properly registered in the plugin.xml?

As a work around, you can import it into your workspace..
> What should I do to make that work. I am wondering because I can
> refer EMF Meta-Model Classes such as EClass, EObject with no problem
> but it does not work with my models.
There is a bug that models with cross project references don't work, but
the fix for that (in Xtext) won't be in the maintenance stream:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=390132
>
> Thanks again for you support
>
> Regent ;)
Previous Topic:XCore install issues
Next Topic:[EMF Compare] Cross-references not added during merge, bug?
Goto Forum:
  


Current Time: Tue Nov 25 23:38:58 GMT 2014

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

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