After updating to the newest GMF and GEF versions the code generated for my xxxDocumentProvider (which handles opening the diagram file) does not handle IFileEditorInput anymore. It only handles URIEditorInput.
/**
* @generated
*/
protected ElementInfo createElementInfo(Object element) throws CoreException {
if (false == element instanceof URIEditorInput) {
throw new CoreException(new Status(IStatus.ERROR, StatemachineDiagramEditorPlugin.ID, 0, NLS.bind(
Messages.NewStatemachineDocumentProvider_IncorrectInputError,
new Object[] {
element, "org.eclipse.emf.common.ui.URIEditorInput" //$NON-NLS-1$
}), null));
}
IEditorInput editorInput = (IEditorInput) element;
IDiagramDocument document = (IDiagramDocument) createDocument(editorInput);
ResourceSetInfo info = new ResourceSetInfo(document, editorInput);
info.setModificationStamp(computeModificationStamp(info));
info.fStatus = null;
return info;
}
What do I have to do so that GMF generates the method like it did before?
[Updated on: Tue, 01 October 2019 09:07]
Report message to a moderator