| 
| EMF-Editor-Outline? [message #58047] | Mon, 02 October 2006 08:04  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: tobk.gmx.de 
 Hello,
 
 1.: is there a way to reuse the generated EMF-editor in the GMF-Editor's
 outline? This would be useful for simple creation of non-graphical elements
 or for setting *-references, which are a little buggy with the gmf-outline.
 
 2.: Is there any way to expand a *-reference in the properties view?
 Currently it just looks like this:
 reference    ref1,ref2
 But I'd like to have it like this:
 [+]reference    ref1,ref2
 [+]ref1
 att1
 att2
 [+]ref2
 att1
 att2
 Is there any way to do this with EMF/GMF (tried the multiline-flag, but no
 effect) or would I have to provide this manually?
 
 thanks,
 tobias
 |  |  |  | 
| 
| Re: EMF-Editor-Outline? [message #58072 is a reply to message #58047] | Mon, 02 October 2006 08:26  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: merks.ca.ibm.com 
 This is a multi-part message in MIME format.
 --------------010805060900010408080603
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 Tobias,
 
 For the second question, you'll probably want to have a look at the
 recent thread "Properties for child elements using edit" in the EMF
 newsgroup.  For the first question, I'm not sure but I imagine that if
 you hook up the getAdapterCode below and copy over the
 getContentOutlinePage method that that will get you most of the way there...
 
 public Object getAdapter(Class key)
 {
 if (key.equals(IContentOutlinePage.class))
 {
 return showOutlineView() ? getContentOutlinePage() : null;
 }
 
 
 tobias wrote:
 
 >Hello,
 >
 >1.: is there a way to reuse the generated EMF-editor in the GMF-Editor's
 >outline? This would be useful for simple creation of non-graphical elements
 >or for setting *-references, which are a little buggy with the gmf-outline.
 >
 >2.: Is there any way to expand a *-reference in the properties view?
 >Currently it just looks like this:
 >   reference    ref1,ref2
 >But I'd like to have it like this:
 >[+]reference    ref1,ref2
 >   [+]ref1
 >        att1
 >        att2
 >   [+]ref2
 >      att1
 >      att2
 >Is there any way to do this with EMF/GMF (tried the multiline-flag, but no
 >effect) or would I have to provide this manually?
 >
 >thanks,
 >tobias
 >
 >
 
 
 --------------010805060900010408080603
 Content-Type: text/html; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
 <head>
 <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
 </head>
 <body bgcolor="#ffffff" text="#000000">
 Tobias,<br>
 <br>
 For the second question, you'll probably want to have a look at the
 recent thread "Properties for child elements using edit" in the EMF
 newsgroup.  For the first question, I'm not sure but I imagine that if
 you hook up the getAdapterCode below and copy over the
 getContentOutlinePage method that that will get you most of the way
 there...<br>
 <blockquote> <small> public Object getAdapter(Class key)</small><br>
 <small>  {</small><br>
 <small>    if (key.equals(IContentOutlinePage.class))</small><br>
 <small>    {</small><br>
 <small>      return showOutlineView() ? getContentOutlinePage() :
 null;</small><br>
 <small>    }</small><br>
 </blockquote>
 <br>
 tobias wrote:
 <blockquote cite="midefqv7c$a32$1@utils.eclipse.org" type="cite">
 <pre wrap="">Hello,
 
 1.: is there a way to reuse the generated EMF-editor in the GMF-Editor's
 outline? This would be useful for simple creation of non-graphical elements
 or for setting *-references, which are a little buggy with the gmf-outline.
 
 2.: Is there any way to expand a *-reference in the properties view?
 Currently it just looks like this:
 reference    ref1,ref2
 But I'd like to have it like this:
 [+]reference    ref1,ref2
 [+]ref1
 att1
 att2
 [+]ref2
 att1
 att2
 Is there any way to do this with EMF/GMF (tried the multiline-flag, but no
 effect) or would I have to provide this manually?
 
 thanks,
 tobias
 </pre>
 </blockquote>
 <br>
 </body>
 </html>
 
 --------------010805060900010408080603--
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.49158 seconds