Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » mportedNamespaceAwareLocalScopeProvider
mportedNamespaceAwareLocalScopeProvider [message #1065574] Wed, 26 June 2013 14:32 Go to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi all,

I createdefault e eobject in the editor ,but I receive an "No EObjectDescription could be found in Scope".

I try this method :protected IScope getLocalElementsScope(IScope parent, final EObject context,final EReference reference) {

http://www.eclipse.org/forums/index.php/m/1065555/#msg_1065555

but my problem :singletonList(localNormalizer) is not defined Sad

must I create a method ?




Re: mportedNamespaceAwareLocalScopeProvider [message #1065588 is a reply to message #1065574] Wed, 26 June 2013 15:22 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
java.util.Collections.singletonList(T) ????

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: mportedNamespaceAwareLocalScopeProvider [message #1065673 is a reply to message #1065588] Thu, 27 June 2013 06:03 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian,

Not defined with java.util.Collections.singletonList(T).

I used org.jaxen.util.SingletonList but not defined .

Must I write a method for singletonList(localNormalizer)??
I do not understand http://www.eclipse.org/forums/index.php/m/1065555/#msg_1065555

may be it solved my error
Save Failed
No EObjectDescription could be found in Scope RoleAssignment.member for UserModel'UM'.sitePermissions[4]->SitePermission'ROOTWEB'.ownedGroup[0]->Group'Owners'
Semantic Object: UserModel'UM'.sitePermissions[4]->SitePermission'ROOTWEB'.ownedRoleAssignments[0]->RoleAssignment'FullControl'
Re: mportedNamespaceAwareLocalScopeProvider [message #1065682 is a reply to message #1065673] Thu, 27 June 2013 06:42 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi
I don't get it

Collections::singletonList(localNormalizer)

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: mportedNamespaceAwareLocalScopeProvider [message #1065696 is a reply to message #1065682] Thu, 27 June 2013 07:53 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian,

I do not solved my problem:
How can I solved this Sad
I Shared my code in the http://www.eclipse.org/forums/index.php/m/1065352/#msg_1065352

Save Failed
No EObjectDescription could be found in Scope RoleAssignment.member for UserModel'UM'.sitePermissions[4]->SitePermission'ROOTWEB'.ownedGroup[0]->Group'Owners'
Semantic Object: UserModel'UM'.sitePermissions[4]->SitePermission'ROOTWEB'.ownedRoleAssignments[0]->RoleAssignment'FullControl'
Re: mportedNamespaceAwareLocalScopeProvider [message #1065721 is a reply to message #1065696] Thu, 27 June 2013 09:15 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

this has nothing todo with your question.
the error message says: there is no object with a certain name in a certain context.


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: mportedNamespaceAwareLocalScopeProvider [message #1065780 is a reply to message #1065721] Thu, 27 June 2013 13:08 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian ,

How can I solved this problem.I shared my util class ,I cerate field other editor but I must pass other editor end then save it after added field.
Re: mportedNamespaceAwareLocalScopeProvider [message #1065783 is a reply to message #1065780] Thu, 27 June 2013 13:10 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi This should work more out of the box

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: mportedNamespaceAwareLocalScopeProvider [message #1065784 is a reply to message #1065783] Thu, 27 June 2013 13:17 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
P.S. is the second file saved/indexed? (DefaultResourceDescriptionsStrategy)

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: mportedNamespaceAwareLocalScopeProvider [message #1065787 is a reply to message #1065784] Thu, 27 June 2013 13:28 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian ,

I save my second editor.
http://www.eclipse.org/forums/index.php/m/1065352/#msg_1065352 code is here .My problem is : created default fields are not come in the first editor.I want to use it in the first editor.if I pass other editor(default fields are created) ,and then save it .Created object is comes in the first editor.I used crossference.
Re: mportedNamespaceAwareLocalScopeProvider [message #1065789 is a reply to message #1065787] Thu, 27 June 2013 13:32 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi,

no wonder.
use IResourceSetProvider to obtain a ResourceSet


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: mportedNamespaceAwareLocalScopeProvider [message #1065892 is a reply to message #1065789] Fri, 28 June 2013 07:30 Go to previous messageGo to next message
junior developer is currently offline junior developerFriend
Messages: 354
Registered: January 2013
Senior Member
Hi Christian,

I inject IResourceSetProvider but my resourceset gets null.not works IResourceSetProvider


Christian Dietrich wrote on Thu, 27 June 2013 09:32
Hi,

no wonder.
use IResourceSetProvider to obtain a ResourceSet
Re: mportedNamespaceAwareLocalScopeProvider [message #1065894 is a reply to message #1065892] Fri, 28 June 2013 07:44 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
???? is the provider null???? if so you do the injection not right http://koehnlein.blogspot.de/2012/11/xtext-tip-how-do-i-get-guice-injector.html

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:How to avoid indentation (tabs) during code generation?
Next Topic:Collapsing all comments
Goto Forum:
  


Current Time: Fri Apr 26 06:12:18 GMT 2024

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

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

Back to the top