Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GEF Delete-Command: Multi Selection
GEF Delete-Command: Multi Selection [message #241014] Mon, 28 January 2008 00:13
Eclipse UserFriend
Originally posted by:

it seems i have my gef-days this week :)

i am facing the following problem:

i have a gef modeller with edit parts similar to the gef-example modeller,
lets say the shape modeler. i have delete-support via an the
ActionFactory.DELETE-retargetable action and it works..

i use the componenteditpolicy for the edit parts:
installEditPolicy(EditPolicy.COMPONENT_ROLE, new

if more than one editpart is selected and i press DEL, they will be
deleted. however, i would like to have a confirmation dialog for this
deletion (ok/cancel). How can I arrange that? If I do it in the editpart's
deleteCommand-execute method, the dialog pops up for _every_ selected item
instead of one ok/cancel dialog for all.

I read something in the web about the preferencestore to set that and that
gef internally uses an compoundCommand for the n single delete commands.
However, I didnt find a way to solve my prob.
thanks for your help!
Previous Topic:GEF and Ecore
Next Topic:Seveal node layers
Goto Forum:

Current Time: Sat Apr 21 04:11:44 GMT 2018

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

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