Bug 441184 - Delete org.eclipse.ui.presentationFactories extension point
Change-Id: Ie11ccfb87ac9b6262765a070ba6236b3adb34846
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPlugin.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPlugin.java
index aa5ce6c..fa518ac 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPlugin.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPlugin.java
@@ -527,21 +527,19 @@
}
/**
- * Returns the presentation factory with the given id, or <code>null</code> if not found.
- * @param targetID The id of the presentation factory to use.
- * @return AbstractPresentationFactory or <code>null</code>
- * if not factory matches that id.
- */
+ * Returns the presentation factory with the given id, or <code>null</code>
+ * if not found.
+ *
+ * @param targetID
+ * The id of the presentation factory to use.
+ * @return AbstractPresentationFactory or <code>null</code> if not factory
+ * matches that id.
+ *
+ * @deprecated Does not do anything anymore
+ */
+ @Deprecated
public AbstractPresentationFactory getPresentationFactory(String targetID) {
- Object o = createExtension(
- IWorkbenchRegistryConstants.PL_PRESENTATION_FACTORIES,
- "factory", targetID); //$NON-NLS-1$
- if (o instanceof AbstractPresentationFactory) {
- return (AbstractPresentationFactory) o;
- }
- WorkbenchPlugin
- .log("Error creating presentation factory: " + targetID + " -- class is not an AbstractPresentationFactory"); //$NON-NLS-1$ //$NON-NLS-2$
- return null;
+ return null;
}
/**
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/IWorkbenchRegistryConstants.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/IWorkbenchRegistryConstants.java
index ca87a99..6191411 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/IWorkbenchRegistryConstants.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/IWorkbenchRegistryConstants.java
@@ -11,6 +11,7 @@
* - Fix for bug 11490 - define hidden view (placeholder for view) in plugin.xml
* Markus Alexander Kuppe, Versant Corporation - bug #215797
* Semion Chichelnitsky (semion@il.ibm.com) - bug 208564
+ * Lars Vogel <Lars.Vogel@vogella.com> - Bug 441184
*******************************************************************************/
package org.eclipse.ui.internal.registry;
@@ -694,8 +695,6 @@
public static String PL_PREFERENCES = "preferencePages"; //$NON-NLS-1$
- public static String PL_PRESENTATION_FACTORIES = "presentationFactories"; //$NON-NLS-1$
-
public static String PL_PROPERTY_PAGES = "propertyPages"; //$NON-NLS-1$
public static String PL_STARTUP = "startup"; //$NON-NLS-1$