diff options
author | Laurent Delaigue | 2016-08-11 13:08:29 +0000 |
---|---|---|
committer | Matthias Sohn | 2016-08-30 23:39:05 +0000 |
commit | 218f8cec2b7ceb5b9b6d64bb037e8f875521e27a (patch) | |
tree | 84d8735531a84c20415ffc9d5025cb3c1ba798b7 /org.eclipse.egit.ui.test/fragment.xml | |
parent | 92a2bac76cfcb7dbf0242d6f61d6ef54e1de51c2 (diff) | |
download | egit-218f8cec2b7ceb5b9b6d64bb037e8f875521e27a.tar.gz egit-218f8cec2b7ceb5b9b6d64bb037e8f875521e27a.tar.xz egit-218f8cec2b7ceb5b9b6d64bb037e8f875521e27a.zip |
Provide a remote mapping context to ModelProviders
Allow model providers to use remote information when trying to determine
whether a file is a part of a logical model or not. When a file has been
deleted locally, or when a file has been created on one of the remote
sides, the local side is not sufficient to compute a full model.
ModelProviders will need access to the remote file data to take these
locally unknown files into account.
Add an interface to allow ModelProviders to be ignored in
synchronizations has been added.
Change-Id: I956dfb13093781accca36142cd87cf01b479fe1a
Also-by: Laurent Goubet <laurent.goubet@obeo.fr>
Also-by: Axel Richard <axel.richard@obeo.fr>
Also-by: Alexandra Buzila <abuzila@eclipsesource.com>
Signed-off-by: Laurent Delaigue <laurent.delaigue@obeo.fr>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.egit.ui.test/fragment.xml')
-rw-r--r-- | org.eclipse.egit.ui.test/fragment.xml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui.test/fragment.xml b/org.eclipse.egit.ui.test/fragment.xml index 0ee4181b7c..71b9b1de32 100644 --- a/org.eclipse.egit.ui.test/fragment.xml +++ b/org.eclipse.egit.ui.test/fragment.xml @@ -46,5 +46,25 @@ label="ServerWithoutPage2"> </source> </extension> + <extension + id="org.eclipse.egit.ui.test.mockLogicalModelProvider" + name="Mock Logical Model Provider" + point="org.eclipse.core.resources.modelProviders"> + <modelProvider + class="org.eclipse.egit.ui.view.synchronize.MockLogicalModelProvider"> + </modelProvider> + <extends-model + id="org.eclipse.core.resources.modelProvider"/> + <enablement> + <and> + <adapt + type="org.eclipse.core.resources.IFile"/> + <test + forcePluginActivation="true" + property="org.eclipse.core.resources.name" + value="*.mocklogical"/> + </and> + </enablement> + </extension> </fragment> |