|
From: Markus B. <mba...@us...> - 2005-08-29 16:06:57
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/launcher In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3123/src/org/rubypeople/rdt/internal/debug/ui/launcher Modified Files: LoadPathEntryLabelProvider.java Log Message: consider projects which are inaccessible Index: LoadPathEntryLabelProvider.java =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.debug.ui/src/org/rubypeople/rdt/internal/debug/ui/launcher/LoadPathEntryLabelProvider.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** LoadPathEntryLabelProvider.java 20 Mar 2004 15:38:56 -0000 1.4 --- LoadPathEntryLabelProvider.java 29 Aug 2005 16:06:49 -0000 1.5 *************** *** 1,4 **** --- 1,5 ---- package org.rubypeople.rdt.internal.debug.ui.launcher; + import org.eclipse.core.resources.IProject; import org.eclipse.jface.viewers.ILabelProvider; import org.eclipse.jface.viewers.ILabelProviderListener; *************** *** 26,31 **** */ public String getText(Object element) { ! if (element != null && element.getClass() == LoadPathEntry.class) ! return ((LoadPathEntry) element).getProject().getLocation().toOSString(); RdtDebugUiPlugin.log(new RuntimeException("Unable to render load path.")); --- 27,39 ---- */ public String getText(Object element) { ! if (element != null && element.getClass() == LoadPathEntry.class) { ! IProject project = ((LoadPathEntry) element).getProject() ; ! if (project.isAccessible()) { ! return project.getLocation().toOSString() ; ! } ! else { ! return project.getName() + " (not accessible)" ; ! } ! } RdtDebugUiPlugin.log(new RuntimeException("Unable to render load path.")); |