Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » EMF-Editor-Outline?
EMF-Editor-Outline? [message #58047] Mon, 02 October 2006 12:04 Go to next message
Eclipse UserFriend
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 12:26 Go to previous message
Eclipse UserFriend
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.&nbsp; 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>&nbsp;<small> public Object getAdapter(Class key)</small><br>
<small>&nbsp; {</small><br>
<small>&nbsp;&nbsp;&nbsp; if (key.equals(IContentOutlinePage.class))</small><br>
<small>&nbsp;&nbsp;&nbsp; {</small><br>
<small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return showOutlineView() ? getContentOutlinePage() :
null;</small><br>
<small>&nbsp;&nbsp;&nbsp; }</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--
Previous Topic:how to create a custom build
Next Topic:Validate from Code
Goto Forum:
  


Current Time: Wed Jul 17 12:32:57 GMT 2024

Powered by FUDForum. Page generated in 0.04020 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top