summaryrefslogtreecommitdiff
path: root/java/src/IceGridGUI/Application/Editable.java
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2006-05-08 20:55:38 +0000
committerBernard Normier <bernard@zeroc.com>2006-05-08 20:55:38 +0000
commit8ff9dd62a9241109b599896c1f06516009275fe0 (patch)
treed397a64aa0bb37b2496d7fa7d0b484da9d7fa73e /java/src/IceGridGUI/Application/Editable.java
parentFix (diff)
downloadice-8ff9dd62a9241109b599896c1f06516009275fe0.tar.bz2
ice-8ff9dd62a9241109b599896c1f06516009275fe0.tar.xz
ice-8ff9dd62a9241109b599896c1f06516009275fe0.zip
Simplified Application view; fixed PropertySets issues
Diffstat (limited to 'java/src/IceGridGUI/Application/Editable.java')
-rwxr-xr-xjava/src/IceGridGUI/Application/Editable.java15
1 files changed, 9 insertions, 6 deletions
diff --git a/java/src/IceGridGUI/Application/Editable.java b/java/src/IceGridGUI/Application/Editable.java
index 34d81355f6e..7c6efae73bd 100755
--- a/java/src/IceGridGUI/Application/Editable.java
+++ b/java/src/IceGridGUI/Application/Editable.java
@@ -42,15 +42,18 @@ class Editable implements Cloneable
_isNew = true;
}
- void removeElement(String id, Class forClass)
+ void removeElement(String id, Editable editable, Class forClass)
{
- java.util.TreeSet set = (java.util.TreeSet)_removedElements.get(forClass);
- if(set == null)
+ if(!editable.isNew())
{
- set = new java.util.TreeSet();
- _removedElements.put(forClass, set);
+ java.util.TreeSet set = (java.util.TreeSet)_removedElements.get(forClass);
+ if(set == null)
+ {
+ set = new java.util.TreeSet();
+ _removedElements.put(forClass, set);
+ }
+ set.add(id);
}
- set.add(id);
}
String[] removedElements(Class forClass)