From 08a468208e0c1188323a4c1e1c3852638b53424c Mon Sep 17 00:00:00 2001 From: Kevin Harrington Date: Sat, 9 Sep 2023 19:14:08 -0400 Subject: [PATCH] Testing the synchronization between bowlerstudio and eclipse editor in Mac fixed --- .../neuronrobotics/bowlerstudio/tabs/LocalFileScriptTab.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/neuronrobotics/bowlerstudio/tabs/LocalFileScriptTab.java b/src/main/java/com/neuronrobotics/bowlerstudio/tabs/LocalFileScriptTab.java index b07e6d37f..60d010a1b 100644 --- a/src/main/java/com/neuronrobotics/bowlerstudio/tabs/LocalFileScriptTab.java +++ b/src/main/java/com/neuronrobotics/bowlerstudio/tabs/LocalFileScriptTab.java @@ -425,14 +425,14 @@ public void onScriptChanged(String previous, String current, File source) { private void setContent(String current) { if (current.length() > 3 && !content.contentEquals(current)) { + content = current; // writes long now=System.currentTimeMillis(); - if(now<(timeSinceLastUpdate+2000)) { + if(now<(timeSinceLastUpdate+100)) { System.err.println("Ovewrite Protect!"); return; } timeSinceLastUpdate=now; - content = current; // writes System.out.println("External change of " + file.getName() + " on " + dateFormat.format(new Date())); if (current.length() > MaxTextSize) {