Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/internal/explorer/CDORepositoryManagerImpl.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/internal/explorer/CDORepositoryManagerImpl.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/internal/explorer/CDORepositoryManagerImpl.java b/plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/internal/explorer/CDORepositoryManagerImpl.java
new file mode 100644
index 0000000000..eca4861783
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/internal/explorer/CDORepositoryManagerImpl.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright (c) 2010-2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.internal.explorer;
+
+import org.eclipse.emf.cdo.explorer.CDORepository;
+import org.eclipse.emf.cdo.explorer.CDORepositoryManager;
+
+import org.eclipse.net4j.util.container.SetContainer;
+
+/**
+ * @author Eike Stepper
+ */
+public class CDORepositoryManagerImpl extends SetContainer<CDORepository> implements CDORepositoryManager
+{
+ public CDORepositoryManagerImpl()
+ {
+ super(CDORepository.class);
+ }
+
+ public CDORepository[] getRepositories()
+ {
+ return getElements();
+ }
+
+ public CDORepository addRemoteRepository(String label, String repositoryName, String connectorType,
+ String connectorDescription)
+ {
+ RemoteCDORepository repository = new RemoteCDORepository(this, label, repositoryName, connectorType,
+ connectorDescription);
+ addElement(repository);
+ return repository;
+ }
+}

Back to the top