connection and element creation [message #155484] |
Mon, 15 October 2007 17:26  |
Eclipse User |
|
|
|
Originally posted by: rasar.dwivedi.gmail.com
Hi I am facing the following issue which is kind of critical to me but I
am not getting a clue,
I have EMF and GMF model for business processes. I have a source value
object and target business process. I need to create a connection from
source value object to target business process. The problem is source
Value object cannnot be connected to business process directly. First I
need to create a input pin for business process and then only I can draw a
connection from source value object to target business process (or target
input pin which is attached to business process). the requirement is user
should be able to drag the connection handle from source value object and
drop it on target business process and as soon as he drops the connection
on target business process the input pin should automatically get created
to target business process and source value object and input pin on target
business process should get connected. I was trying to do sth with
ModelingAssistantProvider but no success. How should I approach this, how
should I create the emf as well as gmf counterpart of the input pin
automatically and then attach it to source. I'll really appreciate any
help in this regard.
|
|
|
Re: connection and element creation [message #155668 is a reply to message #155484] |
Tue, 16 October 2007 07:18   |
Eclipse User |
|
|
|
Originally posted by: ijerez2001.gmail.com
I had to do something similar, in my case, i have 2 modules that contain
interfaces.
I had to connect two interfaces (implements connection), if these interfaces
were in different module, previously i had to connect the modules.
So, i did a MessageDialog for question if i wanted to create the import
connection.
This i did in the class XXXCreateCommand (where XXX is your connection). I
create a global variable for the class (boolean) that I put the value "true"
when it happened in the method canExecute(). Later, in the method
doExecuteWithResult, in the same class, add my requierement connection if
the answer was yes, in otrer case, I throw a ExecutionException.
I think that you have to add your pin in the method doExecuteWithResult.
Regards.
"exquist" <rasar.dwivedi@gmail.com> escribió en el mensaje de
noticias:acb9199ff4b6bf3616f41b0661791e02$1@www.eclipse.org...
> Hi I am facing the following issue which is kind of critical to me but I
> am not getting a clue,
>
> I have EMF and GMF model for business processes. I have a source value
> object and target business process. I need to create a connection from
> source value object to target business process. The problem is source
> Value object cannnot be connected to business process directly. First I
> need to create a input pin for business process and then only I can draw a
> connection from source value object to target business process (or target
> input pin which is attached to business process). the requirement is user
> should be able to drag the connection handle from source value object and
> drop it on target business process and as soon as he drops the connection
> on target business process the input pin should automatically get created
> to target business process and source value object and input pin on target
> business process should get connected. I was trying to do sth with
> ModelingAssistantProvider but no success. How should I approach this, how
> should I create the emf as well as gmf counterpart of the input pin
> automatically and then attach it to source. I'll really appreciate any
> help in this regard.
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03931 seconds