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 164783 Details for
Bug 282815
Resource leak in FadeIn class
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch for SnapFeedbackPolicy
282815.txt (text/plain), 1.44 KB, created by
Alexander Nyßen
on 2010-04-13 17:16:35 EDT
(
hide
)
Description:
Patch for SnapFeedbackPolicy
Filename:
MIME Type:
Creator:
Alexander Nyßen
Created:
2010-04-13 17:16:35 EDT
Size:
1.44 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.gef >Index: src/org/eclipse/gef/editpolicies/SnapFeedbackPolicy.java >=================================================================== >RCS file: /cvsroot/tools/org.eclipse.gef/plugins/org.eclipse.gef/src/org/eclipse/gef/editpolicies/SnapFeedbackPolicy.java,v >retrieving revision 1.19 >diff -u -r1.19 SnapFeedbackPolicy.java >--- src/org/eclipse/gef/editpolicies/SnapFeedbackPolicy.java 12 Aug 2005 04:31:19 -0000 1.19 >+++ src/org/eclipse/gef/editpolicies/SnapFeedbackPolicy.java 13 Apr 2010 20:51:23 -0000 >@@ -66,12 +66,9 @@ > super.setOpaque(true); > } > >- /** >- * @see org.eclipse.draw2d.IFigure#getLocalBackgroundColor() >- */ >- public Color getLocalBackgroundColor() { >+ private Color createMixedColor(){ > return FigureUtilities.mixColors( >- super.getLocalBackgroundColor(), >+ getLocalBackgroundColor(), > getParent().getBackgroundColor(), > (double)opacity / FRAMES); > } >@@ -89,7 +86,9 @@ > if (opacity != FRAMES - 1) { > Display display = Display.getCurrent(); > PaletteData pData = new PaletteData(0xFF, 0xFF00, 0xFF0000); >- int fillColor = pData.getPixel(getLocalBackgroundColor().getRGB()); >+ Color localBackgroundColor = createMixedColor(); >+ int fillColor = pData.getPixel(localBackgroundColor.getRGB()); >+ localBackgroundColor.dispose(); > ImageData iData = new ImageData(1, 1, 24, pData); > iData.setPixel(0, 0, fillColor); > iData.setAlpha(0, 0, 255 * opacity / FRAMES);
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 282815
: 164783