예제 #1
0
 @Override
 public boolean performOk() {
   GameViewConfiguration.instance().setSuppressPrompt(promptButton.getSelection());
   ScriptConfiguration.instance()
       .getSupressExceptions()
       .set(suppressScriptExceptionsButton.getSelection());
   return true;
 }
예제 #2
0
  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;
  }