Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Prevent a figure from being modified
Prevent a figure from being modified [message #219895] Mon, 24 July 2006 06:33 Go to next message
Eclipse UserFriend
Originally posted by: dstamkokeng.gmail.com

Hi,

How do I prevent a figure from being modified? I have a Calendar Figure
in my program and I do not want user to be able to move it around.
Re: Prevent a figure from being modified [message #219937 is a reply to message #219895] Mon, 24 July 2006 13:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lamont_gilbert.rigidsoftware.com

Meo Kok Eng wrote:

> Hi,
>
> How do I prevent a figure from being modified? I have a Calendar Figure
> in my program and I do not want user to be able to move it around.

The architecture will send a move request to the edit part in question.
That edit part should send an unexecutable command in response.
--
Respectfully,

CL Gilbert
"Verily, verily, I say unto you, He that entereth not by the door() into the
sheepfold{}, but climbeth up some other *way, the same is a thief and a
robber."
Re: Prevent a figure from being modified [message #219985 is a reply to message #219895] Mon, 24 July 2006 21:19 Go to previous messageGo to next message
Andreas Herz is currently offline Andreas HerzFriend
Messages: 196
Registered: July 2009
Senior Member
don't install the edit policies for the calendar edit part.

like that:

protected void createEditPolicies()
{
// installEditPolicy(EditPolicy.CONTAINER_ROLE, new SchemaXYLayoutPolicy());
// installEditPolicy(EditPolicy.LAYOUT_ROLE, null);
}


greetings

Andreas
Re: Prevent a figure from being modified [message #220010 is a reply to message #219985] Tue, 25 July 2006 02:27 Go to previous message
Eclipse UserFriend
Originally posted by: dstamkokeng.gmail.com

Hi, Thanks for the replies. I made changes to the commands called by the
policies. Thanks again!
Previous Topic:Adding an editpart without polluting the model
Next Topic:DND between two GEF viewers
Goto Forum:
  


Current Time: Tue Jan 14 18:00:18 GMT 2025

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

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

Back to the top