### Eclipse Workspace Patch 1.0
#P org.eclipse.pde.ui
Index: plugin.properties
===================================================================
RCS file: /cvsroot/eclipse/org.eclipse.pde.ui/plugin.properties,v
retrieving revision 1.198
diff -u -r1.198 plugin.properties
--- plugin.properties 17 May 2007 08:26:49 -0000 1.198
+++ plugin.properties 25 Jul 2007 18:57:02 -0000
@@ -51,6 +51,9 @@
binaryFilter.desc = Hides Java projects created by importing Eclipse plug-ins \
as binary (no source code)
+%externalPluginLibrariesFilter.name = External plug-in libraries project
+%externalPluginLibrariesFilter.desc = Hide the "External Plug-in Libraries" project
+
new.category.name=Plug-in Development
new.pluginProject.name=Plug-in Project
new.pluginProject.description=Create a Plug-in Project
Index: plugin.xml
===================================================================
RCS file: /cvsroot/eclipse/org.eclipse.pde.ui/plugin.xml,v
retrieving revision 1.417
diff -u -r1.417 plugin.xml
--- plugin.xml 15 Jul 2007 05:53:57 -0000 1.417
+++ plugin.xml 25 Jul 2007 18:57:07 -0000
@@ -1079,6 +1079,22 @@
class="org.eclipse.pde.internal.ui.wizards.imports.BinaryProjectFilter"
id="org.eclipse.pde.ui.BinaryProjectFilter2">
+
+
+
+
Index: src/org/eclipse/pde/internal/ui/wizards/imports/ExternalPluginLibrariesFilter.java
===================================================================
RCS file: src/org/eclipse/pde/internal/ui/wizards/imports/ExternalPluginLibrariesFilter.java
diff -N src/org/eclipse/pde/internal/ui/wizards/imports/ExternalPluginLibrariesFilter.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/org/eclipse/pde/internal/ui/wizards/imports/ExternalPluginLibrariesFilter.java 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,44 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2007 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.pde.internal.ui.wizards.imports;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jface.viewers.Viewer;
+import org.eclipse.jface.viewers.ViewerFilter;
+import org.eclipse.pde.internal.core.SearchablePluginsManager;
+
+public class ExternalPluginLibrariesFilter extends ViewerFilter {
+
+ /**
+ * Returns false
if the given element is the External Plugin Libraries project,
+ * and true
otherwise.
+ *
+ * @see org.eclipse.jface.viewers.ViewerFilter#select(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
+ */
+ public boolean select(Viewer viewer, Object parentElement, Object element) {
+ IProject project = null;
+
+ if (element instanceof IJavaProject) {
+ project = ((IJavaProject) element).getProject();
+ } else if (element instanceof IProject) {
+ project = (IProject) element;
+ }
+ if (project != null) {
+ String projectName = project.getName();
+ if (projectName.equals(SearchablePluginsManager.PROXY_PROJECT_NAME)) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+}