Code allignment

After years of using the Intellij I still cannot figure out how to align the code properly
Example page Width is 120, settings are attached  in the image.


            ImageResourceActionCell<String> cell = new ImageResourceActionCell<String>(gridCellAction.getIcon(),
                                                                                       new SelectEvent.SelectHandler()
                                                                                       {
                                                                                           @Override
                                                                                           public void onSelect(
                                                                                                   SelectEvent event)
                                                                                           {
                                                                                               if (action.getFunction() !=
                                                                                                   null)
                                                                                               {
                                                                                                   action.getFunction()
                                                                                                         .execute();
                                                                                               }
                                                                                           }
                                                                                       });
The desiered would be
            ImageResourceActionCell<String> cell = new ImageResourceActionCell<String>(
                    gridCellAction.getIcon(),
                    new SelectEvent.SelectHandler()
                    {
                        @Override
                        public void onSelect(
                                SelectEvent event)
                        {
                            if (action.getFunction() !=null)
                            {
                               action.getFunction().execute();
                            }
                        }
                    });settings.png
Please help, Thanks

0

Please sign in to leave a comment.