/** * Change the display style of parameters for the pressed TextBox if exists, or for all otherwise. * * @param newStyle the new display style */ private void methodViewChangeClicked(ParametersViewStyle newStyle) { if (pressedTextBox instanceof TextBoxMethod) ((TextBoxMethod) pressedTextBox).setParametersViewStyle(newStyle); else for (final AbstractEntityView ev : parent.getSelectedEntities()) if (ev instanceof ClassEntityView) { ((ClassEntityView) ev).methodViewChange(newStyle); } else { JOptionPane.showMessageDialog(null, "ERREUR #875"); } }
/** * Change the display style of parameters for all methods. * * @param newStyle the new display style */ public void methodViewChange(ParametersViewStyle newStyle) { for (final TextBoxMethod tbm : methodsView) tbm.setParametersViewStyle(newStyle); }