Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Help with scoping please.
Help with scoping please. [message #998133] Wed, 09 January 2013 12:30
Vil Lpz is currently offline Vil Lpz
Messages: 24
Registered: April 2012
Junior Member
Hello.

I try to explain my problem:


/* state */
ScxmlStateType:
 '<state'
	
	( 'id=' name = MymwIDDataType 
      & ('src=' importURI = (HttpUrlDataType | LocalUrlDataType))? 
      & ('mymw:category=' mymwCategoryDatatype = MymwCategoryDatatype)? 
      & ('initial=' initial1 = [ScxmlStateType | MymwIDDataType])? ) //state
		
   scxmlStateMix = ScxmlStateMix	
;
.
.
.

/* transition */
ScxmlTransitionType:
 '<transition'

	( ('target=' target = [ScxmlStateType | MymwIDDataType])? // state
      & ('event=' event = [ideal::AType | MymwEventTypeDatatype])? 
      & ('cond=' cond = MymwExpressionDataType)? ) // MymwExpressionDatatype
					
  scxmlTransitionMix = ScxmlTransitionMix

;




<state id="FootbalslPortal" [b]src="test.mymw"[/b] mymw:category="Application">

	<initial>
		<transition [b]target="InitialMenu"[/b] />
	</initial> 
.
.
.



In this case "InitialMenu" is declared in the file test.mymw and its works well because I use "fragment = scoping.ImportURIScopingFragment {} // scope URI" in the mwe2 file.

But in other tags (('event=' event = [ideal::AType | MymwEventTypeDatatype])?) I need, also , reference things declared in other files in the namespace (without using src for it)
If instead of using the "fragment = scoping.ImportURIScopingFragment {} // scope URI" i use "fragment = scoping.ImportNamespacesScopingFragment {}" this working properly, but the above example does not work ...


What would be the easiest way to make this all work together? Anyone can help me go in the right direction?

Sorry if I did not make myself clear, English is not my native language.

Thanks!

A greeting
Previous Topic:Content Assist stops working
Next Topic:Using Xtext to populate memody model
Goto Forum:
  


Current Time: Sat Oct 25 16:06:18 GMT 2014

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

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