From 9f0d5c8015f4504bc8400cbb4247f38d9df62768 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 24 May 2008 16:47:25 +0000 Subject: new protocol editor works. --- sources/prefs/VSPrefs.java | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'sources/prefs/VSPrefs.java') diff --git a/sources/prefs/VSPrefs.java b/sources/prefs/VSPrefs.java index 6af0156..5b2cc9c 100644 --- a/sources/prefs/VSPrefs.java +++ b/sources/prefs/VSPrefs.java @@ -561,4 +561,26 @@ public abstract class VSPrefs implements Serializable { public long getID() { return id; } + + public boolean isEmpty() { + if (!colorPrefs.isEmpty()) + return false; + + if (!floatPrefs.isEmpty()) + return false; + + if (!integerPrefs.isEmpty()) + return false; + + if (!longPrefs.isEmpty()) + return false; + + if (!stringPrefs.isEmpty()) + return false; + + if (!booleanPrefs.isEmpty()) + return false; + + return true; + } } -- cgit v1.2.3