Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear capabilities of MelangeResource #112

Open
dvojtise opened this issue Mar 12, 2018 · 0 comments
Open

Unclear capabilities of MelangeResource #112

dvojtise opened this issue Mar 12, 2018 · 0 comments

Comments

@dvojtise
Copy link
Contributor

dvojtise commented Mar 12, 2018

Neither the documentation nor the API makes clear about which adaptations are legal or possible (or not implemented yet)

We need a clear table of what is supposed to work or not in its "conversion" versus "adaptation" capabilities. (not sure conversion/ adaptation is the best wording)

for example: I don't know if this is possible (using resource URI and/or directly in the API):

package fsmadaptation
language FSM {
	syntax "platform:/resource/org.eclipse.gemoc.sample.fsmmodeladaptation.fsm.model/model/fsm.ecore"
}
language XSFSM inherits FSM {
	with fsmadaptation.fsm.k3dsa.*
}

using the URI syntax:
Is this possible ?

  • melange:/file/model/myfsm.fsm?lang=fsmadaptation.FSM&mt=fsmadaptation.XSFSMMT
    (which is actually the same as: melange:/file/model/myfsm.fsm?mt=fsmadaptation.XSFSMMT, since the model is already an instance of FSM

all options to document:

  • melange:/file/model/myfsm.fsm?lang=fsmadaptation.FSM (should work since it does nothing)

  • melange:/file/model/myfsm.fsm?lang=fsmadaptation.FSM&mt=fsmadaptation.FSMMT

  • melange:/file/model/myfsm.fsm?lang=fsmadaptation.FSM&mt=fsmadaptation.XSFSMMT

  • melange:/file/model/myfsm.fsm?lang=fsmadaptation.XSFSM (this one works for sure, I use it in Gemoc)

  • melange:/file/model/myfsm.fsm?lang=fsmadaptation.XSFSM&mt=fsmadaptation.FSMMT

  • melange:/file/model/myfsm.fsm?lang=fsmadaptation.XSFSM&mt=fsmadaptation.XSFSMMT

  • melange:/file/model/myxsfsm.xsfsm?lang=fsmadaptation.FSM

  • melange:/file/model/myxsfsm.xsfsm?lang=fsmadaptation.FSM&mt=fsmadaptation.FSMMT

  • melange:/file/model/myxsfsm.xsfsm?lang=fsmadaptation.FSM&mt=fsmadaptation.XSFSMMT

  • melange:/file/model/myxsfsm.xsfsm?lang=fsmadaptation.XSFSM (should work since it does nothing)

  • melange:/file/model/myxsfsm.xsfsm?lang=fsmadaptation.XSFSM&mt=fsmadaptation.FSMMT

  • melange:/file/model/myxsfsm.xsfsm?lang=fsmadaptation.XSFSM&mt=fsmadaptation.XSFSMMT

This is related to #111 since the API (and its java doc) should also helps to know what is possible or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant