| Summary: | cannot restore overwrite dialog for entity wizard | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Ram Venkataswamy <ram.venkataswamy> | ||||||||||
| Component: | JPA | Assignee: | Leslie Davis <les.davis> | ||||||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | danny.ju, jolene.moffitt, neil.hauge | ||||||||||
| Version: | unspecified | ||||||||||||
| Target Milestone: | 3.1 M3 | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows 7 | ||||||||||||
| Whiteboard: | |||||||||||||
| Bug Depends on: | |||||||||||||
| Bug Blocks: | 321736 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Ram Venkataswamy
Created attachment 192891 [details]
proposed bug fix patch
(In reply to comment #1) > Created attachment 192891 [details] > proposed bug fix patch At a glance it would seem there are some changes that are missing in the patch, perhaps most notably the DontShowAgainDialog isn't in there. Created attachment 192983 [details]
proposed bug fix patch
Not sure how that happened.
It looks like we should probably be using IDialogSettings instead of manually storing this dialog preferences, or at the very least we should be using the JptJpaUiPlugin to manage the preference metadata. But I think we should go with IDialogSettings. JptJpaUiPlugin is a subclass of AbstractUiPlugin which has a getDialogSettings() method which will return an IDialogSettings which will allow you to store the dialog enablement settings for all of the JPT dialogs based on a unique dialog key. We could use these settings to determine enablement in the DontShowAgainDialog. See the usage of this by org.eclipse.jdt.internal.ui.dialogs.OptionalMessageDialog as an example. Our new dialog should probably be inheriting from org.eclipse.jface.dialogs.MessageDialog instead of Dialog which will help standardize our look as we add new dialogs based on the DontShow dialog. And I think we could rename DontShowAgainDialog to OptionalMessageDialog. Just sounds a bit better. This one will be our own internal OptionalMessageDialog. Created attachment 196499 [details]
patch with additional recommended changes
Moving JPA specific bugs to new JPA component in bugzilla. Created attachment 199360 [details]
proposed bug fix patch
Renamed JptPerferencesPage to JptPreferencesPage.
Patch from bug 321736 committed to head. Verified in Build S-3.1.0RC1-20111111225339 Verified you can restore the overwrite dialog for the entity wizard via the Window>Preferences See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.1_M3 |