Skip to content

Commit

Permalink
Testing the synchronization between bowlerstudio and eclipse editor in
Browse files Browse the repository at this point in the history
Mac fixed
  • Loading branch information
madhephaestus committed Sep 9, 2023
1 parent 418f4b8 commit 08a4682
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 08a4682

Please sign in to comment.