Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335996 - [Dialogs] TrayDialog must not include tray when saving size
Summary: [Dialogs] TrayDialog must not include tray when saving size
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P2 major (vote)
Target Milestone: 3.7 M6   Edit
Assignee: Susan McCourt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 333684
Blocks:
  Show dependency tree
 
Reported: 2011-02-01 12:55 EST by Markus Keller CLA
Modified: 2011-03-14 06:15 EDT (History)
4 users (show)

See Also:


Attachments
Fix (3.38 KB, patch)
2011-02-14 12:18 EST, Markus Keller CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2011-02-01 12:55:47 EST
+++ This bug was initially created as a clone of Bug #333684 +++

I20110127-2034

The fix for 333684 broke the save/restore size feature in TrayDialogs and brought back bug 131978.

Please add a regression test for this.
Comment 1 Susan McCourt CLA 2011-02-01 19:01:06 EST
sorry 'bout that.  Will look at it for M6.
Comment 2 Markus Keller CLA 2011-02-14 12:18:21 EST
Created attachment 188918 [details]
Fix

This is really a pain. I think you should revert bug 333684 and fix the bug at the source, i.e. fix LaunchConfigurationsDialog#close() to not dispose resources as long as they are still referenced.
Comment 3 Markus Keller CLA 2011-02-14 12:21:11 EST
> Created attachment 188918 [details]
> Fix

Pawel, could you release the LaunchConfigurationsDialog.java part of this?
Comment 4 Dani Megert CLA 2011-02-15 03:43:46 EST
> I think you should revert bug 333684 and fix the bug at
> the source, i.e. fix LaunchConfigurationsDialog#close() to not dispose
> resources as long as they are still referenced.

+1.
Comment 5 Susan McCourt CLA 2011-02-15 12:49:53 EST
Thanks, Markus.  I planned to revert the fix but never investigated the debug code.  Thanks for doing so.

I took the fix for the launch dialog and attached/reopened bug 333684.
This bug is fixed with the revert of the bad fix.  (I know better than to fix a specific problem with a framework solution, just wasn't thinking.)
Comment 6 Remy Suen CLA 2011-02-15 13:08:33 EST
(In reply to comment #5)
> This bug is fixed with the revert of the bad fix.

The changes from Krzysztof for bug 336684 appears to have become collateral damage.
Comment 7 Markus Keller CLA 2011-02-15 13:42:15 EST
> The changes from Krzysztof for bug 336684 appears to have become collateral
> damage.

Indeed (but not with my patch applied to TrayDialog 1.14)-:
Comment 8 Dani Megert CLA 2011-02-16 04:39:55 EST
Fixed in HEAD and verified that this bug and bug 333684 are fixed.