Custom browse controller

I create custom browse controller This controller extends AbstractLookup class. I select this controller in CUBA Studio

obraz

but now I have a problem, I can’t select any injection in eclipse, because I have empty list in injection dialog.

Hi!

Could you check that screen controller extends your custom BasicBrowse. Did you invoke injection dialog in screen controller?

Yes my controller extends BasicBrowse. I attach code BasicBrowse. How can I Invoke injection dialog in screen controller?

package com.haulmont.cuba.gui.components;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.haulmont.cuba.gui.components.Table.Column;
import com.haulmont.cuba.gui.components.Table.ColumnAlignment;

public class BasicBrowse extends AbstractLookup {

public void aligmentNumericColumn(GroupTable<?> groupTable) {
	List<Column> columns = groupTable.getColumns();
	for (Column c : columns) {
		Class<?> clazz = c.getType();
		if (clazz != null)
			if (clazz.equals(BigDecimal.class)) {
				c.setAlignment(ColumnAlignment.RIGHT);

			}

	}
}

@Override
public void init(Map<String, Object> params) {
	// TODO Auto-generated method stub
	super.init(params);
}

}

I reproduced this behavior and it seems bug in our plugin.I have created a YouTrack issue, see the link.
You can manually inject beans in your BasicBrowse controller, and it will work. Basic shortcut for injection dialog in eclipse: “Ctrl-Alt-Shift-I”.