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

Bug 320938

Summary: [ModelTooling] Design-Time image preview not working
Product: [Eclipse Project] e4 Reporter: Thomas Schindl <tom.schindl>
Component: UIAssignee: Thomas Schindl <tom.schindl>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bokowski
Version: 0.9   
Target Milestone: 4.1 M1   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
patch
none
patch none

Description Thomas Schindl CLA 2010-07-26 13:23:59 EDT
The design time image preview is not working (hovering shows that the url has not been loaded). Looks like I missed that because I always has the Contacts-Bundle in my workspace when launch in an inner.
Comment 1 Thomas Schindl CLA 2010-07-26 13:46:09 EDT
Created attachment 175245 [details]
patch
Comment 2 Thomas Schindl CLA 2010-07-26 13:46:56 EDT
Created attachment 175246 [details]
patch
Comment 3 Thomas Schindl CLA 2010-07-26 14:03:05 EDT
I should probably explain in more detail what is done here. When one hovers an Image-URI in the editor I'm showing the image in a tooltip.

The problem is that I'm currently only looking up the image in the running OSGi-Instance which is the IDE. This is fine in the live-preview but fails at design time because there the image has to be looked up in workspace-projects.

The patch fixes this temporarily by trying to resolve the image in the workspace if looking up in the running instance fails.

I know this is not a blocking issue though.
Comment 4 Thomas Schindl CLA 2010-07-26 14:14:42 EDT
In case I get the +1 from Boris - Remy can you review it ;-)
Comment 5 Boris Bokowski CLA 2010-07-26 14:18:47 EDT
(In reply to comment #3)
> I know this is not a blocking issue though.

Then let's defer this until after the release.
Comment 6 Thomas Schindl CLA 2010-07-26 15:04:12 EDT
ok. I've created a new branch and committed those small fixes there.
Comment 7 Thomas Schindl CLA 2010-07-26 15:09:34 EDT
released to post_40_release branch