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 96672

Summary: allow custom 'refresh' actions in palette's API
Product: platform Reporter: Stanislav Aubrecht <saubrecht>
Component: PaletteAssignee: Stanislav Aubrecht <saubrecht>
Status: RESOLVED FIXED    
Severity: blocker CC: dkaspar
Priority: P2 Keywords: API, API_REVIEW_FAST
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Bug Depends on:    
Bug Blocks: 88400    
Attachments: proposed implementation

Description Stanislav Aubrecht 2007-02-27 11:43:56 UTC
palette providers need to be notified and/or invoke their own logic when the
palette content is being refreshed, for example when user invoked 'Refresh'
action from palette's popup menu.

the proposed solution is to add Action getRefreshAction() into PaletteActions
abstract class. the method will provide an action that will be invoked when the
palette content is refreshed. the default implementation returns null.
Comment 1 Stanislav Aubrecht 2007-02-27 11:45:32 UTC
Created attachment 38942 [details]
proposed implementation
Comment 2 Stanislav Aubrecht 2007-03-05 09:12:59 UTC
if there are no comments, i'll integrate it tomorrow
Comment 3 Stanislav Aubrecht 2007-03-06 09:24:53 UTC
integrated into trunk:

Checking in src/org/netbeans/modules/palette/DefaultModel.java;
/cvs/core/palette/src/org/netbeans/modules/palette/DefaultModel.java,v  <-- 
DefaultModel.java
new revision: 1.13; previous revision: 1.12
done
Checking in manifest.mf;
/cvs/core/palette/manifest.mf,v  <--  manifest.mf
new revision: 1.11; previous revision: 1.10
done
Checking in api/doc/changes/apichanges.xml;
/cvs/core/palette/api/doc/changes/apichanges.xml,v  <--  apichanges.xml
new revision: 1.15; previous revision: 1.14
done
Checking in src/org/netbeans/spi/palette/PaletteActions.java;
/cvs/core/palette/src/org/netbeans/spi/palette/PaletteActions.java,v  <-- 
PaletteActions.java
new revision: 1.4; previous revision: 1.3
done
Checking in test/unit/src/org/netbeans/spi/palette/ModelTest.java;
/cvs/core/palette/test/unit/src/org/netbeans/spi/palette/ModelTest.java,v  <-- 
ModelTest.java
new revision: 1.6; previous revision: 1.5
done