|child not selectable [message #196653]
||Fri, 11 July 2008 13:09
Originally posted by: yappalewa.gmail.com|
I made up a compartment with a child but when the popup comes out of the
container, the child placing option is grayed out, I can only place a
widget outside then move it inside with the mouse. But then become
unselectable, what I've done wrong?
|Re: child not selectable [message #196836 is a reply to message #196774]
||Mon, 14 July 2008 08:40
Originally posted by: paolo.paolo.it|
yes, I figured out what the problem was, or at least I solved partially.
it's all due to the fact I de-commented in the xxxEditParts the line
relative to the diagram connections arrows, and to prevent to loose
everytime this I added a "generated not" in all the widgets' editparts.
This was enough to mess up the popup/child creation icon/etc..
I decided to delete all the .diagram project (my only overrides were those
connection arrows and quite a lot of modifications in plugin.xml for
setting project icon, right click contestual action etc, I lost all of
them) but after deletion and fresh regeneration all worked ok.
Anyway, when I place a child node, I can select it but cannot see his
highlighted borders, so that it's not moveable or resizeable, but I'm not
wrong this happens everytime and everytime I forget how to correct this,
will search now in the forum :)
My humble suggestion for gmf plugin creation and code generation, is to
add some feature that also delete from the project the files not requested
any more because sometimes they badly mess up things and you need quite a
lot of work to clean up. This is the case you add a child compartment and
generate code. You will have a xxxNodeEditPart and xxxOtherStuff in many
places, and also xxxNode2EditPart etc. because of the child compartment
opportunity: well, if you decide to remove the child compartment those
xxxNode2... will remain and they really should be removed. I understand
that if you make a custom method or paste in an icon the code generator
shouldn't blindly remove everythong, but some cleanup wizard or a popup
with a question on whether or not to delete those files (like in svn
commit dialogs) would come very handy :)
Powered by FUDForum
. Page generated in 0.02024 seconds