Line | |
---|
1 | package org.modelica.mdt.test.util; |
---|
2 | |
---|
3 | |
---|
4 | import org.eclipse.core.runtime.CoreException; |
---|
5 | import org.eclipse.jface.action.IAction; |
---|
6 | import org.eclipse.jface.viewers.ISelection; |
---|
7 | import org.eclipse.ui.IWorkbenchWindow; |
---|
8 | import org.eclipse.ui.IWorkbenchWindowActionDelegate; |
---|
9 | import org.modelica.mdt.test.TestModelicaRoot; |
---|
10 | |
---|
11 | /** |
---|
12 | * Debuggin aid. Runs some code in run() when an button on ze toolbar is clicked |
---|
13 | */ |
---|
14 | public 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.