Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Daussy2014-04-04 12:27:09 +0000
committerAxel RICHARD2014-04-09 15:26:46 +0000
commitaab6297ba52c9141c98fb79ea1ee0f16c8866bc7 (patch)
treed0d71a4e081fc328e56b20040b9ff1c8d49f4eb0
parent1cb2257463bd4d508774aae2dd8982d60b3d34f7 (diff)
downloadorg.eclipse.emf.compare-aab6297ba52c9141c98fb79ea1ee0f16c8866bc7.tar.gz
org.eclipse.emf.compare-aab6297ba52c9141c98fb79ea1ee0f16c8866bc7.tar.xz
org.eclipse.emf.compare-aab6297ba52c9141c98fb79ea1ee0f16c8866bc7.zip
[429636] Documentation update: Groups
Updates user documentation of default group customization. Updates developer documentation of groups extension point. Bug: 429636 Change-Id: I87a0391dc95796bacbf79015976e07772e671651 Signed-off-by: Arthur Daussy <arthur.daussy@obeo.fr>
-rw-r--r--plugins/org.eclipse.emf.compare.doc/src/developer/developer-guide.mediawiki7
-rw-r--r--plugins/org.eclipse.emf.compare.doc/src/images/EMF_Compare_Groups_Preference_Page.pngbin0 -> 56533 bytes
-rw-r--r--plugins/org.eclipse.emf.compare.doc/src/images/EMF_Compare_Groups_Synchronization_Dialog.pngbin0 -> 23300 bytes
-rw-r--r--plugins/org.eclipse.emf.compare.doc/src/user/user-guide.mediawiki23
4 files changed, 29 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.compare.doc/src/developer/developer-guide.mediawiki b/plugins/org.eclipse.emf.compare.doc/src/developer/developer-guide.mediawiki
index 26eeb62b5..322f1248d 100644
--- a/plugins/org.eclipse.emf.compare.doc/src/developer/developer-guide.mediawiki
+++ b/plugins/org.eclipse.emf.compare.doc/src/developer/developer-guide.mediawiki
@@ -570,7 +570,12 @@ You can provide your own groups by adding an extension of type ''org.eclipse.emf
This extension has three fields:
* class: a class that implements ''org.eclipse.emf.compare.rcp.ui.structuremergeviewer.groups.IDifferenceGroupProvider''
* label: the label that will be displayed in the UI.
-* activeByDefault: true if you want your filter be active by default, false otherwise.
+* description: A description of the group. (Used in interface)
+* rank: The rank of the group. The highest rank enabled for a comparison is used. ( Default value : 0)
+* type: Type of comparison this group can handle (Default value: BOTH).
+** THREE_WAY: This group can only handle three way comparison.
+** TWO_WAY: This group can handle two way comparison.
+** BOTH: This group can handle two and three way comparisons.
The ''org.eclipse.emf.compare.rcp.ui.structuremergeviewer.groups.IDifferenceGroupProvider'''s contract is:
diff --git a/plugins/org.eclipse.emf.compare.doc/src/images/EMF_Compare_Groups_Preference_Page.png b/plugins/org.eclipse.emf.compare.doc/src/images/EMF_Compare_Groups_Preference_Page.png
new file mode 100644
index 000000000..5e2068319
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.doc/src/images/EMF_Compare_Groups_Preference_Page.png
Binary files differ
diff --git a/plugins/org.eclipse.emf.compare.doc/src/images/EMF_Compare_Groups_Synchronization_Dialog.png b/plugins/org.eclipse.emf.compare.doc/src/images/EMF_Compare_Groups_Synchronization_Dialog.png
new file mode 100644
index 000000000..b0a732b49
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.doc/src/images/EMF_Compare_Groups_Synchronization_Dialog.png
Binary files differ
diff --git a/plugins/org.eclipse.emf.compare.doc/src/user/user-guide.mediawiki b/plugins/org.eclipse.emf.compare.doc/src/user/user-guide.mediawiki
index b86d9e768..d394c8bca 100644
--- a/plugins/org.eclipse.emf.compare.doc/src/user/user-guide.mediawiki
+++ b/plugins/org.eclipse.emf.compare.doc/src/user/user-guide.mediawiki
@@ -429,6 +429,29 @@ The second panel (2) is used to define the synchronization behavior between the
** If your answer is "No", nothing will be synchronized. Next time you will launch a comparison, the activated filters will be defined by the preferences.
** If you check "Do not ask me again", the above behaviors will be executed and the synchronization behavior will change. It will be set to "Always" if you have selected "Yes". It will be set to "Never" if you have selected "No".
+==== Groups ====
+
+You have already been explained how to use groups to gather differences in EMF Compare UI (see [[#Toolbar]]). This chapter teaches you how to customize the default activated group in EMF Compare.
+
+First open the Groups preference page:
+* Open preferences: Window > Preferences > EMF Compare
+* Select "Groups" page.
+
+[[File:../images/EMF_Compare_Groups_Preference_Page.png]]
+
+This page is divided in two tabs. The first tab handles 2-way comparisons and the second tab handles 3-way comparisons.
+Each tab contains two panels:
+
+The top panel (1) is used to define the default group. EMF Compare uses an ordered list of groups to determine which group should be the default one. The first group in this list that can handle the comparison is chosen as default group. To change it, simply put the desired group in top of the list. To do so, use the up and down buttons located on the right side of the panel.
+
+The bottom panel (2) is used to define a synchronization behavior between selected group in UI and the preferences. The combo box lets you choose between 3 different behaviors:
+* Always: Each time you will select a group in UI, it will become the default group.
+* Never: The selection of a group in UI will never modify the default group.
+* Prompt: You will be asked each time you change the active group if you want to synchronize it with the preferences. A popup will appear. It will propose several ways to handle the newly selected group: [[File:../images/EMF_Compare_Groups_Synchronization_Dialog.png]]
+** If your answer is "Yes", the current group will be synchronized with the preferences. In other word, it will become the default group.
+** If your answer is "No", nothing will be synchronized. Next time you will start a comparison, the default group will be defined by the preferences.
+** If you check "Do not ask me again", the above behaviors will be executed and the synchronization behavior will change. It will be set to "Always" if you have selected "Yes". It will be set to "Never" if you have selected "No".
+
== Features ==
=== Grouping Differences ===

Back to the top