Math2mat

/home/ythoma/docs/math2mat/svn/wp1/framework/m2mGUI/src/m2m/frontend/threads/QuestaThread.java

Go to the documentation of this file.
00001 
00021 package m2m.frontend.threads;
00022 
00023 import m2m.backend.processing.Errors;
00024 import m2m.backend.processing.ExternalRuns;
00025 import m2m.frontend.ErrorProcessing;
00026 import m2m.frontend.view.Editor;
00027 
00028 public class QuestaThread extends Thread{
00029         private Editor editor;
00030         
00031         public QuestaThread (Editor editor) 
00032         {
00033                 this.editor = editor;
00034         }
00035         
00036         public void run() {
00037                 /*
00038                 if(runAll) {
00039                         synchronized(editor) {
00040                                 try {
00041                                         editor.wait();
00042                                 } catch (InterruptedException e3) {
00043                                         e3.printStackTrace();
00044                                 }               
00045                         }
00046                 }
00047                 */
00048                 Errors.clearError();
00049                 if (ExternalRuns.runQuesta(editor.getM2MProject()))
00050                 {
00051                         if (ExternalRuns.getNbSimErrors()!=0) {
00052 //                              ErrorProcessing.displayError(editor.getShell().getDisplay(),"Simulation contains "+ExternalRuns.getNbSimErrors()+" errors!");
00053                         //      return;
00054                         }
00055                         
00056                 }
00057                 ErrorProcessing.processLastError(editor.getShell().getDisplay());
00058                 
00059         }
00060 }
 All Classes Namespaces Files Functions Variables Enumerations