Re: Hook into Java code formatter?

Benno Markiewicz <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <CAA_aP4i0j-L6H19okCSw-JnW5uWYa8Q6dFAU3QCrbLo3o2KzsA@mail.gmail.com>
I am not aware of such extension point yet.

In my plugin https://github.com/markiewb/eclipsecodeformatter_for_netbeans
I simply add another menu entry for it.

With kind regards, markiewb

2016-09-19 0:50 GMT+02:00 thislooksfun <[email protected]>:

> Hello NetBeans community!
>
> I'm trying to write a plugin to add a couple more options to the Java code
> formatter. They basically work now, but they are applied on save, not on
> format. Is there a way to run my code after the built-in Java formatter
> runs?
>
> For example: If the user were to click on
> Code:
> Source > Format
>
> , I want the default formatter to run - as it does now - but then run my
> code afterwards. Is this possible to do in a plugin, or do I need to edit
> the base code?
>
> Thanks,
> -tlf
> P.S. I'm fairly sure this is the right place for this question, but if
> it's not please let me know.[/code]
>
>
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.