summaryrefslogtreecommitdiffstats
path: root/logo/src/xlogo/storage/StorableDocument.java
diff options
context:
space:
mode:
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