summaryrefslogtreecommitdiffstats
path: root/logo/src/xlogo/kernel/userspace/UserSpace.java
diff options
context:
space:
mode:
authorMarko Živković <[email protected]>2014-12-17 00:58:47 +0000
committerMarko Živković <[email protected]>2014-12-17 00:58:47 +0000
commitca9b32e986324f06a3230986f26e4f214d229223 (patch)
treee51a3dc80db3d8dc161841827c6350eb14ecd04e /logo/src/xlogo/kernel/userspace/UserSpace.java
parent1fd42f81c4a9884f5b702ab9ff854393b2dc5256 (diff)
When creating new file, the file is immediately opened, the list item has focus and text is selected for renaming the file.
git-svn-id: https://svn.code.sf.net/p/xlogo4schools/svn/trunk@14 3b0d7934-f7ef-4143-9606-b51f2e2281fd
Diffstat (limited to 'logo/src/xlogo/kernel/userspace/UserSpace.java')
-rw-r--r--logo/src/xlogo/kernel/userspace/UserSpace.java9
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