Problems generating my gmf-editors with eclipse helios [message #558985] |
Wed, 15 September 2010 08:52 |
|
Hi @ all,
I want to generate my gmf-editor with helios and get the following errors:
The method getCurrentStep_3005SemanticChildren(View) is undefined for the type WorkflowDiagramUpdater
I copied the DiagramUpdater-template to my own templates and adapted it because I got an error "Can only iterate over an array or an instance of java.lang.Iterable".
So this is suspicous, too, I think.
Does anyone of you have a idea what I have to do, to get this running.
Perhaps you can give me a link to a tutorial how to migrate my editors from galileo to helios?
Thanks in advance
Best regards
Markus
|
|
|
|
Re: Problems generating my gmf-editors with eclipse helios [message #559010 is a reply to message #559005] |
Wed, 15 September 2010 10:16 |
|
Hi Gerd,
thank you for your quick answer..
The first problem (getPhantomNodesIterator(resource)) I fixed by establishing my own DiagramUpdater.xpt which I have rewritten to work_
for (java.util.Iterator semanticIterator = getPhantomNodesIterator(resource); semanticIterator.hasNext(); ) {
org.eclipse.emf.ecore.EObject childElement = (org.eclipse.emf.ecore.EObject) semanticIterator.next();
if (childElement == modelElement) {
continue;
}
So I don't have to edit it after every build.
but I tried to replace the DiagramCanonicalEditPolicy, this isn't used by gmf for this issue (added a comment, that wasn't generated).
Is it really this file to adapt? And if I want to adapt it, what exactly do I have to write
if not
List<WorkflowNodeDescriptor> childDescriptors = WorkflowDiagramUpdater
.getCurrentStep_3005SemanticChildren((View) getHost()
.getModel());
What impacts do this changes have? Is there anywhere a good tutorial on using editpolicies?
Thank you
Best regards
Markus
|
|
|
|
|
|
Re: Problems generating my gmf-editors with eclipse helios [message #663381 is a reply to message #558985] |
Mon, 04 April 2011 19:56 |
|
Hi,
I don't understand the whole issue but as it seems to be a problem that occured to two people and that you have a patch perhaps you can submit a bug and provides the patch against GMF-Tooling.
BTW, Thanks for sharing the solution
Regards,
Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
|
|
|
Powered by
FUDForum. Page generated in 0.04954 seconds