Community
Participate
Working Groups
Reported in https://bugs.eclipse.org/bugs/show_bug.cgi?id=345272: ---- when implementing the UpdateFeature i get the following NPE: I just followed the instructions under "Test: Update a EClass Name" When I invoke the context menu in the PROJECT EXPLORER under EClasses I get the following exception. Is this a bug ? PS. should i post this first to the forum instead of bugzilla ? !MESSAGE java.lang.NullPointerException !STACK 0 java.lang.NullPointerException at org.eclipse.graphiti.examples.common.RenameActionProvider.fillContextMenu(RenameActionProvider.java:57) at org.eclipse.ui.navigator.NavigatorActionService$2.run(NavigatorActionService.java:221) as additional note: it also does not work with the delivered example so I think there must be some bug --- The RenameActionProvider gets an instance of an EClass with eResource == null
Problem was that all EClass objects in the tree were unloaded right after retrieving them for listing in the tree; because of that they are proxies only for which the eResource cannot be retrieved. I fixed this by modifying the time when the unload happens. For EClasses shown in the tree the unload is only performed before refreshing the tree not afterwards now. Fixed in head. Michael
Verified in install
Part of Graphiti Indigo 0.8.0