Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 306919

Summary: Request: protected method for overwriting Updatemanager#paint
Product: [Tools] GEF Reporter: Heiko Böttger <heiko.boettger>
Component: GEF-Legacy Draw2dAssignee: 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:

Description Heiko Böttger CLA 2010-03-24 06:06:09 EDT
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
Comment 1 Alexander Nyßen CLA 2014-08-10 17:44:01 EDT
This is already requested in bug #126797.

*** This bug has been marked as a duplicate of bug 126797 ***