Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » executing a command while editing a property from the properties view
executing a command while editing a property from the properties view [message #173598] Fri, 22 February 2008 05:07
Eclipse UserFriend
Originally posted by: external.deyaa.adranale.de.bosch.com

Hi,

i have encountered a strange problem and i hope i can explain it well:


i have shapes in my diagram and sub shapes in a "sub diagram"
the shapes have a property which is a list of values. in the subshapes i
don't allow defining new values for this property, but only copying values
from the parent (so the values of subshapes are sub set of the values of
shapes).

To select the values of this property in the subshape, i have a dialog
that pop ups from the properties view. in the dialog the user can select
which values he wants in the sub shape, clicks okay, and the values
returned are saved in the property for this shape (as a comma separated
list).

All the above works fine without any problems.

Now i have a new requirement. if the user is selecting values for the
subshape and he wants to change one of the values of the parent shape
before copying it, he has to close the dialog, search for the parent
shape, edit his values, and comes back to the subshape. To make this
easier, i would like to edit the value of the parent in the dialog of the
subshape. So i provided a special Edit button that pops up a second dialog
to edit the selected value from the list before copying it to the
subshape.
NOW the problem:
when trying to commit the changes of the value of the parent shape (in the
second popup dialog), i execute a SetCommand on the parent shape. the
command executes successfully BUT directly after calling:
editingDomain.getCommandStack().execute(compoundCommand);
the value of the property (of the subshape) in the property view gets
updated!!! and then not get updated when the popup dialog that edits the
property closes (with okay).

I wanted to attach a snapshot of the problem, but I could not do it in the
web-based news portal!!

as a summery the problem is:
during editing a property value from property view, i try to execute a
command (that is not related to this property). The property updates its
value directly after executing the command, and does not update at the
end!!!



I hope i made myself clear

any help please?

Deyaa
Previous Topic:ExtendedMetaData problem with 'Same File For Diagram And Model'
Next Topic:links without sematic model
Goto Forum:
  


Current Time: Sat Aug 30 04:29:18 EDT 2025

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

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

Back to the top