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/ResourceNameChange"

(Created page with "= ResourceNameChange = With EMF Compare 3.0.x, when the compared resources don't have the same name, no difference is detected. With EMF Compare 3.1.x, this kind of changes...")
 
Line 9: Line 9:
 
* The comparison editor will allow to merge ResourceNameChanges.
 
* The comparison editor will allow to merge ResourceNameChanges.
 
EMF Compare 3.1.x will not allow to edit the resources names inside the comparison editor.
 
EMF Compare 3.1.x will not allow to edit the resources names inside the comparison editor.
 +
 +
== Core ==
 +
 +
* A new concept named ResourceNamechange will be added to the compare.ecore metamodel
 +
* ResourceNameChange will inherit from Diff.
 +
* A new method declaration void resourceNameChange(Match match, DifferenceKind kind, DifferenceSource source) will be added to the interface /org.eclipse.emf.compare/src/org/eclipse/emf/compare/diff/IDiffProcessor.java
  
 
== Display ==
 
== Display ==

Revision as of 09:57, 8 April 2015

ResourceNameChange

With EMF Compare 3.0.x, when the compared resources don't have the same name, 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 ResourceNameChange
  • The comparison editor will display ResourceNameChanges
  • The comparison editor will allow to merge ResourceNameChanges.

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

Core

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

Display

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

EMFCompare ResourceNameChange Preview 1.png

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

Merge

The merge actions will be available on ResourceNameChanges. The merge actions will renamed the resources on the file system.

Back to the top