|
Re: integrate WSDLEditor(org.eclipse.wst.wsdl.ui) into a rcp project. [message #768407 is a reply to message #767891] |
Tue, 20 December 2011 04:36 |
logian Messages: 2 Registered: December 2011 |
Junior Member |
|
|
I fixed the second problem. I added plugin dependency of "org.eclipse.core.runtime.compatibility;bundle-version="3.2.100"", then soap and http appeared.
I traced the source code of org.eclipse.wst.wsdl.ui.*.
The error arises here.
______________
org.eclipse.wst.wsdl.ui.internal.WSDLEditorPlugin.ContentGeneratorUIExtensionRegistryReader.readElement();
protected void readElement(IConfigurationElement element)
{
if (element.getName().equals(ELEMENT_CONTENT_GENERATOR))
{
String name = element.getAttribute(ATT_NAME);
String namespace = element.getAttribute(ATT_NAMESPACE);
if (name != null && namespace != null)
{
ContentGeneratorUIExtension bindingGeneratorExtension = new ContentGeneratorUIExtension(name, namespace);
bindingGeneratorExtension.setPortOptionsPageClassName(element.getAttribute(ATT_PORT_OPTIONS_PAGE_CLASS));
bindingGeneratorExtension.setBindingOptionsPageClassName(element.getAttribute(ATT_BINDING_OPTIONS_PAGE_CLASS));
bindingGeneratorExtension.setLabel(element.getAttribute(ATT_LABEL));
try
{
ClassLoader pluginClasssLoader = element.getDeclaringExtension().getDeclaringPluginDescriptor().getPlugin().getClass().getClassLoader();// Error arises here. getDeclaringPluginDescriptor() is not supported if you have not added dependendy of org.eclipse.core.runtime.compatibility.
bindingGeneratorExtension.setClassLoader(pluginClasssLoader);
registry.add(bindingGeneratorExtension);
}
catch (Exception e)
{//Here, I think the exception should be printed. Other wise, it's very hard to find out the problem.
}
}
}
}
Line 563
ClassLoader pluginClasssLoader = element.getDeclaringExtension().getDeclaringPluginDescriptor().getPlugin().getClass().getClassLoader();
IExtension.getDeclaringPluginDescriptor()
Deprecated. IPluginDescriptor is not part of the new runtime and its function has been split over several parts of the new runtime. This method is not available (returns null) if the compatibility layer is not installed. Use getNamespace() to get the symbolic id of the declaring plug-in. See IPluginDescriptor to see how to update your use-cases.
______________________
Sorry for the mess of my words. But hope that I could help someone:)
[Updated on: Tue, 20 December 2011 04:36] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03066 seconds