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

Bug 267952

Summary: Splash screen build # does not line up
Product: [Eclipse Project] Platform Reporter: Kevin McGuire <Kevin_McGuire>
Component: UIAssignee: Kevin McGuire <Kevin_McGuire>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bokowski, remy.suen
Version: 3.5   
Target Milestone: 3.5 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Screenshot depicting the problem in question.
none
same problem on the Mac. none

Description Kevin McGuire CLA 2009-03-10 15:02:58 EDT
Bug #262088#c12 raised the issue that the build info text should be right justified with the text "Galileo".

This bug is to track this aspect.
Comment 1 Kevin McGuire CLA 2009-04-23 16:53:56 EDT
Fix released to HEAD.

The old implementation was a bit curious as it provided a start location for the build ID string.  However, that string is right justified, so as the build id string changes length it would again not line up.

I changed the code in the EclipseSplashHandler to check the string extent and now interpret the org.eclipse.sdk/plugin.xml property value buildIdLocation as the right justification location (it was the build id string start draw location).

This changes the meaning of buildIdLocation but I don't see any documentation or API aspect to this, in fact the code in EclipseSplashHandler says,

	// find the specified location.  Not currently API
	// hardcoded to be sensible with our current Europa Graphic

@Boris let me know if you see a problem with this.

If we revert to the interpretation of buildIdLocation to be the string start location, then we should use the values:

    <property
          name="buildIdLocation"
          value="285,190">
    </property>
Comment 2 Kevin McGuire CLA 2009-04-24 09:17:32 EDT
So much for being clever, on Vista I get a build id printed in some odd location (far left).  Possibly the text extent is bogus on Vista but should probably just revert this to the better hard coded value.
Comment 3 Kevin McGuire CLA 2009-04-24 09:21:34 EDT
Hmmm, it's not vista, I think it's graphics card DPI setting.
Comment 4 Boris Bokowski CLA 2009-04-24 10:07:49 EDT
(In reply to comment #1)
> This changes the meaning of buildIdLocation but I don't see any documentation
> or API aspect to this, in fact the code in EclipseSplashHandler says,

Would it be safer to introduce a new (non-API) property with a different name? We could honor the old property if available but use the new property (with right-justfied semantics) ourselves.
Comment 5 Kevin McGuire CLA 2009-04-24 10:53:01 EDT
(In reply to comment #4)
> Would it be safer to introduce a new (non-API) property with a different name?
> We could honor the old property if available but use the new property (with
> right-justfied semantics) ourselves.

Isn't ignoring a property a kind of breakage too?  Those who were relying on the old property to do something would find it no longer did.  Since I don't know how people might be depending on the current property I'm finding it hard to guess the effect of change.

In the future we should see if there's a different approach: trying to right justify drawn text with a static graphic seems problematic given differences in fonts, platforms, etc., and of course change in graphic.  I suppose then it'd be worth introducing a new property.
Comment 6 Kevin McGuire CLA 2009-04-24 11:33:01 EDT
Going with left justify and no change to meaning of property.
Released to HEAD
Comment 7 Remy Suen CLA 2009-04-28 14:18:04 EDT
Created attachment 133606 [details]
Screenshot depicting the problem in question.

(In reply to comment #6)
> Going with left justify and no change to meaning of property.
> Released to HEAD

This is still broken on Linux/gtk+ with I20090428-0100 or did I misunderstand the fix in some way?
Comment 8 Kevin McGuire CLA 2009-04-28 14:32:56 EDT
I'm getting the wrong behaviour on XP too.
Comment 9 Boris Bokowski CLA 2009-04-28 14:33:15 EDT
Created attachment 133609 [details]
same problem on the Mac.
Comment 10 Kevin McGuire CLA 2009-04-28 14:41:13 EDT
Looks like the change to org.eclipse.sdk/plugin.xml 1.53 didn't go into the build (not tagged and not in the drop source).

Boris, this is in the sdk project which I don't think we load with the platform-ui module.  Was there something special I was supposed to do to get it into the build?
Comment 11 Boris Bokowski CLA 2009-04-28 14:47:27 EDT
It's part of feature.map. If you were able to commit to org.eclipse.sdk the you should be able to tag and update the map file as well.
Comment 12 Kevin McGuire CLA 2009-04-29 23:01:57 EDT
Change in build
Comment 13 Kevin McGuire CLA 2009-04-29 23:02:36 EDT
Verified in in 0429-0800