From 186cb065a9c17f00928990ee65cb829e3a037b47 Mon Sep 17 00:00:00 2001 From: DJ Houghton Date: Mon, 30 Jan 2006 20:32:23 +0000 Subject: Bug 117530 - equinox.registry should have its own InvalidRegistryObjectException --- .../META-INF/MANIFEST.MF | 1 - .../registry/ConfigurationElementHandle.java | 3 +- .../core/internal/registry/Contribution.java | 2 +- .../core/internal/registry/ExtensionHandle.java | 4 +-- .../internal/registry/ExtensionPointHandle.java | 1 - .../org/eclipse/core/internal/registry/Handle.java | 4 +-- .../internal/registry/RegistryObjectManager.java | 2 +- .../internal/registry/TemporaryObjectManager.java | 4 +-- .../runtime/InvalidRegistryObjectException.java | 40 ---------------------- .../equinox/registry/IConfigurationElement.java | 3 +- .../org/eclipse/equinox/registry/IExtension.java | 4 +-- .../eclipse/equinox/registry/IExtensionPoint.java | 4 +-- .../registry/InvalidRegistryObjectException.java | 36 +++++++++++++++++++ 13 files changed, 47 insertions(+), 61 deletions(-) delete mode 100644 bundles/org.eclipse.equinox.registry/src/org/eclipse/core/runtime/InvalidRegistryObjectException.java create mode 100644 bundles/org.eclipse.equinox.registry/src/org/eclipse/equinox/registry/InvalidRegistryObjectException.java diff --git a/bundles/org.eclipse.equinox.registry/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.registry/META-INF/MANIFEST.MF index bdd809dbf..f604df508 100644 --- a/bundles/org.eclipse.equinox.registry/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.equinox.registry/META-INF/MANIFEST.MF @@ -8,7 +8,6 @@ Export-Package: org.eclipse.core.internal.registry;x-friends:="org.eclipse.core. org.eclipse.core.internal.registry.osgi;x-friends:="org.eclipse.core.runtime", org.eclipse.core.internal.registry.spi;x-internal:=true, org.eclipse.equinox.registry.spi, - org.eclipse.core.runtime, org.eclipse.equinox.registry, org.eclipse.equinox.registry.tracker Require-Bundle: org.eclipse.equinox.common diff --git a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/ConfigurationElementHandle.java b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/ConfigurationElementHandle.java index 38320f1c6..aec8fbc4a 100644 --- a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/ConfigurationElementHandle.java +++ b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/ConfigurationElementHandle.java @@ -11,8 +11,7 @@ package org.eclipse.core.internal.registry; import org.eclipse.core.runtime.*; -import org.eclipse.equinox.registry.IConfigurationElement; -import org.eclipse.equinox.registry.IExtension; +import org.eclipse.equinox.registry.*; /** * @since 3.1 diff --git a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/Contribution.java b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/Contribution.java index 7dfdf3210..107965ec5 100644 --- a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/Contribution.java +++ b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/Contribution.java @@ -11,7 +11,7 @@ package org.eclipse.core.internal.registry; import org.eclipse.core.runtime.Assert; -import org.eclipse.core.runtime.InvalidRegistryObjectException; +import org.eclipse.equinox.registry.InvalidRegistryObjectException; // This object is used to keep track on a contributor basis of the extension and extension points being contributed. // It is mainly used on removal so we can quickly find objects to remove. diff --git a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/ExtensionHandle.java b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/ExtensionHandle.java index 403a8842d..77bc6c55b 100644 --- a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/ExtensionHandle.java +++ b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/ExtensionHandle.java @@ -10,9 +10,7 @@ *******************************************************************************/ package org.eclipse.core.internal.registry; -import org.eclipse.core.runtime.InvalidRegistryObjectException; -import org.eclipse.equinox.registry.IConfigurationElement; -import org.eclipse.equinox.registry.IExtension; +import org.eclipse.equinox.registry.*; /** * @since 3.1 diff --git a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/ExtensionPointHandle.java b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/ExtensionPointHandle.java index d3b8496d4..98822d549 100644 --- a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/ExtensionPointHandle.java +++ b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/ExtensionPointHandle.java @@ -12,7 +12,6 @@ package org.eclipse.core.internal.registry; import java.util.ArrayList; import java.util.Arrays; -import org.eclipse.core.runtime.InvalidRegistryObjectException; import org.eclipse.equinox.registry.*; /** diff --git a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/Handle.java b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/Handle.java index 7f8b142bb..ca1ef6240 100644 --- a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/Handle.java +++ b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/Handle.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2004 IBM Corporation and others. + * Copyright (c) 2004, 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 @@ -10,7 +10,7 @@ *******************************************************************************/ package org.eclipse.core.internal.registry; -import org.eclipse.core.runtime.InvalidRegistryObjectException; +import org.eclipse.equinox.registry.InvalidRegistryObjectException; /** * A handle is the super class to all registry objects that are now served to users. diff --git a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/RegistryObjectManager.java b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/RegistryObjectManager.java index d92943196..5ccc3dfe4 100644 --- a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/RegistryObjectManager.java +++ b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/RegistryObjectManager.java @@ -12,7 +12,7 @@ package org.eclipse.core.internal.registry; import java.lang.ref.SoftReference; import java.util.*; -import org.eclipse.core.runtime.InvalidRegistryObjectException; +import org.eclipse.equinox.registry.InvalidRegistryObjectException; /** * This class manage all the object from the registry but does not deal with their dependencies. diff --git a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/TemporaryObjectManager.java b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/TemporaryObjectManager.java index bffa67818..7c5d160b1 100644 --- a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/TemporaryObjectManager.java +++ b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/TemporaryObjectManager.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2004 IBM Corporation and others. + * Copyright (c) 2004, 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 @@ -11,7 +11,7 @@ package org.eclipse.core.internal.registry; import java.util.Map; -import org.eclipse.core.runtime.InvalidRegistryObjectException; +import org.eclipse.equinox.registry.InvalidRegistryObjectException; /** * @since 3.1 diff --git a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/runtime/InvalidRegistryObjectException.java b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/runtime/InvalidRegistryObjectException.java deleted file mode 100644 index ede5e3ac8..000000000 --- a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/runtime/InvalidRegistryObjectException.java +++ /dev/null @@ -1,40 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004, 2005 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.runtime; - -/** - * An unchecked exception indicating that an attempt to access - * an extension registry object that is no longer valid. - *
- * This exception is thrown by methods on extension registry - * objects. It is not intended to be instantiated or - * subclassed by clients. - *
- * - * @since 3.1 - */ -// XXX should this class be repackaged? IExecutableExtension is in an Eqinox package. -// But: it is a pre-existing class. It has to remain in the same package for backward compatibility. -public class InvalidRegistryObjectException extends RuntimeException { - /* - * Declare a stable serialVersionUID. - */ - private static final long serialVersionUID = 1L; - - private static final String MESSAGE = "Invalid registry object"; //$NON-NLS-1$ - - /** - * Creates a new exception instance with null as its detail message. - */ - public InvalidRegistryObjectException() { - super(MESSAGE); - } -} diff --git a/bundles/org.eclipse.equinox.registry/src/org/eclipse/equinox/registry/IConfigurationElement.java b/bundles/org.eclipse.equinox.registry/src/org/eclipse/equinox/registry/IConfigurationElement.java index c6f5ac169..e90697edf 100644 --- a/bundles/org.eclipse.equinox.registry/src/org/eclipse/equinox/registry/IConfigurationElement.java +++ b/bundles/org.eclipse.equinox.registry/src/org/eclipse/equinox/registry/IConfigurationElement.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2005 IBM Corporation and others. + * Copyright (c) 2000, 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 @@ -11,7 +11,6 @@ package org.eclipse.equinox.registry; import org.eclipse.core.runtime.CoreException; -import org.eclipse.core.runtime.InvalidRegistryObjectException; /** * A configuration element, with its attributes and children, diff --git a/bundles/org.eclipse.equinox.registry/src/org/eclipse/equinox/registry/IExtension.java b/bundles/org.eclipse.equinox.registry/src/org/eclipse/equinox/registry/IExtension.java index 9001c986c..82e86dcee 100644 --- a/bundles/org.eclipse.equinox.registry/src/org/eclipse/equinox/registry/IExtension.java +++ b/bundles/org.eclipse.equinox.registry/src/org/eclipse/equinox/registry/IExtension.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. + * Copyright (c) 2000, 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 @@ -10,8 +10,6 @@ *******************************************************************************/ package org.eclipse.equinox.registry; -import org.eclipse.core.runtime.InvalidRegistryObjectException; - /** * An extension declared in a plug-in. * All information is obtained from the declaring plug-in's diff --git a/bundles/org.eclipse.equinox.registry/src/org/eclipse/equinox/registry/IExtensionPoint.java b/bundles/org.eclipse.equinox.registry/src/org/eclipse/equinox/registry/IExtensionPoint.java index b07ff361d..ddbe7bc0e 100644 --- a/bundles/org.eclipse.equinox.registry/src/org/eclipse/equinox/registry/IExtensionPoint.java +++ b/bundles/org.eclipse.equinox.registry/src/org/eclipse/equinox/registry/IExtensionPoint.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2004 IBM Corporation and others. + * Copyright (c) 2000, 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 @@ -10,8 +10,6 @@ *******************************************************************************/ package org.eclipse.equinox.registry; -import org.eclipse.core.runtime.InvalidRegistryObjectException; - /** * An extension point declared in a plug-in. * Except for the list of extensions plugged in to it, the information diff --git a/bundles/org.eclipse.equinox.registry/src/org/eclipse/equinox/registry/InvalidRegistryObjectException.java b/bundles/org.eclipse.equinox.registry/src/org/eclipse/equinox/registry/InvalidRegistryObjectException.java new file mode 100644 index 000000000..8064860bc --- /dev/null +++ b/bundles/org.eclipse.equinox.registry/src/org/eclipse/equinox/registry/InvalidRegistryObjectException.java @@ -0,0 +1,36 @@ +/******************************************************************************* + * Copyright (c) 2004, 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.equinox.registry; + +/** + * An unchecked exception indicating that an attempt to access + * an extension registry object that is no longer valid. + *+ * This exception is thrown by methods on extension registry + * objects. It is not intended to be instantiated or + * subclassed by clients. + *
+ */ +public class InvalidRegistryObjectException extends RuntimeException { + /* + * Declare a stable serialVersionUID. + */ + private static final long serialVersionUID = 1L; + + private static final String MESSAGE = "Invalid registry object"; //$NON-NLS-1$ + + /** + * Creates a new exception instance with null as its detail message. + */ + public InvalidRegistryObjectException() { + super(MESSAGE); + } +} -- cgit v1.2.3