Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313361 - Compilation error when generate the code that contains phantom nodes
Summary: Compilation error when generate the code that contains phantom nodes
Status: NEW
Alias: None
Product: GMF-Tooling
Classification: Modeling
Component: Core (show other bugs)
Version: 2.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gmf.generation-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-18 10:13 EDT by Patrick Tessier CLA
Modified: 2010-07-19 22:21 EDT (History)
0 users

See Also:


Attachments
Used features (15.20 KB, text/plain)
2010-05-18 10:13 EDT, Patrick Tessier CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Tessier CLA 2010-05-18 10:13:03 EDT
Created attachment 168933 [details]
Used features

I'm working in the team Papyrus.

I have download the M7 and  I have the following error  in the XXXDiagramUpdater into a method that contains phantom nodes:

public static List<UMLNodeDescriptor> getXXXSemanticChildren(

[...]
Resource resource = modelElement.eResource();
COMPILATION ERROR---->for (EObject childElement : getPhantomNodesIterator(resource)) {
	if (childElement == modelElement) {
		continue;
	}
if (UMLVisualIDRegistry.getNodeVisualID(view, childElement) == ShortCutDiagramEditPart.VISUAL_ID) {
	result.add(new UMLNodeDescriptor(childElement,
						ShortCutDiagramEditPart.VISUAL_ID));
				continue;
			}
		}
		return result;
	}

	/**
	 * @generated
	 */
	private static Iterator<EObject> getPhantomNodesIterator(Resource resource) {
		return resource.getAllContents();
	}

The method returns an iterator and we have a loop that manipulates an array.
Comment 1 Eclipse Webmaster CLA 2010-07-19 22:21:55 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Generation was the original product and component for this bug