diff options
Diffstat (limited to 'plugins/org.eclipse.oomph.p2.core/src/org/eclipse/oomph/p2/internal/core/BundlePoolImpl.java')
-rw-r--r-- | plugins/org.eclipse.oomph.p2.core/src/org/eclipse/oomph/p2/internal/core/BundlePoolImpl.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/plugins/org.eclipse.oomph.p2.core/src/org/eclipse/oomph/p2/internal/core/BundlePoolImpl.java b/plugins/org.eclipse.oomph.p2.core/src/org/eclipse/oomph/p2/internal/core/BundlePoolImpl.java index eeb1c4861..539e1968d 100644 --- a/plugins/org.eclipse.oomph.p2.core/src/org/eclipse/oomph/p2/internal/core/BundlePoolImpl.java +++ b/plugins/org.eclipse.oomph.p2.core/src/org/eclipse/oomph/p2/internal/core/BundlePoolImpl.java @@ -34,17 +34,16 @@ public class BundlePoolImpl extends AgentManagerElementImpl implements BundlePoo { private final Agent agent; - private final File location; + private File location; - private final String path; + private String path; private IFileArtifactRepository fileArtifactRepository; public BundlePoolImpl(AgentImpl agent, File location) { this.agent = agent; - this.location = location; - path = location.getAbsolutePath(); + setLocation(location); } @Override @@ -68,6 +67,12 @@ public class BundlePoolImpl extends AgentManagerElementImpl implements BundlePoo return location; } + public void setLocation(File location) + { + this.location = location; + path = location.getAbsolutePath(); + } + public Set<String> getClients() { return ((AgentManagerImpl)agent.getAgentManager()).getClientsFor(path); |