Community
Participate
Working Groups
Created attachment 141294 [details] patch for AlwaysWelcomeCheckbox java file Build ID: 20090619-0625 Steps To Reproduce: 1. Create RCP app with customised intro 2. Add the AlwaysWelcomeCheckbox 3. Run app - error message when click checkbox. More information: Incorrect plug-in in HTML of createContent(...). Currently: out.print("<div id=\""+id+"\"><input type=\"checkbox\" "+ //$NON-NLS-1$//$NON-NLS-2$ "onClick=window.location="+ //$NON-NLS-1$ "\"http://org.eclipse.ui.intro/runAction?"+ //$NON-NLS-1$ "pluginId=org.eclipse.platform&"+ //$NON-NLS-1$ "class="+this.getClass().getName()+"\" "); //$NON-NLS-1$ //$NON-NLS-2$ Should be: out.print("<div id=\""+id+"\"><input type=\"checkbox\" "+ //$NON-NLS-1$//$NON-NLS-2$ "onClick=window.location="+ //$NON-NLS-1$ "\"http://org.eclipse.ui.intro/runAction?"+ //$NON-NLS-1$ "pluginId=org.eclipse.ui.intro&"+ //$NON-NLS-1$ "class="+this.getClass().getName()+"\" "); //$NON-NLS-1$ //$NON-NLS-2$ Patch to fix attached.
Chris A - can you take a look at this?
(In reply to comment #1) > Chris A - can you take a look at this? > I don't get an error when I use the Checkbox as it currently is (Although I did not create an RCP app). That being said, IIntroAction does outline a sample URL as: --- http://org.eclipse.ui.intro/runAction?pluginId=x.y.z&class=x.y.z.someClass --- which is a convention I did not use when coding this (I must have left the 'org.eclipse.platform' id from before moving the AlwaysWelcomeCheckbox class). So regardless of my repro case, I think this would be an appropriate change to make.
This does need to get fixed. The code as is seems to work OK as long as org.eclipse.platform is part of the application, it uses the class loader from that bundle to load the class from org.eclipse.ui.intro. I don't know enough about class loaders to know exactly what circumstances this will work in but the code is incorrect and I would expect it to fail in an RCP app that did not include org.eclipse.platform. Fixed in HEAD.
Fixed in 3.5 maintenance stream