Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Avoid the deletion of a compartment
Avoid the deletion of a compartment [message #183038] Tue, 15 April 2008 06:28 Go to next message
Eclipse UserFriend
Hello,

Is it possible to disable the deletion of a compartment at the model level?

I find that a bit weird that we have "delete from model" for a
compartment because the user can't recreate one and what the utility of
deleting a compartment?
Re: Avoid the deletion of a compartment [message #183529 is a reply to message #183038] Thu, 17 April 2008 18:39 Go to previous message
Eclipse UserFriend
In class Xxx_CompartmentItemSemanticEditPolicy extends
YyyBaseItemSemanticEditPolicy {
add this method

protected Command getSemanticCommand(IEditCommandRequest request) {
if (request instanceof DestroyRequest) {
return null;
}
return super.getSemanticCommand(request);
}

Lucian
Previous Topic:use findReplaceDocumentAdapter with GMF documents
Next Topic:Remove Scroll Bars from Compartment
Goto Forum:
  


Current Time: Sun Jul 27 03:22:07 EDT 2025

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

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

Back to the top