Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Drawing blocks with predefined inputs/outputs
Drawing blocks with predefined inputs/outputs [message #519572] Tue, 09 March 2010 11:06 Go to next message
Cedric Moonen is currently offline Cedric MoonenFriend
Messages: 274
Registered: August 2009
Senior Member
Hello,

I am currently investigating if GMF would be a good choice to develop a specific type of editor.

In this editor, I have a certain types of blocks which can be dragged on the canvas. Each block type has a specific number of inputs and outputs. The user can then link inputs/outputs of a block to other blocks on the canvas.

The number (and name and type) of the inputs/ouptuts are fixed and depends on the block which is selected.
It is something similar as a digital electronic diagram in which you can add components and link them together.

Do you think GMF could be used to realize something like that without too much 'hacking' ?

The point which is not clear for me is how to be able to add "complex" elements to a diagram (the blocks + the inputs/outputs) and forbid the user to delete the inputs/outputs of the block.

Thanks
Re: Drawing blocks with predefined inputs/outputs [message #520386 is a reply to message #519572] Fri, 12 March 2010 08:26 Go to previous message
Ali Koudri is currently offline Ali KoudriFriend
Messages: 118
Registered: July 2009
Senior Member
Totally, GMF does it perfectly with really few changes. Actually, I did
the same think and I just had to add one line of code for the placement
of the port relatively to its parent.

Le 09/03/2010 12:06, C a écrit :
> Hello,
>
> I am currently investigating if GMF would be a good choice to develop a
> specific type of editor.
>
> In this editor, I have a certain types of blocks which can be dragged on
> the canvas. Each block type has a specific number of inputs and outputs.
> The user can then link inputs/outputs of a block to other blocks on the
> canvas.
>
> The number (and name and type) of the inputs/ouptuts are fixed and
> depends on the block which is selected.
> It is something similar as a digital electronic diagram in which you can
> add components and link them together.
>
> Do you think GMF could be used to realize something like that without
> too much 'hacking' ?
>
> The point which is not clear for me is how to be able to add "complex"
> elements to a diagram (the blocks + the inputs/outputs) and forbid the
> user to delete the inputs/outputs of the block.
>
> Thanks
Previous Topic:Draw a Lozange from Polygon
Next Topic:One domain file and multiple diagram files: is it possible?
Goto Forum:
  


Current Time: Mon Sep 28 23:21:05 GMT 2020

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

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

Back to the top