| ComponentsPaletteFactory Scramble [message #168682] | 
Fri, 18 January 2008 05:25   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: paolo.italtbs.com 
 
Hello, in my palette I have some elements that are allowed to be placed in  
the stage other that have to be placed only in another specific type of  
element, etc. 
It happened that the model (very large, truly) must have an issue  
somewhere because two palette components became "switched" each other as  
their main container is placed. It means if you select element A you place  
element A on the stage, the same thing with element B. 
If you place container C, you cannot place element B (in C, while you  
should basing from model) you get the "forbidden cursor", and if you  
choose another element C you can place it inside itself (C in C while this  
is forbidden from model) but it istantiates actually an element of type B.  
This is nasty! 
 
I found a solution by manually cut and add some CreationTools in the  
ComponentsPaletteFactory class, I noticed that there were 2 unexpected  
"types.add" in an item and 1 missing into another. 
 
This solutions fits perfectly but I know it's not the optimal one, as a  
lot of people works with our model and often regenerates it... we will  
bring this error along forever, so I'd rather correct the model to force  
it generating a ready-4-work code. 
 
On your opinion where can the model be messed? I've checked the gmfgen gen  
child nodes and numbering, compartments and child nodes look correct in  
there. Must be something akin and near there but really can't find. 
  
Thanks 
 
Paolo
 |  
 |  
  | 
| Re: ComponentsPaletteFactory Scramble [message #168692 is a reply to message #168682] | 
Fri, 18 January 2008 05:46   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: paolo.italtbs.com 
 
I got it, I don't know how I did it in this mess ;) but for everyone that  
may need the info, from the gmfgen file open the "gen diagram.." ->  
"palette components..." nodes, there you'll find defs for all your tools  
and toolgroups: in each of the tools' properties view are listed all the  
generation possibilities enabled for that specific tool. If you miss one  
or want to disable some, go there and modify. 
Results may vary. (joking, but you know it's true hehe)
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.06392 seconds