final String resourceString = TextUtils.getText(string);
return resourceString.replaceFirst("&", "");
}
private Window intercept() {
final WindowInterceptor interceptor = WindowInterceptor
.init(new Trigger() {
public void run() throws Exception {
Bundle[] bundles = Activator.getBundleContext().getBundles();
for(Bundle b:bundles){
if(b.getSymbolicName().equals("org.freeplane.core")){
b.start();
return;
}
}
}
});
interceptor.process(new WindowHandler() {
public Trigger process(Window window) throws Exception {
setWindow(window);
return Trigger.DO_NOTHING;
}
}).process(new WindowHandler() {