Enabling a DSL editor to open concrete model files [message #52492] |
Tue, 23 June 2009 11:55  |
Eclipse User |
|
|
|
Hello All
I want to somehow facilate the opening of .xmi files of concrete model in
a DSL Editor.
For Example consider:
sample1.xml
------------
<?xml version="1.0" encoding="UTF-8"?>
<datatypes:PrimitiveDataType xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:datatypes="http://q-impress.eu/samm/datatype"
id="_e94SQF8FEd6mb4izF2cfPA" documentation="" name="pr_01" type="int"/>
------------------------------------------------------------ ---------
I want to be able to open this .xml file in the DSL editor as:
------------------------------------------------------------ ---------
PrimitiveDataType id:"_e94SQF8FEd6mb4izF2cfPA"{
name:"pr_01";
doc:"";
type:1;
}
------------------------------------------------------------ ---------
Is there any way that this can be accomplished?
If my objective is unclear then, pls let me know and I shall elaborate it.
Thanks.
Durga
|
|
|
|
Re: Enabling a DSL editor to open concrete model files [message #52793 is a reply to message #52492] |
Thu, 25 June 2009 03:49  |
Eclipse User |
|
|
|
Hi Durga,
I think I understood what you described, however I've no idea about the
usecase. Maybe there are other ways to achieve what you want. Would you
please be so kind an elaborate a bit on it from a more user oriented view?
Andy was right, there would be some work to do, if you want to create
such a projection-based editor for your xmi-file.
Regards,
Sebastian
Am 23.06.2009 17:55 Uhr, schrieb Durga Prasana Sahoo:
> Hello All
>
>
> I want to somehow facilate the opening of .xmi files of concrete model
> in a DSL Editor.
>
> For Example consider:
> sample1.xml
> ------------
> <?xml version="1.0" encoding="UTF-8"?>
> <datatypes:PrimitiveDataType xmi:version="2.0"
> xmlns:xmi="http://www.omg.org/XMI"
> xmlns:datatypes="http://q-impress.eu/samm/datatype"
> id="_e94SQF8FEd6mb4izF2cfPA" documentation="" name="pr_01" type="int"/>
>
> ------------------------------------------------------------ ---------
> I want to be able to open this .xml file in the DSL editor as:
>
> ------------------------------------------------------------ ---------
> PrimitiveDataType id:"_e94SQF8FEd6mb4izF2cfPA"{
> name:"pr_01";
> doc:"";
> type:1;
> }
> ------------------------------------------------------------ ---------
>
> Is there any way that this can be accomplished?
>
>
> If my objective is unclear then, pls let me know and I shall elaborate it.
>
>
> Thanks.
>
>
> Durga
>
|
|
|
Powered by
FUDForum. Page generated in 0.03686 seconds