|
|
|
Re: how to make a node undeletable [message #151267 is a reply to message #151102] |
Mon, 17 September 2007 06:35  |
Eclipse User |
|
|
|
Originally posted by: jan.herriger.gmx.de
Install a ComponentEditPolicy like this:
installEditPolicy(EditPolicy.COMPONENT_ROLE,
new ComponentEditPolicy(){
protected Command getDeleteCommand(GroupRequest request) {
return null;
}
}
);
fan schrieb:
> Arpit, thanks for your answer.
> I tried the way you mentioned, and it works when i choose the "delete
> from model" popup menu. but the node can still be removed when i press
> "delete" shortcut key or choose the system menu "edit/delete".
> so i wonder whether there is another way to solve the problem.
>
> peter Fan
>
|
|
|
Powered by
FUDForum. Page generated in 0.26284 seconds