Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 48558 invoked from network); 10 Aug 2010 15:55:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Aug 2010 15:55:14 -0000 Received: (qmail 92561 invoked by uid 500); 10 Aug 2010 15:55:14 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 92478 invoked by uid 500); 10 Aug 2010 15:55:13 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 92470 invoked by uid 99); 10 Aug 2010 15:55:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Aug 2010 15:55:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Aug 2010 15:55:10 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id B123423889E7; Tue, 10 Aug 2010 15:53:52 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r984097 - in /ant/ivy/ivyde/trunk: CHANGES.txt org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/PathEditor.java Date: Tue, 10 Aug 2010 15:53:52 -0000 To: notifications@ant.apache.org From: hibou@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100810155352.B123423889E7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: hibou Date: Tue Aug 10 15:53:52 2010 New Revision: 984097 URL: http://svn.apache.org/viewvc?rev=984097&view=rev Log: IVYDE-249 : Filter closed projects from workspace selection dialog (thanks to Sébastien Moran) Modified: ant/ivy/ivyde/trunk/CHANGES.txt ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/PathEditor.java Modified: ant/ivy/ivyde/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/CHANGES.txt?rev=984097&r1=984096&r2=984097&view=diff ============================================================================== --- ant/ivy/ivyde/trunk/CHANGES.txt (original) +++ ant/ivy/ivyde/trunk/CHANGES.txt Tue Aug 10 15:53:52 2010 @@ -14,6 +14,7 @@ - IMPROVE: Wrap cache cleaning in a job so that it does not block the workspace (IVYDE-207) (thanks to Jon Schneider) - IMPROVE: Allow workspace resolver to skip version matcher (IVYDE-187) (thanks to Phillip Webb) +- IMPROVE: Filter closed projects from workspace selection dialog (IVYDE-249) (thanks to Sebastien Moran) - FIX: "Ivy Settings Path" Browse button results in an incorrectly formatted URL (IVYDE-191) (thanks to Jon Schneider) - FIX: Workspace Resolver Prevents Source Download (IVYDE-188) (thanks to Phillip Webb) Modified: ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/PathEditor.java URL: http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/PathEditor.java?rev=984097&r1=984096&r2=984097&view=diff ============================================================================== --- ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/PathEditor.java (original) +++ ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/ui/PathEditor.java Tue Aug 10 15:53:52 2010 @@ -18,10 +18,13 @@ package org.apache.ivyde.eclipse.ui; import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.IPath; import org.eclipse.debug.ui.StringVariableSelectionDialog; import org.eclipse.jdt.core.IJavaProject; +import org.eclipse.jface.viewers.Viewer; +import org.eclipse.jface.viewers.ViewerFilter; import org.eclipse.swt.SWT; import org.eclipse.swt.events.ModifyEvent; import org.eclipse.swt.events.ModifyListener; @@ -112,6 +115,15 @@ public abstract class PathEditor extends new WorkbenchLabelProvider(), new BaseWorkbenchContentProvider()); dialog.setTitle("Select a workspace relative file:"); dialog.setMessage("Select a workspace relative file:"); + // Filter closed projects + dialog.addFilter(new ViewerFilter() { + public boolean select(Viewer viewer, Object parentElement, Object element) { + if (element instanceof IProject) + return ((IProject) element).isAccessible(); + + return true; + } + }); dialog.setInput(ResourcesPlugin.getWorkspace().getRoot()); // TODO try to preselect the current file dialog.open();