| Summary: | Request: protected method for overwriting Updatemanager#paint | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Heiko Böttger <heiko.boettger> |
| Component: | GEF-Legacy Draw2d | Assignee: | gef-inbox <gef-inbox> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | nyssen |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
This is already requested in bug #126797. *** This bug has been marked as a duplicate of bug 126797 *** |
Build Identifier: I tried to create my own implementation of an org.eclipse.draw2d.DeferredUpdateManager, which has some additional events to intercept and custom the paint-reqests. For optimization reasons I need to beable to customize the #paint-method as it is done in the DeferredUpdateManager. This is impossible since the #paint-method is package private and directly delegates to the #performUpdate(Rectangle)-method. Is it possible to make the method public or redirect the call to a protected-method #handlePaint(gc). -- current implementation -- void paint(GC gc) { performUpdate(new Rectangle(gc.getClipping())); } -- requested change -- void paint(GC gc) { handlePaint(gc); } protected void handlePaint(GC gc) { performUpdate(new Rectangle(gc.getClipping())); } Reproducible: Always