Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Impossible to see Image (Icons defined in Application.e4Xmi or image loaded in the providers are not visible)
Impossible to see Image [message #1817648] Wed, 27 November 2019 09:42 Go to next message
antonio guillen is currently offline antonio guillenFriend
Messages: 60
Registered: January 2014
Member
HI all,

I have a problem with images:


  1. Application.e4xmi
    All the icons defined in Application.e4xmi are not visible n the application: Cf images from Application.e4xmi
    index.php/fa/36828/0/
    and from the browser.
    index.php/fa/36829/0/
  2. Images loaded in providers

    Same problem with for example the icons for items in the treeviewer:

    Using the following code:

     if(element instanceof Customer) return SWT_Util_ResourceManager.loadImage(ExplorerPart.display,"icons/full16/Customer.png");


    and

    	public static Image loadImage( Display display, String name ) {
    		Image result = null;
    		InputStream stream = SWT_Util_ResourceManager.class.getClassLoader().getResourceAsStream( name );
    		if( stream != null ) {
    			try {
    				result = new Image( display, stream );
    			} finally {
    				try {
    					stream.close();
    				} catch( IOException unexpected ) {
    					throw new RuntimeException( "Failed to close image input stream", unexpected );
    				}
    			}
    		}
    		return result;
    	}
    


    The items of the treeviewer have no icons like in the following image
    index.php/fa/36829/0/



Have you an idea from where come the problem?

Tanks for your help

Antonio
Re: Impossible to see Image [message #1817732 is a reply to message #1817648] Thu, 28 November 2019 10:12 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,

please use browser developers tools to check the network requests for images and the HTML DOM.

Best regards,
Ivan
Re: Impossible to see Image [message #1817764 is a reply to message #1817732] Thu, 28 November 2019 17:20 Go to previous message
antonio guillen is currently offline antonio guillenFriend
Messages: 60
Registered: January 2014
Member
HI Ivan

Thanks for your answer. But I am sorry because I don't understand your ansewer. Please can you explain me want you expect.

Best reagards

Antonio
Previous Topic:E4/RAP Compatibility Layer Workbench
Next Topic:AWT setStroke
Goto Forum:
  


Current Time: Sat Jul 27 15:46:07 GMT 2024

Powered by FUDForum. Page generated in 0.03058 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top