[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Code formatter, specific line wrapping


I have code that currently formatter formats as:

m_bindManager.bind(new Editor(modeCombo), new Provider(m_store,
	P_VARIABLE_TEXT_MODE), true);


i.e. wrapping is inside of "new Provider()" arguments.
I would like to have wrapping on highest possible level, i.e. in this case:


m_bindManager.bind(new Editor(modeCombo),
	new Provider(m_store, P_VARIABLE_TEXT_MODE),
	true);

If any of such wrapper parts of "bind()" invocation also should be wrapped, again wrapping should happen at highest level, i.e. for top MethodInvocation or ClassInstanceCreation arguments.

  Do I miss any option in existing formatter?

I can write such formatting myself, but would like to minimize efforts. Can I provide separate/external wrapping strategy? Or full code formatter should be created?