Community
Participate
Working Groups
EcoreUIUtil.openEditor(...) methods could be a very useful utility to find and open the related editor for a model element (EObject). The OpenStrategy.OPEN_ON_RESOURCE is supposed to open the editor of the resource of the model element and select the selection to the model element in that editor. However, the int values of org.eclipse.sphinx.emf.ui.util.OpenStrategy#OPEN_ON_RESOURCE and OpenStrategy#OPEN_ON_OBJECT are both 0. Because of this, the EcoreUIUtil.openEditor() will always use the OPEN_ON_OBJECT strategy, even when the OPEN_ON_RESOURCE strategy is passed as parameter. I recommend to set distinct values for the two strategies, which would fix this issue.
This issue will be migrated to gitlab.