Closed GoogleCodeExporter closed 9 years ago
Original comment by soundasleep
on 28 Apr 2011 at 1:11
Original comment by soundasleep
on 28 Apr 2011 at 1:11
incorrect issue title
Original comment by soundasleep
on 6 May 2011 at 6:21
In r2881, a first solution was attempted, where a FunctionLibrary contained any
number of XQueryFunctions, and these Functions could then be referenced by GMF
editors. That is, a Function could be referenced, e.g:
<conditionEdges ...>
<function href="platform:/plugin/org.openiaml.model/model/xquery-functions.iaml_library#//fn_numeric_equal" />
</conditionEdges>
However, the generated GMF editors did not allow for these XQueryFunctions to
be displayed, or for existing SimpleConditions to refer to them:
- XQueryFunctions cannot be dragged onto the diagram editor. An extension to
the project navigator view would have to be created.
- A platform resource can not be loaded through registered packages, and has to
be typed in manually (see GMF forums).
- The ConditionEdge reference cannot be set to an element in a loaded resource;
the element is displayed, but no change occurs.
- If the reference is created manually, GetShortcuts.getSourceElement() returns
null for XQueryFunction.
Consequently, there is a significant amount of development work that would have
to occur to support the arbitrary inclusion of Function libraries in IAML.
An easier solution is to simply provide an Enum of XQuery functions in the IAML
metamodel, and allowing user-created XQueryFunctions to refer to one of these
values. This is the current approach advocated as per issue 234.
Original comment by soundasleep
on 10 May 2011 at 7:08
Regarding loading platform resources through registered packages:
http://www.eclipse.org/forums/index.php/t/209036/
It is possible to use the Ecore editor's extension of the LoadResourcesAction
to provide a list of registered Ecore packages in the system.
Original comment by soundasleep
on 11 May 2011 at 12:13
A number of functions have been implemented as of r2894.
Original comment by soundasleep
on 11 May 2011 at 5:18
Original comment by soundasleep
on 16 May 2011 at 6:02
Original issue reported on code.google.com by
soundasleep
on 28 Apr 2011 at 1:06