summaryrefslogtreecommitdiffstats
path: root/logo/src/xlogo/storage/StorableDocument.java
diff options
context:
space:
mode:
authorMarko Živković <[email protected]>2014-12-17 00:26:30 +0000
committerMarko Živković <[email protected]>2014-12-17 00:26:30 +0000
commit1fd42f81c4a9884f5b702ab9ff854393b2dc5256 (patch)
tree6dd9d770bded4071dadc51a906e2a77bd36e5abd /logo/src/xlogo/storage/StorableDocument.java
parentfadba92b2f3a41fa35ccadeb6deba540305ae5e6 (diff)
- Limiting number of empty files to 4
- Fixed small issue, where another new line was appended to files whenever the file was opened - Added translations for previously hard coded dialog messages. git-svn-id: https://svn.code.sf.net/p/xlogo4schools/svn/trunk@13 3b0d7934-f7ef-4143-9606-b51f2e2281fd
Diffstat (limited to 'logo/src/xlogo/storage/StorableDocument.java')
-rw-r--r--logo/src/xlogo/storage/StorableDocument.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/logo/src/xlogo/storage/StorableDocument.java b/logo/src/xlogo/storage/StorableDocument.java
index d3fe8ed..0551ff9 100644
--- a/logo/src/xlogo/storage/StorableDocument.java
+++ b/logo/src/xlogo/storage/StorableDocument.java
@@ -178,6 +178,14 @@ public abstract class StorableDocument extends Storable
}
/**
+ * Whether the underlying text representation is the empty string
+ * @return
+ */
+ public boolean isEmpty(){
+ return getText().equals("");
+ }
+
+ /**
* Setting text will invalidate the current text.
* The new text is then parsed to the concrete document structure.
* @param br