Skip to main content



      Home
Home » Eclipse Projects » GEF » Deleting a Connection
Deleting a Connection [message #165433] Tue, 25 January 2005 05:25 Go to next message
Eclipse UserFriend
Originally posted by: awm_abu.yahoo.com

Hey Guys,

I am having trouble deleting connections. Problem is as follows :
I have added installed a CONNECTION_ROLE edit policy in my =

ConnectionEditPart.
This Policy returns the appropriate delete command.
I can see the DeleteCommand is instantiated when I select the Connection=
=

but execute() is never called.
I assumed that pressing the Delete button while the Connection was =

selected would trigger the command to run.
Is this a correct assumption or do I have to map the button to the comma=
nd =

or invoke the delete some other way ?

Thanks,
Alan.

-- =

Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: Deleting a Connection [message #165509 is a reply to message #165433] Tue, 25 January 2005 11:51 Go to previous messageGo to next message
Eclipse UserFriend
Is delete enabled under the Edit menu when you select the connection?

"Alan Morgan" <awm_abu@yahoo.com> wrote in message
news:opsk5lw7zq4f1agp@amorgan00...



Hey Guys,

I am having trouble deleting connections. Problem is as follows :
I have added installed a CONNECTION_ROLE edit policy in my
ConnectionEditPart.
This Policy returns the appropriate delete command.
I can see the DeleteCommand is instantiated when I select the Connection
but execute() is never called.
I assumed that pressing the Delete button while the Connection was
selected would trigger the command to run.
Is this a correct assumption or do I have to map the button to the command
or invoke the delete some other way ?

Thanks,
Alan.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: Deleting a Connection [message #165638 is a reply to message #165509] Wed, 26 January 2005 04:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: awm_abu.yahoo.com

No its not enabled.



On Tue, 25 Jan 2005 11:51:36 -0500, Pratik Shah <ppshah@us.ibm.com> wrot=
e:

> Is delete enabled under the Edit menu when you select the connection?
>
> "Alan Morgan" <awm_abu@yahoo.com> wrote in message
> news:opsk5lw7zq4f1agp@amorgan00...
>
>
>
> Hey Guys,
>
> I am having trouble deleting connections. Problem is as follows :
> I have added installed a CONNECTION_ROLE edit policy in my
> ConnectionEditPart.
> This Policy returns the appropriate delete command.
> I can see the DeleteCommand is instantiated when I select the Connecti=
on
> but execute() is never called.
> I assumed that pressing the Delete button while the Connection was
> selected would trigger the command to run.
> Is this a correct assumption or do I have to map the button to the =

> command
> or invoke the delete some other way ?
>
> Thanks,
> Alan.
>



-- =

Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: Deleting a Connection [message #165713 is a reply to message #165638] Wed, 26 January 2005 13:13 Go to previous message
Eclipse UserFriend
The delete command created when you select the connection is to determine
whether or not that action should be enabled. Check to see if your command
returns false for canExecute(). Otherwise, the problem could be that you
didn't set up your actions right.

"Alan Morgan" <awm_abu@yahoo.com> wrote in message
news:opsk7do4me4f1agp@amorgan00...
No its not enabled.



On Tue, 25 Jan 2005 11:51:36 -0500, Pratik Shah <ppshah@us.ibm.com> wrote:

> Is delete enabled under the Edit menu when you select the connection?
>
> "Alan Morgan" <awm_abu@yahoo.com> wrote in message
> news:opsk5lw7zq4f1agp@amorgan00...
>
>
>
> Hey Guys,
>
> I am having trouble deleting connections. Problem is as follows :
> I have added installed a CONNECTION_ROLE edit policy in my
> ConnectionEditPart.
> This Policy returns the appropriate delete command.
> I can see the DeleteCommand is instantiated when I select the Connection
> but execute() is never called.
> I assumed that pressing the Delete button while the Connection was
> selected would trigger the command to run.
> Is this a correct assumption or do I have to map the button to the
> command
> or invoke the delete some other way ?
>
> Thanks,
> Alan.
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Previous Topic:Problem with IFileEditorInput
Next Topic:(44kB !) Connection visuals update issue (image attachments)
Goto Forum:
  


Current Time: Sat Jun 14 14:18:31 EDT 2025

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

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

Back to the top