@@ -194,7 +194,6 @@ public boolean test(SketchController sketch) {
194
194
Runnable presentHandler ;
195
195
private Runnable runAndSaveHandler ;
196
196
private Runnable presentAndSaveHandler ;
197
- private Runnable stopHandler ;
198
197
Runnable exportHandler ;
199
198
private Runnable exportAppHandler ;
200
199
private Runnable timeoutUploadHandler ;
@@ -1558,7 +1557,6 @@ private void resetHandlers() {
1558
1557
presentHandler = new BuildHandler (true );
1559
1558
runAndSaveHandler = new BuildHandler (false , true );
1560
1559
presentAndSaveHandler = new BuildHandler (true , true );
1561
- stopHandler = new DefaultStopHandler ();
1562
1560
exportHandler = new DefaultExportHandler ();
1563
1561
exportAppHandler = new DefaultExportAppHandler ();
1564
1562
timeoutUploadHandler = new TimeoutUploadHandler ();
@@ -1718,7 +1716,6 @@ public void handleRun(final boolean verbose, Runnable verboseHandler, Runnable n
1718
1716
}
1719
1717
1720
1718
private void handleRun (final boolean verbose , Predicate <SketchController > shouldSavePredicate , Runnable verboseHandler , Runnable nonVerboseHandler ) {
1721
- internalCloseRunner ();
1722
1719
if (shouldSavePredicate .test (sketchController )) {
1723
1720
handleSave (true );
1724
1721
}
@@ -1787,42 +1784,20 @@ public void addLineHighlight(int line) throws BadLocationException {
1787
1784
getCurrentTab ().getTextArea ().setCaretPosition (getCurrentTab ().getTextArea ().getLineStartOffset (line ));
1788
1785
}
1789
1786
1790
- private class DefaultStopHandler implements Runnable {
1791
- public void run () {
1792
- // TODO
1793
- // DAM: we should try to kill the compilation or upload process here.
1794
- }
1795
- }
1796
-
1797
1787
1798
1788
/**
1799
1789
* Implements Sketch → Stop, or pressing Stop on the toolbar.
1800
1790
*/
1801
1791
private void handleStop () { // called by menu or buttons
1802
1792
// toolbar.activate(EditorToolbar.STOP);
1803
1793
1804
- internalCloseRunner ();
1805
-
1806
1794
toolbar .deactivateRun ();
1807
1795
// toolbar.deactivate(EditorToolbar.STOP);
1808
1796
1809
1797
// focus the PDE again after quitting presentation mode [toxi 030903]
1810
1798
toFront ();
1811
1799
}
1812
1800
1813
-
1814
- /**
1815
- * Handle internal shutdown of the runner.
1816
- */
1817
- public void internalCloseRunner () {
1818
-
1819
- if (stopHandler != null )
1820
- try {
1821
- stopHandler .run ();
1822
- } catch (Exception e ) { }
1823
- }
1824
-
1825
-
1826
1801
/**
1827
1802
* Check if the sketch is modified and ask user to save changes.
1828
1803
* @return false if canceling the close/quit operation
@@ -1904,7 +1879,6 @@ protected boolean checkModified() {
1904
1879
*/
1905
1880
protected void handleOpenUnchecked (File file , int codeIndex ,
1906
1881
int selStart , int selStop , int scrollPos ) {
1907
- internalCloseRunner ();
1908
1882
handleOpenInternal (file );
1909
1883
// Replacing a document that may be untitled. If this is an actual
1910
1884
// untitled document, then editor.untitled will be set by Base.
0 commit comments