Skip to main content


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 LpzFriend
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: Thu Apr 25 13:22:56 GMT 2024

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

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

Back to the top