[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[News.eclipse.technology.gmf] Re: two figure for a connection + Source End Constraint not working

Thanks for the replay, but I don't find an explicit description about the use of the "disallow cursor" (in another thread I didn't have this answer)
BYE



In data Fri, 28 Jul 2006 19:15:02 +0200, Radek Dvorak <radek.dvorak@xxxxxxxxxxx> ha scritto:


Hi Angelo,

There is a couple of reasons why it is not working as you expect.
First, in case that a link mapping uses 'sourceFeature', incorrect
context is used for the source end (derived from the containmentFeature) in
the generated code.
This has been fixed as https://bugs.eclipse.org/bugs/show_bug.cgi?id=148818
and
will arrive in 1.0.1 soon. You can check GMF downloads page for maintenance
builds containing
the fix.
With this fix your models allow only links creation started from the Square
source and
targeted to Circle. Those source ends which do not satisfy the source
constraint prevent the connection
from starting but disallow cursor is not shown while internally, the
constraint evaluates correctly.
I guess, the problem of the 'disallow cursor' was described earlier in this
newgroup.


Regards,
/Radek


"Angelo Marguglio" <angelo.marguglio@xxxxxxxxx> wrote in message news:op.tdeb9wttzq4ppf@xxxxxxxxxxxxxxxxxxxxx In the attachment I've put the whole model that I use for this example. With both the constraints I can't make any kind of link. BYE

In data Fri, 28 Jul 2006 12:54:58 +0200, Radek Dvorak
<radek.dvorak@xxxxxxxxxxx> ha scritto:

Hi Angelo,

Could you please post your 'sourceEnd constraint' and LinkMapping
settings?
From the description so far it is difficult to say what could be the
problem.

Regards,
/Radek

"Angelo Marguglio" <angelo.marguglio@xxxxxxxxx> wrote in message
news:op.tdd269olzq4ppf@xxxxxxxxxxxxxxxxxxxxx
The cursor is only an aspect of this problem. I make an example: In a
shape-like diagram I have two kinds of node, a circle and a square. I
want
create only connections from circles to squares. When I try to make a
connection outcoming from a square, I can start the creation but I can't
complete it. I'd like to disable this incomplete creation.

Thanks in advance


In data Thu, 27 Jul 2006 17:34:18 +0200, Radek Dvorak <radek.dvorak@xxxxxxxxxxx> ha scritto:

Hi Angelo,

Concerning the "Source End Constraint", is it only a problem of
incorrect
cursor or
is creation of the undesirable connection allowed?

Regards,
/Radek

"Angelo Marguglio" <angelo.marguglio@xxxxxxxxx> wrote in message
news:op.tdcoygdbzq4ppf@xxxxxxxxxxxxxxxxxxxxx
Hi all!
I''m developing a diagram in which I'd like to connect two node by a
connection. I can specify the kind of this connection using an
enumeration
and every kind has an own figure.
In the .gmfmap I have three "Link Mapping" in which I set the kind of
the
connection by a "Feature Seq Initializer". In the generated diagram
there
are three EditPart, one for each link mapping, with an own inner figure.
In runtime I have a problem. When I try to create a new connection, two
links are displayed.
I read a thread about a similar problem, but I didn't find a solution
for
this problem.


I have also a second problem: in my editor the "Source End Constraint"
doesn0t work fine. I'd like to show the disallow cursor when the mouse
is
over a node that I can't connect (as a source).










-- Angelo Marguglio

reply to: angelo.marguglio[at]libero.it