Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EMF Compare/Specifications/ResourceLocationChange"

(Created page with "= ResourceLocationChange = With EMF Compare 3.0.x, when the compared resources don't have the same name or location, no difference is detected. With EMF Compare 3.1.x, this...")
 
(Core)
Line 13: Line 13:
  
 
* A new concept named ResourceLocationChange will be added to the compare.ecore metamodel
 
* A new concept named ResourceLocationChange will be added to the compare.ecore metamodel
* ResourceNameChange will inherit from Diff.
+
* ResourceLocationChange will inherit from Diff.
 
* A new method declaration ''void resourceLocationChange(MatchResource matchResource, DifferenceKind kind, DifferenceSource source)'' will be added to the interface ''/org.eclipse.emf.compare/src/org/eclipse/emf/compare/diff/IDiffProcessor.java''
 
* A new method declaration ''void resourceLocationChange(MatchResource matchResource, DifferenceKind kind, DifferenceSource source)'' will be added to the interface ''/org.eclipse.emf.compare/src/org/eclipse/emf/compare/diff/IDiffProcessor.java''
  

Revision as of 10:46, 8 April 2015

ResourceLocationChange

With EMF Compare 3.0.x, when the compared resources don't have the same name or location, no difference is detected.

With EMF Compare 3.1.x, this kind of changes will be detected:

  • A new type of difference will be created in the compare metamodel
  • This type of difference will be named ResourceLocationChange
  • The comparison editor will display ResourceLocationChanges
  • The comparison editor will allow to merge ResourceLocationChanges.

EMF Compare 3.1.x will not allow to edit the resources names inside the comparison editor.

Core

  • A new concept named ResourceLocationChange will be added to the compare.ecore metamodel
  • ResourceLocationChange will inherit from Diff.
  • A new method declaration void resourceLocationChange(MatchResource matchResource, DifferenceKind kind, DifferenceSource source) will be added to the interface /org.eclipse.emf.compare/src/org/eclipse/emf/compare/diff/IDiffProcessor.java

Display

The ResourceLocationChanges will be display in the comparison editor like below:

EMFCompare ResourceNameChange Preview 1.png

  • The ResourceLocationChanges will be displayed under MatchResources items (like ResourceAttachmentChanges).

Merge

The merge actions will be available on ResourceLocationChanges.

The merge actions will renamed the resources on the file system.

Back to the top