Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [EMFatic] Adding Drop Down Menu to a Node
[EMFatic] Adding Drop Down Menu to a Node [message #760140] Thu, 01 December 2011 13:29 Go to next message
Snakebyte Missing name is currently offline Snakebyte Missing nameFriend
Messages: 130
Registered: November 2011
Senior Member
Hello,

i got a model containing the following node.


class Reference {
   attr String name;
   attr String path;
}



i post it modelled with emfatic here.

I want to add an option to the Dropdown-Menu of this node.
So when i add one Reference Node to canvas, and right click on it, i want to have a new option called "Set path..." where i can use my own javacode to get a popup.


How can i add such an option ? Can i use my own javacode in it ?



Greetings
Snakebyte
Re: [EMFatic] Adding Drop Down Menu to a Node [message #760157 is a reply to message #760140] Thu, 01 December 2011 13:47 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Why not use the properties view?


On 01/12/2011 2:29 PM, Snakebyte wrote:
> Hello,
>
> i got a model containing the following node.
>
>
>
> class Reference {
> attr String name;
> attr String path;
> }
>
>
>
> i post it modelled with emfatic here.
>
> I want to add an option to the Dropdown-Menu of this node.
> So when i add one Reference Node to canvas, and right click on it, i
> want to have a new option called "Set path..." where i can use my own
> javacode to get a popup.
>
>
> How can i add such an option ? Can i use my own javacode in it ?
>
>
>
> Greetings
> Snakebyte


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [EMFatic] Adding Drop Down Menu to a Node [message #760173 is a reply to message #760157] Thu, 01 December 2011 14:28 Go to previous messageGo to next message
Snakebyte Missing name is currently offline Snakebyte Missing nameFriend
Messages: 130
Registered: November 2011
Senior Member
simply for usability.

but if you can explain me, how i can customize the properties view like i get the popup when try to edit the property path, it would be a possibility too.
Re: [EMFatic] Adding Drop Down Menu to a Node [message #760177 is a reply to message #760173] Thu, 01 December 2011 14:32 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
This explains how to create custom cell editors: <a
href="http://wiki.eclipse.org/EMF/Recipes#Recipe:_Create_your_own_property_editor_in_a_generated_application"><span
class="tocnumber">3.1</span> <span class="toctext">Recipe:
Create your own property editor in a generated application</span></a><br>
<br>
On 01/12/2011 3:28 PM, Snakebyte wrote:
<blockquote cite="mid:jb82u1$evo$1@news.eclipse.org" type="cite">simply
for usability.
<br>
<br>
but if you can explain me, how i can customize the properties view
like i get the popup when try to edit the property path, it would
be a possibility too.
<br>
</blockquote>
</body>
</html>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[EMFatic] Read attribute of current selected node in canvas
Next Topic:[EMF Facet]
Goto Forum:
  


Current Time: Fri Apr 26 13:28:04 GMT 2024

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

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

Back to the top