Eclipse plugin 带'的Eclipse操作@';文本中的符号

Eclipse plugin 带'的Eclipse操作@';文本中的符号,eclipse-plugin,escaping,swt,special-characters,jface,Eclipse Plugin,Escaping,Swt,Special Characters,Jface,我试图在eclipse中使用文本中的“@”符号执行一个操作。但是当菜单呈现时,@丢失了,取而代之的是,@应该在哪里有一个巨大的间隙 “@”符号在Eclipse/JFace/SWT中有特殊含义吗?我能逃脱吗?使用@,会导致显示“@”,但仍然存在巨大的空间。答案在Action类中setText的注释中找到: /** * Sets the text for this action. * <p> * Fires a property change event for the &

我试图在eclipse中使用文本中的“@”符号执行一个操作。但是当菜单呈现时,@丢失了,取而代之的是,@应该在哪里有一个巨大的间隙


“@”符号在Eclipse/JFace/SWT中有特殊含义吗?我能逃脱吗?使用@,会导致显示“@”,但仍然存在巨大的空间。

答案在Action类中setText的注释中找到:

    /**
 * Sets the text for this action.
 * <p>
 * Fires a property change event for the <code>TEXT</code> property if the
 * text actually changes as a consequence.
 * </p>
 * <p>
 * The accelerator is identified by the last index of a tab character. If
 * there are no tab characters, then it is identified by the last index of a
 * '@' character. If neither, then there is no accelerator text. Note that
 * if you want to insert a '@' character into the text (but no accelerator,
 * you can simply insert a '@' or a tab at the end of the text.
 * </p>
 * 
 * @param text
 *            the text, or <code>null</code> if none
 */

你试过使用“\u0040”吗?我试过了,但没有任何改变。