source: trunk/org.modelica.mdt.test/src/org/modelica/mdt/test/util/ManualRunner.java @ 171

Last change on this file since 171 was 171, checked in by boris, 19 years ago
  • updated regression tests
File size: 1.0 KB
Line 
1package org.modelica.mdt.test.util;
2
3
4import org.eclipse.core.runtime.CoreException;
5import org.eclipse.jface.action.IAction;
6import org.eclipse.jface.viewers.ISelection;
7import org.eclipse.ui.IWorkbenchWindow;
8import org.eclipse.ui.IWorkbenchWindowActionDelegate;
9import org.modelica.mdt.test.TestModelicaRoot;
10
11/**
12 * Debuggin aid. Runs some code in run() when an button on ze toolbar is clicked
13 */
14public class ManualRunner implements IWorkbenchWindowActionDelegate
15{
16
17    class foo extends TestModelicaRoot
18    {
19        public void setUp() throws CoreException
20        {
21            super.setUp();
22        }
23    }
24   
25    public ManualRunner() 
26    {
27    }
28   
29    /**
30     * Put the code you want to run on click here!
31     */
32    public void run(IAction action) 
33    {
34        foo Foo = new foo();
35       
36        try {
37            Foo.setUp();
38            Foo.testChangesToWorkspace();
39        } catch (CoreException e) {
40            // TODO Auto-generated catch block
41            e.printStackTrace();
42        }
43       
44    }
45
46    public void selectionChanged(IAction action, ISelection selection) 
47    {
48    }
49
50    public void dispose() 
51    {
52    }
53
54    public void init(IWorkbenchWindow window) 
55    {
56    }
57}
Note: See TracBrowser for help on using the repository browser.