Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/RegistryProviderFactory.java')
-rw-r--r--bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/RegistryProviderFactory.java39
1 files changed, 0 insertions, 39 deletions
diff --git a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/RegistryProviderFactory.java b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/RegistryProviderFactory.java
deleted file mode 100644
index e3d18cf54..000000000
--- a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/RegistryProviderFactory.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2006 IBM Corporation 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:
- * IBM Corporation - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.core.internal.registry;
-
-import org.eclipse.core.runtime.*;
-import org.eclipse.core.runtime.spi.IRegistryProvider;
-
-/**
- * @since org.eclipse.equinox.registry 3.2
- */
-public final class RegistryProviderFactory {
-
- private static IRegistryProvider defaultRegistryProvider;
-
- public static IRegistryProvider getDefault() {
- return defaultRegistryProvider;
- }
-
- public static void setDefault(IRegistryProvider provider) throws CoreException {
- if (defaultRegistryProvider != null) {
- Status status = new Status(IStatus.ERROR, RegistryMessages.OWNER_NAME, IRegistryConstants.PLUGIN_ERROR, RegistryMessages.registry_default_exists, null);
- throw new CoreException(status);
- }
- defaultRegistryProvider = provider;
- }
-
- public static void releaseDefault() {
- defaultRegistryProvider = null;
- }
-}

Back to the top