|
45 | 45 | import processing.mode.java.tweak.ColorControlBox; |
46 | 46 | import processing.mode.java.tweak.Handle; |
47 | 47 | import processing.mode.java.tweak.SketchParser; |
48 | | -import processing.mode.java.tweak.UDPTweakClient; |
| 48 | +import processing.mode.java.tweak.TweakClient; |
49 | 49 |
|
50 | 50 |
|
51 | 51 | public class JavaEditor extends Editor { |
@@ -2557,12 +2557,11 @@ protected void applyPreferences() { |
2557 | 2557 |
|
2558 | 2558 | // TWEAK MODE |
2559 | 2559 |
|
2560 | | - public static final String prefTweakPort = "tweak.port"; |
2561 | | - public static final String prefTweakShowCode = "tweak.showcode"; |
| 2560 | + static final String prefTweakPort = "tweak.port"; |
| 2561 | + static final String prefTweakShowCode = "tweak.showcode"; |
2562 | 2562 |
|
2563 | 2563 | public String[] baseCode; |
2564 | | - |
2565 | | - UDPTweakClient tweakClient; |
| 2564 | + TweakClient tweakClient; |
2566 | 2565 |
|
2567 | 2566 |
|
2568 | 2567 | protected void startInteractiveMode() { |
@@ -2776,7 +2775,7 @@ protected boolean automateSketch(Sketch sketch, SketchParser parser) { |
2776 | 2775 | } |
2777 | 2776 |
|
2778 | 2777 | // create the client that will send the new values to the sketch |
2779 | | - tweakClient = new UDPTweakClient(port); |
| 2778 | + tweakClient = new TweakClient(port); |
2780 | 2779 | // update handles with a reference to the client object |
2781 | 2780 | for (int tab=0; tab<code.length; tab++) { |
2782 | 2781 | for (Handle h : handles.get(tab)) { |
@@ -2827,7 +2826,7 @@ protected boolean automateSketch(Sketch sketch, SketchParser parser) { |
2827 | 2826 | } |
2828 | 2827 |
|
2829 | 2828 | // add the server code that will receive the value change messages |
2830 | | - header += UDPTweakClient.getServerCode(port, numOfInts>0, numOfFloats>0); |
| 2829 | + header += TweakClient.getServerCode(port, numOfInts>0, numOfFloats>0); |
2831 | 2830 | header += "TweakModeServer tweakmode_Server;\n"; |
2832 | 2831 |
|
2833 | 2832 | header += "void tweakmode_initAllVars() {\n"; |
|
0 commit comments