Changeset 353
- Timestamp:
- 09/14/08 11:58:47 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
jasko.tim.lisp/src/jasko/tim/lisp/views/ReplView.java
r344 r353 106 106 " | Cusp: " + LispPlugin.getVersion() + 107 107 " | Current package: " + pkg); 108 /*109 LispPlugin.getDefault().updateStatusLine("CL: " + swank.getLispVersion() +110 " | Cusp: " + LispPlugin.getVersion() +111 " | Current package: " + pkg); */112 108 if( replPackage != null ){ 113 109 replPackage.setText("Current package: "+pkg); … … 822 818 stepButton.setToolTipText("Step"); 823 819 824 runTestsButton = new Action("Run Tests") { 825 public void run() { 826 SwankInterface swank = LispPlugin.getDefault().getSwank(); 827 if( swank != null && swank.useUnitTest ){ 828 PackageDialog pd = 829 new PackageDialog(ReplView.this.getSite().getShell(), 830 swank.getPackagesWithTests(1000), 831 swank.getlastTestPackage(),true); 832 if (pd.open() == Dialog.OK) { 833 swank.sendRunTests(pd.getPackage(), new TestsRunnable()); 834 } 835 } else { 836 ArrayList<String> strings = new ArrayList<String>(2); 837 strings.add("Cannot run tests,"); 838 } 839 } 840 }; 820 runTestsButton = new TestAction(getSite().getShell()); 841 821 runTestsButton.setImageDescriptor( 842 822 LispImages.getImageDescriptor(LispImages.RUN_TESTS)); jasko.tim.lisp/src/jasko/tim/lisp/views/TestsView.java
r295 r353 1 1 package jasko.tim.lisp.views; 2 3 import java.util.ArrayList;4 2 5 3 import jasko.tim.lisp.LispImages; 6 4 import jasko.tim.lisp.LispPlugin; 7 5 import jasko.tim.lisp.swank.*; 8 import jasko.tim.lisp.views.repl.PackageDialog;9 6 10 7 import org.eclipse.jface.action.Action; 11 8 import org.eclipse.jface.action.IToolBarManager; 12 import org.eclipse.jface.dialogs.Dialog;13 9 import org.eclipse.swt.SWT; 14 10 import org.eclipse.swt.custom.*; … … 111 107 protected void fillToolBar(Composite parent) { 112 108 113 runTestsButton = new Action("Run Tests") { 114 public void run() { 115 SwankInterface swank = LispPlugin.getDefault().getSwank(); 116 if( swank != null && swank.ranAfterLispStart() && swank.useUnitTest ){ 117 PackageDialog pd = 118 new PackageDialog(TestsView.this.getSite().getShell(), 119 swank.getPackagesWithTests(1000), 120 swank.getlastTestPackage(),true); 121 if (pd.open() == Dialog.OK) { 122 swank.sendRunTests(pd.getPackage(), new TestsRunnable()); 123 } 124 } else { 125 ArrayList<String> strings = new ArrayList<String>(2); 126 strings.add("Cannot run tests,"); 127 } 128 } 129 }; 109 runTestsButton = new TestAction(getSite().getShell()); 130 110 runTestsButton.setImageDescriptor( 131 111 LispImages.getImageDescriptor(LispImages.RUN_TESTS)); jasko.tim.lisp/src/jasko/tim/lisp/wizards/NewProjectWiz.java
r352 r353 13 13 import jasko.tim.lisp.LispPlugin; 14 14 import jasko.tim.lisp.builder.LispNature; 15 import jasko.tim.lisp.views.*;16 15 17 16 import org.eclipse.jface.viewers.*; … … 223 222 224 223 monitor.worked(2); 225 monitor.done();/* 226 ReplView rv = ReplView.getInstance(); 227 if (rv != null) { 228 rv.switchPackage(pkg); 229 }*/ 224 monitor.done(); 230 225 } // void doFinish(...) 231 226
