Home » Eclipse Projects » GEF » some question about connections....
some question about connections.... [message #43873] |
Wed, 20 November 2002 11:04  |
Eclipse User |
|
|
|
hi all,
i'm just a bit confused(again!) about connection creation(and deletion of
course)...
i have a part which has connections, but when this part gets deleted
connections just becomes mess and don't get deleted. i looked at 'logic' but
couldn't find how this is performed.
and further question, i couldn't find out how to include this deletion(if
there is a command than it's easy, but i couldn't find that command) in
undo-redo stuff...
i know these questions sounds silly, any help is appreciated,
ozgur
|
|
|
Re: some question about connections.... [message #43966 is a reply to message #43873] |
Wed, 20 November 2002 13:22   |
Eclipse User |
|
|
|
Originally posted by: hudsonr.us.eye-bee-em.com
The best thing to do is to handle the deletion of connection in the same
command that deletes the node.
So, this becomes a model problem, and not a problem that EditPolicies can
help you with.
The reason you should do it this was is because the Outline Tree does not
display connection edit parts, and therefore they cannot contribute. The
logic example is being re-worked.
-randy
"Ozgur Kurt" <ozgurkurt@hotmail.com> wrote in message
news:arg9mg$ndt$1@rogue.oti.com...
> hi all,
>
> i'm just a bit confused(again!) about connection creation(and deletion of
> course)...
>
> i have a part which has connections, but when this part gets deleted
> connections just becomes mess and don't get deleted. i looked at 'logic'
but
> couldn't find how this is performed.
>
> and further question, i couldn't find out how to include this deletion(if
> there is a command than it's easy, but i couldn't find that command) in
> undo-redo stuff...
>
> i know these questions sounds silly, any help is appreciated,
>
> ozgur
>
>
|
|
|
Re: some question about connections.... [message #44179 is a reply to message #43966] |
Thu, 21 November 2002 04:42   |
Eclipse User |
|
|
|
Hi Randy,
Sorry I didn't understand this. i'm looking at logic sample, i open a new
file with 4bits adder sample, i select the led at the bottom, and
connections are deleted correctly, i click 'undo' and then they are restored
correctly. in which part of logic sample this functionality is achieved?
thanx,
ozgur
"Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
news:arghps$th6$1@rogue.oti.com...
> The best thing to do is to handle the deletion of connection in the same
> command that deletes the node.
> So, this becomes a model problem, and not a problem that EditPolicies can
> help you with.
>
> The reason you should do it this was is because the Outline Tree does not
> display connection edit parts, and therefore they cannot contribute. The
> logic example is being re-worked.
>
> -randy
>
>
> "Ozgur Kurt" <ozgurkurt@hotmail.com> wrote in message
> news:arg9mg$ndt$1@rogue.oti.com...
> > hi all,
> >
> > i'm just a bit confused(again!) about connection creation(and deletion
of
> > course)...
> >
> > i have a part which has connections, but when this part gets deleted
> > connections just becomes mess and don't get deleted. i looked at 'logic'
> but
> > couldn't find how this is performed.
> >
> > and further question, i couldn't find out how to include this
deletion(if
> > there is a command than it's easy, but i couldn't find that command) in
> > undo-redo stuff...
> >
> > i know these questions sounds silly, any help is appreciated,
> >
> > ozgur
> >
> >
>
>
|
|
| |
Re: some question about connections.... [message #44235 is a reply to message #44208] |
Thu, 21 November 2002 05:36   |
Eclipse User |
|
|
|
silvia,
thank you for your intention. i know about commands. the thing i couldn't
find is, (the mechanism working behind the scenes). just could you please
tell me exactly where is deleting of connections performed(like
Class.method()) and which commands are invoked, i mean the name of class.
there is only one deletecommand in logic, and this not invoked except for
the deleted part itself. but sure some commands are invoked to delete
connections, because when i undo, they come back, which means they are in
commandstack, which also means they are commands.
thanx,
ozz
"Silvia de Beer" <debeer@ri.silicomp.fr> wrote in message
news:3DDCB5D9.4030105@ri.silicomp.fr...
> Look at the .model package and the Command classes. You will find the
> execute member functions, and the corresponding undo and redo functions.
> They work on the model, and correctly delete editParts with their Wires.
>
> Hope this helps,
>
> Silvia
>
> Ozgur Kurt wrote:
> > Hi Randy,
> >
> > Sorry I didn't understand this. i'm looking at logic sample, i open a
new
> > file with 4bits adder sample, i select the led at the bottom, and
> > connections are deleted correctly, i click 'undo' and then they are
restored
> > correctly. in which part of logic sample this functionality is achieved?
> >
> > thanx,
> > ozgur
> >
> >
> >
> > "Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
> > news:arghps$th6$1@rogue.oti.com...
> >
> >>The best thing to do is to handle the deletion of connection in the same
> >>command that deletes the node.
> >>So, this becomes a model problem, and not a problem that EditPolicies
can
> >>help you with.
> >>
> >>The reason you should do it this was is because the Outline Tree does
not
> >>display connection edit parts, and therefore they cannot contribute. The
> >>logic example is being re-worked.
> >>
> >>-randy
> >>
> >>
> >>"Ozgur Kurt" <ozgurkurt@hotmail.com> wrote in message
> >>news:arg9mg$ndt$1@rogue.oti.com...
> >>
> >>>hi all,
> >>>
> >>>i'm just a bit confused(again!) about connection creation(and deletion
> >>
> > of
> >
> >>>course)...
> >>>
> >>>i have a part which has connections, but when this part gets deleted
> >>>connections just becomes mess and don't get deleted. i looked at
'logic'
> >>
> >>but
> >>
> >>>couldn't find how this is performed.
> >>>
> >>>and further question, i couldn't find out how to include this
> >>
> > deletion(if
> >
> >>>there is a command than it's easy, but i couldn't find that command) in
> >>>undo-redo stuff...
> >>>
> >>>i know these questions sounds silly, any help is appreciated,
> >>>
> >>>ozgur
> >>>
> >>>
> >>
> >>
> >
> >
>
|
|
|
Re: some question about connections.... [message #44360 is a reply to message #44179] |
Thu, 21 November 2002 09:56   |
Eclipse User |
|
|
|
Originally posted by: hudsonr.us.eye-bee-em.com
I'm saying that the way the logic example does it is not correct right now.
The code that is in LogicTreeNodeEditPolicy will move into the Logic's
DeleteCommand. The DeleteCommand that deletes a node is responsible for
finding all affected connections, and also deleting them.
In general, it is not safe to assume that you can walk EditParts and reach
everything in the model. The viewer may not display some items, like
connections. Or, the User may be able to invoke filters.
"Ozgur Kurt" <ozgurkurt@hotmail.com> wrote in message
news:ari7ld$pjg$1@rogue.oti.com...
> Hi Randy,
>
> Sorry I didn't understand this. i'm looking at logic sample, i open a new
> file with 4bits adder sample, i select the led at the bottom, and
> connections are deleted correctly, i click 'undo' and then they are
restored
> correctly. in which part of logic sample this functionality is achieved?
>
> thanx,
> ozgur
>
>
>
> "Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
> news:arghps$th6$1@rogue.oti.com...
> > The best thing to do is to handle the deletion of connection in the same
> > command that deletes the node.
> > So, this becomes a model problem, and not a problem that EditPolicies
can
> > help you with.
> >
> > The reason you should do it this was is because the Outline Tree does
not
> > display connection edit parts, and therefore they cannot contribute. The
> > logic example is being re-worked.
> >
> > -randy
> >
> >
> > "Ozgur Kurt" <ozgurkurt@hotmail.com> wrote in message
> > news:arg9mg$ndt$1@rogue.oti.com...
> > > hi all,
> > >
> > > i'm just a bit confused(again!) about connection creation(and deletion
> of
> > > course)...
> > >
> > > i have a part which has connections, but when this part gets deleted
> > > connections just becomes mess and don't get deleted. i looked at
'logic'
> > but
> > > couldn't find how this is performed.
> > >
> > > and further question, i couldn't find out how to include this
> deletion(if
> > > there is a command than it's easy, but i couldn't find that command)
in
> > > undo-redo stuff...
> > >
> > > i know these questions sounds silly, any help is appreciated,
> > >
> > > ozgur
> > >
> > >
> >
> >
>
>
|
|
|
Re: some question about connections.... [message #44391 is a reply to message #44360] |
Thu, 21 November 2002 10:38  |
Eclipse User |
|
|
|
now i got what you mean, in this case best place would be
ComponentEditPolicy descendant.... i'll do this there...
thanx
ozgur
"Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
news:ariq1q$628$1@rogue.oti.com...
> I'm saying that the way the logic example does it is not correct right
now.
>
> The code that is in LogicTreeNodeEditPolicy will move into the Logic's
> DeleteCommand. The DeleteCommand that deletes a node is responsible for
> finding all affected connections, and also deleting them.
>
> In general, it is not safe to assume that you can walk EditParts and reach
> everything in the model. The viewer may not display some items, like
> connections. Or, the User may be able to invoke filters.
>
> "Ozgur Kurt" <ozgurkurt@hotmail.com> wrote in message
> news:ari7ld$pjg$1@rogue.oti.com...
> > Hi Randy,
> >
> > Sorry I didn't understand this. i'm looking at logic sample, i open a
new
> > file with 4bits adder sample, i select the led at the bottom, and
> > connections are deleted correctly, i click 'undo' and then they are
> restored
> > correctly. in which part of logic sample this functionality is achieved?
> >
> > thanx,
> > ozgur
> >
> >
> >
> > "Randy Hudson" <hudsonr@us.eye-bee-em.com> wrote in message
> > news:arghps$th6$1@rogue.oti.com...
> > > The best thing to do is to handle the deletion of connection in the
same
> > > command that deletes the node.
> > > So, this becomes a model problem, and not a problem that EditPolicies
> can
> > > help you with.
> > >
> > > The reason you should do it this was is because the Outline Tree does
> not
> > > display connection edit parts, and therefore they cannot contribute.
The
> > > logic example is being re-worked.
> > >
> > > -randy
> > >
> > >
> > > "Ozgur Kurt" <ozgurkurt@hotmail.com> wrote in message
> > > news:arg9mg$ndt$1@rogue.oti.com...
> > > > hi all,
> > > >
> > > > i'm just a bit confused(again!) about connection creation(and
deletion
> > of
> > > > course)...
> > > >
> > > > i have a part which has connections, but when this part gets deleted
> > > > connections just becomes mess and don't get deleted. i looked at
> 'logic'
> > > but
> > > > couldn't find how this is performed.
> > > >
> > > > and further question, i couldn't find out how to include this
> > deletion(if
> > > > there is a command than it's easy, but i couldn't find that command)
> in
> > > > undo-redo stuff...
> > > >
> > > > i know these questions sounds silly, any help is appreciated,
> > > >
> > > > ozgur
> > > >
> > > >
> > >
> > >
> >
> >
>
>
|
|
|
Goto Forum:
Current Time: Mon Jul 14 14:59:53 EDT 2025
Powered by FUDForum. Page generated in 0.08327 seconds
|