| Summary: | Schema combo box of entity-mappings is gone first time opening an el mapping file | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Nan Li <nan.n.li> | ||||||
| Component: | General | Assignee: | Karen Butzke <karenfbutzke> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | kaloyan, karenfbutzke, neil.hauge | ||||||
| Version: | unspecified | Flags: | neil.hauge:
pmc_approved?
(david_williams) neil.hauge: pmc_approved? (raghunathan.srinivasan) neil.hauge: pmc_approved? (naci.dai) neil.hauge: pmc_approved? (deboer) neil.hauge: pmc_approved? (neil.hauge) kaloyan: pmc_approved+ neil.hauge: pmc_approved? (cbridgha) neil.hauge: review+ |
||||||
| Target Milestone: | 3.2 RC1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | PMC_approved wtp4x | ||||||||
| Attachments: |
|
||||||||
|
Description
Nan Li
Created attachment 209400 [details]
screen shot showing missing schema combo
Oddly, this only happens with eclipse platform 4.2. I think anything that causes the composite to relayout fixes the problem, resizing the JPA Details view for example.
I've attached a screen shot that shows this issue.
In AbstractEntityMappingsDetailsPage.initializeEntityMappingsSection(Composite) if you remove the OrmPackageChooser then the schema combo appears correctly. I have no idea what is happening here. It seems GridLayout does not lay out the widgets correctly if SWT.FILL_HORIZONTAL is used but does it correctly with SWT.FILL_BOTH. Change the following, line 2430: org.eclipse.jpt.common.ui.internal.widgets.Pane.addPane(Composite, Layout) change container.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); to container.setLayoutData(new GridData(GridData.FILL_BOTH)); Created attachment 215325 [details]
proposed patch
We should probably do some cross platform testing on this. Karen...can you test this change on a Mac? Cross platform testing was a success (via Karen). Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such.
UI is not rendering controls in certain places.
Is there a work-around? If so, why do you believe the work-around is insufficient?
Cause panel to redraw by resizing, etc.
How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added?
3 manual testers on 2 platforms.
Give a brief technical overview. Who has reviewed this fix?
See comment 3. Karen and I have reviewed the fix.
What is the risk associated with this fix?
Fix is low risk.
checked in for RC1 |