Bug 70647 [JFace] TVT3.0: Extra mnemonic in Build Project
When I click the Build Project, The build project window shows up. Title for Build project window has extra mnemonic. And Rebuild project window is also same. See attached screenshot
bundles/org.eclipse.jface/src/org/eclipse/jface/action/Action.java
*/
    public static String removeMnemonics(String text) {
        int index = text.indexOf('&');
        if (index == -1) {
            return text;
        }
        int len = text.length();
        StringBuffer sb = new StringBuffer(len);
        int lastIndex = 0;
        while (index != -1) {
            
            if (index == len - 1) {
                break;
            }
            
            if (text.charAt(index + 1) == '&') {
                ++index;
            }
            sb.append(text.substring(lastIndex, index));
            
            ++index;
            lastIndex = index;
            index = text.indexOf('&', index);
        }
        if (lastIndex < len) {
            sb.append(text.substring(lastIndex, len));
        }
        return sb.toString();
    }
    /* (non-Javadoc)