|
|
|
|
|
|
|
Re: Xtext integration into Papyrus PopupEditor [message #1387086 is a reply to message #1385631] |
Tue, 24 June 2014 02:57 |
Davincho Huevada Messages: 7 Registered: June 2014 |
Junior Member |
|
|
Okay, now at least I am getting a NullPointerException that means my Plugin gets loaded.
I debugged the Exception and realized that in the class DirectEditorExtensionPoint the following code:
protected static IPopupEditorConfiguration getPopupDirectEditorConfigurationClass(IConfigurationElement configElement)
{
IPopupEditorConfiguration configuration = null;
try {
for (IConfigurationElement childConfigElement : configElement.getChildren("popupeditor")) {
for (String attname : childConfigElement.getAttributeNames()) {
Activator.log.debug(attname);
}
Object config = childConfigElement.createExecutableExtension("editorConfiguration");
if ((config instanceof IPopupEditorConfiguration))
configuration = (IPopupEditorConfiguration)config;
}
}
catch (CoreException e)
{
Activator.log(e);
configuration = null;
}
return configuration;
}
requires that the class, which is used for configuration, has to implement IPopupEditorConfiguration, as otherwise configuration would be null.
Is this correct?
My class defintion used for configuration looks like that:
public class ScalingPopupEditor extends org.eclipse.papyrus.uml.xtext.integration.DefaultXtextDirectEditorConfiguration implements IPopupEditorConfiguration
Cheers
Davincho
[Updated on: Tue, 24 June 2014 04:40] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04712 seconds