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 105570 - customizable 'Reset Palette' action
Summary: customizable 'Reset Palette' action
Status: VERIFIED 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: 105561
  Show dependency tree
 
Reported: 2007-06-04 13:56 UTC by Stanislav Aubrecht
Modified: 2008-12-22 13:53 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
proposed implementation (7.96 KB, patch)
2007-06-04 13:59 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-06-04 13:56:47 UTC
it is desired to have an option to customize the 'reset palette' action which is
invoked from palette's popup menu or from palette manager window.

i propose to extend the PaletteAction abstract class by adding method
getResetAction() where palette providers can define their down 'reset' logic.
Comment 1 Stanislav Aubrecht 2007-06-04 13:59:07 UTC
Created attachment 43183 [details]
proposed implementation
Comment 2 Stanislav Aubrecht 2007-06-11 09:13:49 UTC
if there are no objections, i'll integrate tomorrow
Comment 3 Stanislav Aubrecht 2007-06-12 10:23:30 UTC
integrated

Checking in manifest.mf;
/cvs/core/palette/manifest.mf,v  <--  manifest.mf
new revision: 1.13; previous revision: 1.12
done
Checking in api/doc/changes/apichanges.xml;
/cvs/core/palette/api/doc/changes/apichanges.xml,v  <--  apichanges.xml
new revision: 1.18; previous revision: 1.17
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.5; previous revision: 1.4
done
Checking in src/org/netbeans/modules/palette/Utils.java;
/cvs/core/palette/src/org/netbeans/modules/palette/Utils.java,v  <--  Utils.java
new revision: 1.15; previous revision: 1.14
done
Checking in test/unit/src/org/netbeans/spi/palette/PaletteControllerTest.java;
/cvs/core/palette/test/unit/src/org/netbeans/spi/palette/PaletteControllerTest.java,v
 <--  PaletteControllerTest.java
new revision: 1.6; previous revision: 1.5
done
Comment 4 Petr Chytil 2008-10-16 15:31:11 UTC
Reset palette action is there and works fine -> verified.

Product Version: NetBeans IDE 6.5 RC1 (Build 200810151402)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133
System: Mac OS X version 10.5.5 running on i386; MacRoman; en_US (nb)
Userdir: /Users/petr/.netbeans/6.5rc1