@@ -191,7 +191,6 @@ public boolean test(SketchController sketch) {
191
191
Runnable presentHandler ;
192
192
private Runnable runAndSaveHandler ;
193
193
private Runnable presentAndSaveHandler ;
194
- private Runnable stopHandler ;
195
194
Runnable exportHandler ;
196
195
private Runnable exportAppHandler ;
197
196
@@ -1568,7 +1567,6 @@ private void resetHandlers() {
1568
1567
presentHandler = new BuildHandler (true );
1569
1568
runAndSaveHandler = new BuildHandler (false , true );
1570
1569
presentAndSaveHandler = new BuildHandler (true , true );
1571
- stopHandler = new DefaultStopHandler ();
1572
1570
exportHandler = new DefaultExportHandler ();
1573
1571
exportAppHandler = new DefaultExportAppHandler ();
1574
1572
}
@@ -1727,7 +1725,6 @@ public void handleRun(final boolean verbose, Runnable verboseHandler, Runnable n
1727
1725
}
1728
1726
1729
1727
private void handleRun (final boolean verbose , Predicate <SketchController > shouldSavePredicate , Runnable verboseHandler , Runnable nonVerboseHandler ) {
1730
- internalCloseRunner ();
1731
1728
if (shouldSavePredicate .test (sketchController )) {
1732
1729
handleSave (true );
1733
1730
}
@@ -1795,42 +1792,20 @@ public void addLineHighlight(int line) throws BadLocationException {
1795
1792
getCurrentTab ().getTextArea ().setCaretPosition (getCurrentTab ().getTextArea ().getLineStartOffset (line ));
1796
1793
}
1797
1794
1798
- private class DefaultStopHandler implements Runnable {
1799
- public void run () {
1800
- // TODO
1801
- // DAM: we should try to kill the compilation or upload process here.
1802
- }
1803
- }
1804
-
1805
1795
1806
1796
/**
1807
1797
* Implements Sketch → Stop, or pressing Stop on the toolbar.
1808
1798
*/
1809
1799
private void handleStop () { // called by menu or buttons
1810
1800
// toolbar.activate(EditorToolbar.STOP);
1811
1801
1812
- internalCloseRunner ();
1813
-
1814
1802
toolbar .deactivateRun ();
1815
1803
// toolbar.deactivate(EditorToolbar.STOP);
1816
1804
1817
1805
// focus the PDE again after quitting presentation mode [toxi 030903]
1818
1806
toFront ();
1819
1807
}
1820
1808
1821
-
1822
- /**
1823
- * Handle internal shutdown of the runner.
1824
- */
1825
- public void internalCloseRunner () {
1826
-
1827
- if (stopHandler != null )
1828
- try {
1829
- stopHandler .run ();
1830
- } catch (Exception e ) { }
1831
- }
1832
-
1833
-
1834
1809
/**
1835
1810
* Check if the sketch is modified and ask user to save changes.
1836
1811
* @return false if canceling the close/quit operation
@@ -1912,7 +1887,6 @@ protected boolean checkModified() {
1912
1887
*/
1913
1888
protected void handleOpenUnchecked (File file , int codeIndex ,
1914
1889
int selStart , int selStop , int scrollPos ) {
1915
- internalCloseRunner ();
1916
1890
handleOpenInternal (file );
1917
1891
// Replacing a document that may be untitled. If this is an actual
1918
1892
// untitled document, then editor.untitled will be set by Base.
0 commit comments