This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 107297

Summary: Palette window stays open when the navigator shows a REST file even if its editor has been closed
Product: platform Reporter: Ayub Khan <ayubskhan>
Component: PaletteAssignee: Stanislav Aubrecht <saubrecht>
Status: RESOLVED FIXED    
Severity: blocker CC: dsimonek
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 106178    

Description Ayub Khan 2007-06-19 18:10:36 UTC
Background: To fix issue#106178 we are using a back-door approach to associating palette to a dataobject. This causes
following side-effect.

Description: when palette window stays open when the navigator shows a REST file even if its editor has been closed

Solution: Fix PaletteSwitch.java, so that the palette will simply listen to editor windows only and then it should close
when REST editor is closed. 

Risks: there's a slight chance that this fix will cause problems for other people who may depend on this behavior but we
are not aware of any such module.
Comment 1 David Simonek 2007-06-21 15:25:06 UTC
integrated in main trunk:

Checking in PaletteSwitch.java;
/cvs/core/palette/src/org/netbeans/spi/palette/PaletteSwitch.java,v  <--  PaletteSwitch.java
new revision: 1.5; previous revision: 1.4
done

And just btw, I lowered this to P2, P1 is reserved to data loss or crash. I know that this issue is important, but it's
not good to abuse priority.