Jordi,异常发生在服务器中的 getColumnText 方法中。
public String getColumnText( Object element, int columnIndex ) {
return text;
}
当文本是包含 '&' 的字符串时会发生异常,例如“Billy & Jean”
这是一个例外:
发生异常
java.lang.IllegalArgumentException: Failed to parse markup text at org.eclipse.swt.internal.widgets.MarkupValidator.validate(MarkupValidator.java:60) at org.eclipse.swt.widgets.TreeItem.setText(TreeItem.java:978) at org.eclipse.jface.viewers.TreeViewerRow.setText(TreeViewerRow.java:176) at org.eclipse.jface.viewers.ViewerCell.setText(ViewerCell.java:162) at org.eclipse.jface.viewers.TableColumnViewerLabelProvider.update(TableColumnViewerLabelProvider.java:70) at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:155) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:935) at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.run(AbstractTreeViewer.java:103) at org.eclipse.jface.util.SafeRunnable$1.run(SafeRunnable.java:130) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:177)