Bug 441567

Summary: Installing both ecoretools release 1.2.0 and release 2.0.0 results in a conflicting dependency
Product: [Modeling] Ecoretools Reporter: Rolf Theunissen <rolf.theunissen>
Component: GeneralAssignee: Project Inbox <ecore-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: cedric.brun
Version: unspecified   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Rolf Theunissen CLA 2014-08-12 05:40:08 EDT
When for compatibility version 1.2.0 of ecoretools is installed in Luna, the following error occurs:

Cannot complete the install because of a conflicting dependency.
  Software being installed: Diagram Editor for Ecore 1.2.0.201306071421 (org.eclipse.emf.ecoretools.feature.group 1.2.0.201306071421)
  Software currently installed: Ecore Diagram Editor (SDK) 2.0.0.201406112035 (org.eclipse.emf.ecoretools.sdk.feature.group 2.0.0.201406112035)
  Only one of the following can be installed at once: 
    Ecore Tools Documentation 2.0.0.201406112035 (org.eclipse.emf.ecoretools.doc 2.0.0.201406112035)
    Ecore Tools Documentation 1.2.0.201306071421 (org.eclipse.emf.ecoretools.doc 1.2.0.201306071421)
  Cannot satisfy dependency:
    From: Diagram Editor for Ecore 1.2.0.201306071421 (org.eclipse.emf.ecoretools.feature.group 1.2.0.201306071421)
    To: org.eclipse.emf.ecoretools.doc [1.2.0.201306071421]
  Cannot satisfy dependency:
    From: Ecore Diagram Editor (SDK) 2.0.0.201406112035 (org.eclipse.emf.ecoretools.sdk.feature.group 2.0.0.201406112035)

Documentation is non-critical, make at least the dependency optional.

Running the current version of git-head does work.

See also:
https://www.eclipse.org/forums/index.php/t/797357/
Comment 1 Rolf Theunissen CLA 2014-08-12 05:56:57 EDT
Seems that the 2.0.0 version includes an 1.2.0 legacy installation option, if the updatesite http://download.eclipse.org/ecoretools/updates/releases/2.0.0/luna is used.

A note on the FAQ would have been very helpful. 

Moreover, the editor is not registered for .ecorediag files by default. Manually opening the files does work.
Comment 2 Cedric Brun CLA 2014-09-12 06:22:09 EDT
(In reply to Rolf Theunissen from comment #1)
> Seems that the 2.0.0 version includes an 1.2.0 legacy installation option,
> if the updatesite
> http://download.eclipse.org/ecoretools/updates/releases/2.0.0/luna is used.
> 
> A note on the FAQ would have been very helpful. 
> 
> Moreover, the editor is not registered for .ecorediag files by default.
> Manually opening the files does work.

Hi, and thanks for your feedback !

I don't recall any change that would explain why the editor is not registered and looking at the code it looks like it is. 

If I start a runtime with the legacy plugins, the "ecore diagram editor" is picked up as the default editor. Maybe Eclipse kept the "text editor" as your prefered editor if you opened the .ecorediag with it before installing the legacy plugins ?
Comment 3 Cedric Brun CLA 2014-09-12 10:09:16 EDT
I added an FAQ on the website and an entry in it :

https://www.eclipse.org/ecoretools/doc/index.html?#FAQ
Comment 4 Rolf Theunissen CLA 2014-09-18 03:25:16 EDT
In the current 2.0.0 release, the "ecore diagram editor" is registered as the default editor for .ecorediag files, however double clicking of the files always opens the text-editor. Manually the "ecore diagram editor" can be selected.

The issue is solved in the current 2.0.1 release.
Comment 5 Cedric Brun CLA 2017-03-13 11:40:15 EDT
Cleaning up old bugs, Looks like we are good here.