예제 #1
0
    @Override
    protected IStatus run(IProgressMonitor monitor) {
      this.monitor = monitor;

      // main.printGrammar();
      try {
        main.checkGrammar();
      } catch (OutOfMemoryError e) {
        Activator.log("out of memory while checking grammar for ambiguity", e);
        main = null; // help the GC in this case
        System.gc();
      }

      monitor.done();
      this.monitor = null;
      return Status.OK_STATUS;
    }
예제 #2
0
 public void init(Grammar grammar, AmbiDexterConfig config) {
   main = new Main(ReportView.this);
   main.setGrammar(grammar);
   main.setConfig(config);
 }