Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » diagram becomes readonly after appending a new view
diagram becomes readonly after appending a new view [message #72424] Wed, 01 November 2006 02:42 Go to next message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

I'm creating/removing a compartment using a canonical edit policy.
Delete works. When I execute the creation command, the whole diagram
becomes read only. The view gets created, but I don't see it on the
diagram.

Creation is done as follows:

CreateViewRequest.ViewDescriptor -> CreateCommand -> ICommandProxy ->
CanonicalEditPolicy#executeCommand

As a side question, why does the CanonicalPolicy make the newly created
views immutable?

thanks for your help
vlad
Re: diagram becomes readonly after appending a new view [message #73039 is a reply to message #72424] Wed, 01 November 2006 14:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

I was having an out of bounds exceptions when creating the figure for that
view.

Anyways, could someone explain why the diagram had become read-only?

thanks
vlad

On Wed, 01 Nov 2006 02:42:29 -0500, Vlad Ciubotariu wrote:

> I'm creating/removing a compartment using a canonical edit policy.
> Delete works. When I execute the creation command, the whole diagram
> becomes read only. The view gets created, but I don't see it on the
> diagram.
>
> Creation is done as follows:
>
> CreateViewRequest.ViewDescriptor -> CreateCommand -> ICommandProxy ->
> CanonicalEditPolicy#executeCommand
>
> As a side question, why does the CanonicalPolicy make the newly created
> views immutable?
>
> thanks for your help
> vlad
Re: diagram becomes readonly after appending a new view [message #73057 is a reply to message #73039] Wed, 01 November 2006 15:54 Go to previous message
Eclipse UserFriend
Vlad,

It doesn't really make sense to me that the diagram would become
read-only. Are you sure that it wasn't in some state where it just
wouldn't do anything because of the errors you were getting so it
appeared that it was read-only? I have seen that happen before.

- Cherie

Vlad Ciubotariu wrote:
> I was having an out of bounds exceptions when creating the figure for that
> view.
>
> Anyways, could someone explain why the diagram had become read-only?
>
> thanks
> vlad
>
> On Wed, 01 Nov 2006 02:42:29 -0500, Vlad Ciubotariu wrote:
>
>> I'm creating/removing a compartment using a canonical edit policy.
>> Delete works. When I execute the creation command, the whole diagram
>> becomes read only. The view gets created, but I don't see it on the
>> diagram.
>>
>> Creation is done as follows:
>>
>> CreateViewRequest.ViewDescriptor -> CreateCommand -> ICommandProxy ->
>> CanonicalEditPolicy#executeCommand
>>
>> As a side question, why does the CanonicalPolicy make the newly created
>> views immutable?
>>
>> thanks for your help
>> vlad
>
Previous Topic:How to move (drag) items on a border ?
Next Topic:[Announce] Extending your DSM by leveraging the GMF Runtime
Goto Forum:
  


Current Time: Mon Jul 14 12:41:37 EDT 2025

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

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

Back to the top