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 225619 - Make onSave functionality extensible / expose hooks
Summary: Make onSave functionality extensible / expose hooks
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar (show other bugs)
Version: 7.3
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-01 02:25 UTC by abien
Modified: 2016-07-07 07:30 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description abien 2013-02-01 02:25:47 UTC
Product Version = NetBeans IDE 7.3 RC1 (Build 201301240957)
Operating System = Mac OS X version 10.8.2 running on x86_64
Java; VM; Vendor = 1.7.0_12-ea
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.0-b28

Currently onSave is able to format the code (what is great). It would be useful to support generic actions.

A possible usecase: hotdeployment of archives to an application server or performing style checks / custom static analysis
Comment 1 markiewb 2013-09-25 22:21:20 UTC
@Adam: You could write a plugin for that. The API is public

https://netbeans.org/bugzilla/show_bug.cgi?id=140719
Comment 2 abien 2013-09-29 01:11:23 UTC
Sure! But I think it should be a part of NB. Otherwise we will endup as Eclipse :-)
Comment 3 markiewb 2013-09-29 16:24:19 UTC
(In reply to abien from comment #2)
> Sure! But I think it should be a part of NB. Otherwise we will endup as
> Eclipse :-)

You could also write the code and contribute to the NetBeans sources. Patches are always welcome as I experienced. This way it can be included by default.
Comment 4 Martin Balin 2016-07-07 07:30:55 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss