Bug 114542 [Markers] Possible to get empty path nodes in problems view hierarcahl mode
20051101 Warnings on the top level of a project ended up having an empty label. STEPS 1) Change filters to show selected elements and children 2) Go into hierarchal mode 3) Select org.eclipse.ui.tests
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/Util.java
if (n > 1)
			len += n - 1;
		StringBuffer sb = new StringBuffer(len);
		for (int i = 0; i < n; ++i) {
			if (i != 0)
				sb.append('/');
			sb.append(path.segment(i));
		}
		return sb.toString();
	}
	/**
	 * Log the exception.
	 * 
	 * @param exception
	 */
	public static void log(CoreException exception) {
		IDEWorkbenchPlugin.getDefault().getLog().log(exception.getStatus());
	}
	/**
	 * Get the name of the element. If the marker has the
	 * MarkerViewUtil#NAME_ATTRIBUTE set use that. Otherwise use the name of the
	 * resource.
	 * 
	 * @param marker
	 * @return String
	 */
	public static String getResourceName(IMarker marker) {
		try {
			Object nameAttribute = marker