diff options
Diffstat (limited to 'logo/src/xlogo/kernel/userspace/UserSpace.java')
-rw-r--r-- | logo/src/xlogo/kernel/userspace/UserSpace.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/logo/src/xlogo/kernel/userspace/UserSpace.java b/logo/src/xlogo/kernel/userspace/UserSpace.java index 6f2c065..bd1bf86 100644 --- a/logo/src/xlogo/kernel/userspace/UserSpace.java +++ b/logo/src/xlogo/kernel/userspace/UserSpace.java @@ -30,7 +30,6 @@ package xlogo.kernel.userspace; import java.util.ArrayList; import java.util.Collection; -import xlogo.AppSettings; import xlogo.Logo; import xlogo.interfaces.BroadcasterErrorFileContainer; import xlogo.interfaces.X4SModeSwitcher; @@ -300,10 +299,6 @@ public class UserSpace implements X4SModeSwitcher, LogoFileContainer, Broadcaste @Override public void createFile(String fileName) throws IOException { - if (contextManager.getContext().hasTooManyEmptyFiles()){ - DialogMessenger.getInstance().dispatchMessage(AppSettings.getInstance().translate("message.too.many.empty.files")); - return; - } try { filesManager.createFile(fileName); @@ -462,6 +457,10 @@ public class UserSpace implements X4SModeSwitcher, LogoFileContainer, Broadcaste return true; } + public boolean hasTooManyEmptyFiles(){ + return contextManager.getContext().hasTooManyEmptyFiles(); + } + public boolean hasErrors(String fileName) { try |