Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 54963 Details for
Bug 146894
Update manager paints invalid figures
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
proposed patch
Patch_Bugzilla146894 (text/plain), 1.29 KB, created by
Alex Boyko
on 2006-12-03 19:14:46 EST
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Alex Boyko
Created:
2006-12-03 19:14:46 EST
Size:
1.29 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.draw2d >Index: src/org/eclipse/draw2d/DeferredUpdateManager.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.draw2d/src/org/eclipse/draw2d/DeferredUpdateManager.java,v >retrieving revision 1.22 >diff -u -r1.22 DeferredUpdateManager.java >--- src/org/eclipse/draw2d/DeferredUpdateManager.java 5 Apr 2006 14:21:13 -0000 1.22 >+++ src/org/eclipse/draw2d/DeferredUpdateManager.java 3 Dec 2006 23:58:52 -0000 >@@ -57,6 +57,8 @@ > private boolean updating; > private RunnableChain afterUpdate; > >+private int concurrentValidationsNumber = 0; >+ > private static class RunnableChain { > RunnableChain next; > Runnable run; >@@ -147,6 +149,7 @@ > map.put(root, rect); > firePainting(rect, map); > } >+ performValidation(); > root.paint(graphics); > graphics.dispose(); > } >@@ -184,15 +187,16 @@ > if (invalidFigures.isEmpty()) > return; > try { >+ concurrentValidationsNumber++; > IFigure fig; > fireValidating(); > for (int i = 0; i < invalidFigures.size(); i++) { > fig = (IFigure) invalidFigures.get(i); >- invalidFigures.set(i, null); > fig.validate(); > } > } finally { >- invalidFigures.clear(); >+ if (--concurrentValidationsNumber == 0) >+ invalidFigures.clear(); > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 146894
:
54360
|
54567
|
54963
|
55517
|
55530
|
55531
|
55559
|
55871
|
56843