Suppose that code :
Command provisionHostCommand = new Command() {
@Override
public void execute() {
final List<Host> hosts = new ArrayList<Host>(display.getSelectionModel().getSelectedSet());
eventBus.fireEvent(new ProvisioningHostEvent(hosts));
}
};
Take a look about the indention. There’s 4 spaces for the Command anonymous class. I have my c-basic-offset set to 2. How can I reduce the indentation space in a anonymous class ?
Thanks.
Well, this seems to work for me:
I’m not quite sure why, though, I’ve looked at the documentation and it seems to suggest that anonymous classes should only be indented by
c-basic-offset. Perhaps they’re indented twice because of the opening curly brace?Edit: How about this workaround from http://www.mail-archive.com/jde@sunsite.auc.dk/msg01159.html?