[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: Problem with repaint()
|
I cannot say what might be wrong if I don't see your code.
In my simple editor I've got:
[code]
protected void refreshVisuals() {
Rectangle bounds = new Rectangle(getCastedModel().getLocation(),
getCastedModel().getSize());
((GraphicalEditPart) getParent()).setLayoutConstraint(this,
getFigure(), bounds);
super.refreshVisuals();
}
[/code]
So as you see I don't invoke the repaint method anywhere.
Hope this helps :)
Jakub Jurkiewicz
Oliver Madlener wrote:
Hello everyone,
I got a problem refreshing the visuals for my editor view. After
deleting objects, that are represented as single figures drawn on a
freeform-layer, the figure stays on the layer.
In the refreshVisuals() I do call getFigure.repaint().
I can use the delete() Action in the context-menue, . The figure gets
removed only if I click it again, or the Figure gets out of bounds (on
the screen)- I am quite sure that this is a really silly bug, but I just
can not get a finger on the spot.
Help is very appreciated!
Cheers
Oliver