Skip to main content


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: mail.bjoren.de

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
ComponentEditPolicy(){...})

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!
bjoern
Previous Topic:GEF and Ecore
Next Topic:Seveal node layers
Goto Forum:
  


Current Time: Fri Apr 19 18:52:14 GMT 2024

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

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

Back to the top