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 193953 Details for
Bug 342777
ImageProvider needs to support a listener mechanism
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 to fix action extension images after build #290
SapphireActionSystemPart.java_patch.txt (text/plain), 2.12 KB, created by
Greg Amerson
on 2011-04-23 07:42:38 EDT
(
hide
)
Description:
Patch to fix action extension images after build #290
Filename:
MIME Type:
Creator:
Greg Amerson
Created:
2011-04-23 07:42:38 EDT
Size:
2.12 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.sapphire.ui >Index: src/org/eclipse/sapphire/ui/SapphireActionSystemPart.java >=================================================================== >RCS file: /cvsroot/technology/org.eclipse.sapphire/plugins/org.eclipse.sapphire.ui/src/org/eclipse/sapphire/ui/SapphireActionSystemPart.java,v >retrieving revision 1.5 >diff -u -r1.5 SapphireActionSystemPart.java >--- src/org/eclipse/sapphire/ui/SapphireActionSystemPart.java 20 Apr 2011 05:40:24 -0000 1.5 >+++ src/org/eclipse/sapphire/ui/SapphireActionSystemPart.java 23 Apr 2011 11:33:23 -0000 >@@ -16,6 +16,7 @@ > import java.util.concurrent.CopyOnWriteArrayList; > > import org.eclipse.jface.resource.ImageDescriptor; >+import org.eclipse.sapphire.modeling.ImageData; > import org.eclipse.sapphire.modeling.el.FailSafeFunction; > import org.eclipse.sapphire.modeling.el.Function; > import org.eclipse.sapphire.modeling.el.FunctionContext; >@@ -80,13 +81,17 @@ > > for( ISapphireActionImage image : def.getImages() ) > { >- final Function imageFunction = FailSafeFunction.create( image.getImage().getContent(), Literal.create( ImageDescriptor.class ) ); >+ final Function imageFunction = FailSafeFunction.create( image.getImage().getContent(), Literal.create( ImageData.class ) ); > final FunctionResult imageFunctionResult = imageFunction.evaluate( this.functionContext ); >- final ImageDescriptor img = (ImageDescriptor) imageFunctionResult.value(); >+ ImageData data = (ImageData) imageFunctionResult.value(); > >- if( img != null ) >+ if( data != null ) > { >- this.images.add( img ); >+ final ImageDescriptor img = ImageDescriptor.createFromImageData(new org.eclipse.swt.graphics.ImageData(data.contents())); >+ if (img != null) >+ { >+ this.images.add( img ); >+ } > } > > imageFunctionResult.dispose();
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 342777
:
193953
|
193954