JENKINS-17416 - Improve Wipe Out Workspace label
the trunk is toward 1.513-SNAPSHOT
Merge pull request #760 from mpapo/JENKINS-17416

JENKINS-17416 - Improve Wipe Out Workspace label
Fixing StringIndexOutOfBoundsException

I'm not really sure what this code is doing or what ID is supposed to look like. So this is just a minimum-intrusion change to avoid an exception.

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.substring(String.java:1875)
        at hudson.tasks.junit.PackageResult.findCorrespondingResult(PackageResult.java:86)
        at hudson.tasks.junit.TestResult.findCorrespondingResult(TestResult.java:295)
        at hudson.tasks.test.AbstractTestResultAction.findCorrespondingResult(AbstractTestResultAction.java:183)
        at hudson.tasks.test.TestResult.getResultInBuild(TestResult.java:162)
        at hudson.tasks.junit.History.getList(History.java:82)
        at hudson.tasks.junit.History$1.createDataSet(History.java:105)
        at hudson.tasks.junit.History$GraphImpl.createGraph(History.java:169)
        at hudson.util.Graph.render(Graph.java:87)
        at hudson.util.Graph.doPng(Graph.java:98)
Simplification without changing the semantics
we want to prefer *.jpi over *.hpi, but the code was other way around
[JENKINS-13995]

Now that the context menu is open only when clicking 'v', the tooltip on model link should
be displayed as soon as the mouse hovers over it.
[JENKINS-13995]

Made the 'v' icon bigger to increase the hit test area, and improved the alignment
logic so that the text and the 'v' icon gets vertically aligned.
Elements passed in are already extended via Prototype
Additional 'inside' class allows pre-allocation of the context menu space
Modifying the breadcrumb context menu so that it also requires clicking 'v'.
Breadcrumb is reworked to show descendants to provide additional navigational shortcuts.

Object that implements ModelObjectWithChildren can expose its children in the breadcrumb.
BUG: z-index of the context menu must be bigger than that of the menu selector
BUG: z-index of the context menu must be bigger than that of the menu selector.

And both values need to be still bigger than the z-index of the top sticker
since the breadcrumb bar is on the top-sticker
improving the sample to cover ModelObjectWithChildren
implemented ModelObjectWithChildren in various model object implementations
adding more ModelObjectWithChildren implementations
Use transparent background in the title logo.

This prevents one pixel height difference between the logo and the title
bar background.
Forgot to commit this image.
Marked various mode-link as inside.

Observations:

- When marked inside, moving the mouse to <A> and clicking the context menu becomes easier,
  because you can move the mouse toward the hot spot area and it'll activate.
  Otherwise you have to move the mouse over to <A>, then move the mouse on the side, click it,
  then click the menu, which adds cognitive stress.

- Marking model link as inside creates an empty space to the right of <A>, which looks
  odd if hyperlinks appear inline or if some other text follows it.

Given that, my guiding principle for this change is:

- any model link that is the last child of a block element gets marked as inside
- I've adjust a few text to get rid of the single-letter training text after a model link,
  like "(#3)" to "- #3"
- If another inline element follows a model link, leave it as is.
  This does create an ugly overlap.