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

Bug 363936

Summary: RUIHandler title attribute not honored
Product: z_Archived Reporter: Will Smythe <smythew>
Component: EDTAssignee: Justin Spadea <jspadea>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Will Smythe CLA 2011-11-16 11:15:21 EST
1. Create a new RUI Handler and specify a "title" for it (e.g. "Here is a nice long title") on the second page of the wizard.

2. Confirm the title field in the RUIHandler is properly setup (it should be). For example: { initialUI = [ configPanel ], onConstructionFunction = start, title = "Here is a nice long title" }

3. Open in the VE, switch to the Preview tab, and launch the handler in an external browser. Note the browser title bar still reflects the name of part, not the title that was specified.

Note: RuiLib.setTitle() works, allowing the title to be set explicitly in code. But, this API was designed for changing the title not setting the initial value.

Note also that the <title></title> in the generated HTML is set to the part name (as expected based on the results).
Comment 1 Will Smythe CLA 2011-11-16 11:16:43 EST
This is a nit, but also a fit-and-finish thing developers will expect to 'just work'.
Comment 2 Lisa Lasher CLA 2011-11-16 16:57:43 EST
Justin, can you look at this one, for a fix by Friday?
Comment 3 Justin Spadea CLA 2011-11-16 17:13:58 EST
Fixed RUITemplate.java, it was using the part ID instead of the title attribute.
Comment 4 Will Smythe CLA 2011-11-17 21:05:20 EST
Looks good.