Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Resize of the parent won´t resize the child itself
Resize of the parent won´t resize the child itself [message #519827] Wed, 10 March 2010 06:05
StefanK  is currently offline StefanK Friend
Messages: 25
Registered: July 2009
Junior Member
Hi everyone,

I´m currently working on a GEF based GuiEditor for Eclipse. Pretty much of the functionality is already available, but there is still a problem left which bugs me all the time.

The user draws a DialogWindow, which is a container for Simplecomponents like Buttons etc.. If the user changes the location of the DialogWindow, the visual is refreshed and so is the button child. The problem starts now, if i delete the dialogWindow after resizing it and use "undo" to undo the delete, the coordinates of the button are still the same as before the resizing, which leads to a false placement of the button..

the propertyChange Method within my DialogWindowEditPart:
if (evt.getPropertyName().equals(

refreshVisuals() and refreshChildren() are called, if the user resizes the DialogWindow.. I thought that maybe through the refreshChildren() call the refreshVisuals() of the ButtonEditPart may be called or is my thinking not correct?

Same goes for the "table component", which has columns as it´s child. If I resize the table itself, the children won´t be refreshed..

else if (evt.getPropertyName().equals(

Thanks for your help, I appreciate it a lot

Best regards
Previous Topic:Programatically change icon in tabs in the TabbedPropertyView
Next Topic:Getting the editor from a PropertySection
Goto Forum:

Current Time: Sat Apr 21 08:14:02 GMT 2018

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

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