Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to disable an GEF editor
How to disable an GEF editor [message #216975] Mon, 29 May 2006 16:27 Go to next message
Eclipse User
Originally posted by: VolkerSchilling.SchillingSoft.de

Hi @ll!

At a specific point of execution I like to prevent
the user from editing the model by the GEF editor.
The model should only be displayed at this point.

Is this possible?

Best regards
Volker Schilling
Re: How to disable an GEF editor [message #216983 is a reply to message #216975] Mon, 29 May 2006 12:21 Go to previous messageGo to next message
Sebastián Gurin is currently offline Sebastián Gurin
Messages: 43
Registered: July 2009
Member
Hi!

Well, I have not tried it, but I think you can deactivate all the
editPolicies installed in you contentEditPart with the method
EditPolicy.deactivate().

Hope this help you

On Mon, 29 May 2006 18:27:02 +0200
Volker Schilling <VolkerSchilling@SchillingSoft.de> wrote:

> Hi @ll!
>
> At a specific point of execution I like to prevent
> the user from editing the model by the GEF editor.
> The model should only be displayed at this point.
>
> Is this possible?
>
> Best regards
> Volker Schilling
Re: How to disable an GEF editor [message #217361 is a reply to message #216983] Fri, 02 June 2006 22:29 Go to previous message
Eclipse User
Originally posted by: VolkerSchilling.SchillingSoft.de

Hi @ll

I had found a good solution. Use:

getGraphicalViewer().getControl().setEnable(false);

:->

Best Regards
Volker

Sebastian Gurin wrote:

> Hi!
>
> Well, I have not tried it, but I think you can deactivate all the
> editPolicies installed in you contentEditPart with the method
> EditPolicy.deactivate().
>
> Hope this help you
>
> On Mon, 29 May 2006 18:27:02 +0200
> Volker Schilling <VolkerSchilling@SchillingSoft.de> wrote:
>
>> Hi @ll!
>>
>> At a specific point of execution I like to prevent
>> the user from editing the model by the GEF editor.
>> The model should only be displayed at this point.
>>
>> Is this possible?
>>
>> Best regards
>> Volker Schilling
Previous Topic:Vertical Text (Again)
Next Topic:No figure drawn for EditPart
Goto Forum:
  


Current Time: Fri Sep 19 18:01:18 GMT 2014

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

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