On Sun, Nov 20, 2011 at 10:02 PM, Aliaksandr Autayeu
<[email protected]> wrote:
> This plugin connects Eclipse code formatter to IDEA. It is not a conversion
> of formatting settings, nor does it converts the settings. I had to get
> Eclipse, set up OpenNLP project there, import .xml file with settings from
> the site, then point the plugin to settings. Not a big deal for me, but may
> be a deal-breaker for somebody. The advantage is 100% compliance with
> project code formatting rules.
>
> By the way, the example on the page should be changed to have "catch" on
> the same line with the closing bracket ;)
>
> from this:
>
> } catch(NumberFormatException e) {
>
> to this:
>
> } catch(NumberFormatException e) {

They're the same!!!

>
> It's easy to test this - import the OpenNLP-Eclipse-Formatter.xml settings
> from the site into Eclipse, copy-paste the example, format, see :)
>
> Also, existing code base does not conform to this standard :) And, although
> I would add bracket forcing for "for" and "if" and others similar
> statements to the current code formatting standard (as a safety measure I
> explained earlier) before reformatting anything, the best example of even
> the current code format would be a formatted code base itself. And yes, a
> check-in hook to be sure it remains so :)
>
> Aliaksandr
>
> On Sun, Nov 20, 2011 at 1:11 AM, Jörn Kottmann <[email protected]> wrote:
>
>> On 11/20/11 12:50 AM, Aliaksandr Autayeu wrote:
>>
>>> The solution for IDEA is this plugin:
>>> http://plugins.intellij.net/**plugin/?idea&id=6546<http://plugins.intellij.net/plugin/?idea&id=6546>,
>>>  which allows using
>>> Eclipse code formatter with OpenNLP formatting settings. I'm trying it now
>>> and it seems to work.
>>>
>>>
>>>
>> Is it possible to export it for IDEA? Otherwise we should add this link
>> to the page.
>>
>> Jörn
>>

Reply via email to