blob: 3cedef67d6c6af5fa5fc96df91b09d876bf54db0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
/*
* Copyright (c) 2010-2012, 2015 Eike Stepper (Loehne, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Martin Fluegge - initial API and implementation
*/
package org.eclipse.emf.cdo.dawn.conflicts;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.Resource;
import java.util.Map;
import java.util.Observer;
import java.util.Set;
/**
* Since Dawn 2.0 this interface is deprecated and will be removed soon. Because it was never really used, there will be
* no surragote.
*
* @author Martin Fluegge
*/
@Deprecated
public interface ResourceSynchronizer
{
public static final int NO_CONFLICT = -1;
public static final int REMOTELY_DELTETION_CONFLICT = 0;
public static final int LOCALLY_DELTETION_CONFLICT = 1;
public static final int REMOTELY_AND_LOCALLY_CHANGED_CONFLICT = 2;
void loadLastResource();
void saveLastResource(Resource localResource);
void setGloballyLocked(Set<String> lockedObjects);
Set<String> getGloballyLocked();
void setRemoteLocks(Map<String, Integer> lockedObjects);
void setIgnored(EObject obj);
void setIgnored(String id);
void setLastResource(Resource lastResource);
Resource getLastResource();
void unIgnored(String id);
int getConflictType(String key);
void resolveDeletedLocallyConflict(String xmiId);
void resolveChangedLocalyAndRemotellyConflict(String xmiId);
void resolveDeletedRemotellyConflict(String xmiId);
// void updateViewWithRemoteView(View obj);
//
// void lastResourceDeleteView(View newView);
//
// void lastResourceChangeView(View newView);
boolean isConflicted();
void cleanIgnoreList();
void setSelectedElements(Set<EObject> selectedElements);
Set<EObject> getSelectedElements();
void setIgnoreList(Set<String> ignoreList);
Set<String> getIgnoreList();
void setLocallyLocked(Set<String> locallyLocked);
Set<String> getLocallyLocked();
void addObserver(Observer observer);
}
|