Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 96672 - allow custom 'refresh' actions in palette's API
allow custom 'refresh' actions in palette's API
Product: platform
Classification: Unclassified
Component: Palette
All All
: P2 (vote)
: 6.x
Assigned To: Stanislav Aubrecht
Depends on:
Blocks: 88400
  Show dependency treegraph
Reported: 2007-02-27 11:43 UTC by Stanislav Aubrecht
Modified: 2008-12-22 12:16 UTC (History)
1 user (show)

See Also:
Issue Type: TASK

proposed implementation (6.33 KB, patch)
2007-02-27 11:45 UTC, Stanislav Aubrecht
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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/;
/cvs/core/palette/src/org/netbeans/modules/palette/,v  <--
new revision: 1.13; previous revision: 1.12
Checking in;
/cvs/core/palette/,v  <--
new revision: 1.11; previous revision: 1.10
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
Checking in src/org/netbeans/spi/palette/;
/cvs/core/palette/src/org/netbeans/spi/palette/,v  <--
new revision: 1.4; previous revision: 1.3
Checking in test/unit/src/org/netbeans/spi/palette/;
/cvs/core/palette/test/unit/src/org/netbeans/spi/palette/,v  <--
new revision: 1.6; previous revision: 1.5

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo