Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 74608 Details for
Bug 194694
'External Plugin Libraries' should be filtered
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch to fix 194694
194694.txt (text/plain), 4.36 KB, created by
Peter Friese
on 2007-07-25 14:58:51 EDT
(
hide
)
Description:
Patch to fix 194694
Filename:
MIME Type:
Creator:
Peter Friese
Created:
2007-07-25 14:58:51 EDT
Size:
4.36 KB
patch
obsolete
>### 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"> > </filter> >+ <filter >+ targetId="org.eclipse.jdt.ui.PackageExplorer" >+ name="%externalPluginLibrariesFilter.name" >+ enabled="false" >+ description="%externalPluginLibrariesFilter.desc" >+ class="org.eclipse.pde.internal.ui.wizards.imports.ExternalPluginLibrariesFilter" >+ id="org.eclipse.pde.ui.ExternalPluginLibrariesFilter1"> >+ </filter> >+ <filter >+ targetId="org.eclipse.jdt.ui.ProjectsView" >+ name="%externalPluginLibrariesFilter.name" >+ enabled="false" >+ description="%externalPluginLibrariesFilter.desc" >+ class="org.eclipse.pde.internal.ui.wizards.imports.ExternalPluginLibrariesFilter" >+ id="org.eclipse.pde.ui.ExternalPluginLibrariesFilter2"> >+ </filter> > </extension> > <extension > point="org.eclipse.jdt.ui.classpathContainerPage"> >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 <code>false</code> if the given element is the External Plugin Libraries project, >+ * and <code>true</code> 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; >+ } >+ >+}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 194694
: 74608 |
74609