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 - allow custom 'refresh' actions in palette's API
Summary: allow custom 'refresh' actions in palette's API
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Palette (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks: 88400
  Show dependency tree
 
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
Exception Reporter:


Attachments
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/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