@Override public boolean performOk() { GameViewConfiguration.instance().setSuppressPrompt(promptButton.getSelection()); ScriptConfiguration.instance() .getSupressExceptions() .set(suppressScriptExceptionsButton.getSelection()); return true; }
protected Control createContents(Composite parent) { Composite main = new Composite(parent, SWT.NONE); main.setLayout(new GridLayout(1, false)); boolean suppressPrompt = GameViewConfiguration.instance().getSuppressPrompt(); promptButton = new Button(main, SWT.CHECK); promptButton.setText("Supress prompts"); promptButton.setSelection(suppressPrompt); boolean suppressScriptExceptions = ScriptConfiguration.instance().getSupressExceptions().get(); suppressScriptExceptionsButton = new Button(main, SWT.CHECK); suppressScriptExceptionsButton.setText("Suppress Script Exceptions"); suppressScriptExceptionsButton.setSelection(suppressScriptExceptions); return main; }