Bug 36625 "Copy Trace" Action in "Failure Trace" View enabled for empty table.
The "Copy Trace" action should probably be hidden or unavailable when there is nothing in the "Failure Trace" view. Currently the user is given the option to copy a trace of nothing to the clipboard.
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/FailureRunView.java
}
	
	private static String cutFromTo(String string, char from, char to){
		String modified= string;
		modified= modified.substring(modified.indexOf(from) + 1);
		return cutTo(modified, to);
	}
	
	private static String cutTo(String string, char to){
		int toIndex= string.indexOf(to);
		if (toIndex == -1)
			return string;
		else	
			return string.substring(0, toIndex);
	}
	public void menuAboutToShow(IMenuManager manager){
		if (fTable.getSelectionCount() > 0) {
			String className= getClassName();
			String methodName= getMethodName();
			if (className != null) {
				manager.add(new OpenTestAction(fRunnerViewPart, className, methodName));
				manager.add(new RerunAction(fRunnerViewPart, getSelectedTestId(), className, methodName));
			}
		}
	}		
	
	private String getSelectedText() {
		int index= fTable.getSelectionIndex();
		if (index == -1)
			return null;