commit | 8d015c5e6e6fbf9cf02ea9c5a915e0a77be21be0 | [log] [tgz] |
---|---|---|
author | David Morgan Spencer Savage <dsavage@apache.org> | Thu Aug 05 07:28:18 2010 +0000 |
committer | David Morgan Spencer Savage <dsavage@apache.org> | Thu Aug 05 07:28:18 2010 +0000 |
tree | b6093394fd81d0b8143243489c3656d2131b6f53 | |
parent | 8c024c2643d70d60827d61651d24912471cb9c80 [diff] |
fix for FELIX-2517 - read correct existing entries git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@982488 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/sigil/common/core/src/org/apache/felix/sigil/common/core/internal/model/eclipse/SigilBundle.java b/sigil/common/core/src/org/apache/felix/sigil/common/core/internal/model/eclipse/SigilBundle.java index 17d3bf2..cd6b3f6 100644 --- a/sigil/common/core/src/org/apache/felix/sigil/common/core/internal/model/eclipse/SigilBundle.java +++ b/sigil/common/core/src/org/apache/felix/sigil/common/core/internal/model/eclipse/SigilBundle.java
@@ -341,14 +341,14 @@ public void addPackage(String pkg) { - ArrayList<String> tmp = new ArrayList<String>(getClasspathEntrys()); + ArrayList<String> tmp = new ArrayList<String>(getPackages()); tmp.add(pkg); packages = tmp.toArray(new String[tmp.size()]); } public boolean removePackage(String pkg) { - ArrayList<String> tmp = new ArrayList<String>(getClasspathEntrys()); + ArrayList<String> tmp = new ArrayList<String>(getPackages()); if (tmp.remove(pkg)) { packages = tmp.toArray(new String[tmp.size()]);