|
|
|
Re: EObject IDocument support [message #425035 is a reply to message #425034] |
Thu, 13 November 2008 20:51 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Ralph,
Well, editors aren't typically designed to deal with snippets from
files. Certainly you can mark the GenFeature for this to say it's
multi-line text and then you can edit it using a multi-line text
control. There's nothing fancy in EMF beyond that.
Ralph Markham wrote:
> Example:
>
> <scripts>
> <script name="myscript">
> <![CDATA[
> try {
> return scope.get("server").get("name");
> } catch( Exception e ) { }
> return "";
> ]]>
> </script>
> <script name="myscript2">
> <![CDATA[scope.get("name")]]>
> </script>
> </scripts>
>
> I want to be able to take the text in the cdata and open it up in an
> editor. The easiest way I can think of to do this and provide a
> powerful editing environment, is to use existing editors like the one
> that exist for groovy.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03347 seconds