Using different connections in the same viewer [message #78782] |
Thu, 08 May 2003 16:31  |
Eclipse User |
|
|
|
Hi,
I'd like to use different connections in the same viewer, one with a
PolygonDecoration,
and one with no decoration at all. Now I use the ConnectionCreationToolEntry
class
for both when creating my palette and the result is that all connections are
created with
a PolygonDecoration. I have created two different classes derived from the
AbstractConnectionEditPart but only one is used.
Is it possible to differentiate the connections when I create them in my
Palette? The
factory parameter to the ConnectionCreationToolEntry class is used for the
model, not
the editpart...right??
Thanks
|
|
|
|
Re: Using different connections in the same viewer [message #78815 is a reply to message #78800] |
Thu, 08 May 2003 17:12  |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
I hope you are using the factory.getObjectType() to distinguish between the
two types of connections.
:-)
"Stefan Junsved" <stefan.junsved@comactivity.net> wrote in message
news:b9ef3u$jhl$1@rogue.oti.com...
> I'm sorry for this question. It's been a long day and I know how to solve
> the problem.
>
> /Stefan
>
> "Stefan Junsved" <stefan.junsved@comactivity.net> wrote in message
> news:b9eeqm$jbd$1@rogue.oti.com...
> > Hi,
> >
> > I'd like to use different connections in the same viewer, one with a
> > PolygonDecoration,
> > and one with no decoration at all. Now I use the
> ConnectionCreationToolEntry
> > class
> > for both when creating my palette and the result is that all connections
> are
> > created with
> > a PolygonDecoration. I have created two different classes derived from
the
> > AbstractConnectionEditPart but only one is used.
> >
> > Is it possible to differentiate the connections when I create them in my
> > Palette? The
> > factory parameter to the ConnectionCreationToolEntry class is used for
the
> > model, not
> > the editpart...right??
> >
> > Thanks
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03305 seconds