View | Details | Raw Unified | Return to bug 110317 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/gmf/tests/runtime/emf/clipboard/core/BaseClipboardTest.java (-5 / +5 lines)
Lines 19-25 Link Here
19
import org.eclipse.emf.examples.extlibrary.Writer;
19
import org.eclipse.emf.examples.extlibrary.Writer;
20
import org.eclipse.gmf.runtime.emf.clipboard.core.ClipboardUtil;
20
import org.eclipse.gmf.runtime.emf.clipboard.core.ClipboardUtil;
21
import org.eclipse.gmf.runtime.emf.core.edit.MEditingDomain;
21
import org.eclipse.gmf.runtime.emf.core.edit.MEditingDomain;
22
import org.eclipse.gmf.runtime.emf.core.edit.MResourceOption;
23
import org.eclipse.gmf.runtime.emf.core.edit.MRunnable;
22
import org.eclipse.gmf.runtime.emf.core.edit.MRunnable;
24
import org.eclipse.gmf.runtime.emf.core.exceptions.MSLActionAbandonedException;
23
import org.eclipse.gmf.runtime.emf.core.exceptions.MSLActionAbandonedException;
25
import org.eclipse.gmf.runtime.emf.core.internal.commands.MSLUndoStack.ActionLockMode;
24
import org.eclipse.gmf.runtime.emf.core.internal.commands.MSLUndoStack.ActionLockMode;
Lines 103-112 Link Here
103
					domain.runAsWrite(new MRunnable() {
102
					domain.runAsWrite(new MRunnable() {
104
						public Object run() {
103
						public Object run() {
105
							try {
104
							try {
106
								Resource originalRes = domain.loadResource(URI
105
								Resource originalRes = domain.getResourceSet().getResource(
107
									.createURI(CLIPBOARD_TESTS_BUNDLE.getEntry(
106
										URI.createURI(
108
										"/test_models/clipboard_test.extlibrary") //$NON-NLS-1$
107
												CLIPBOARD_TESTS_BUNDLE.getEntry(
109
										.toString()).toString(), MResourceOption.URI);
108
													"/test_models/clipboard_test.extlibrary") //$NON-NLS-1$
109
										.toString()), true);
110
								originalRes.setURI(URI.createPlatformResourceURI(RESOURCE_NAME));
110
								originalRes.setURI(URI.createPlatformResourceURI(RESOURCE_NAME));
111
								originalRes.save(Collections.EMPTY_MAP);
111
								originalRes.save(Collections.EMPTY_MAP);
112
								testResource = originalRes;
112
								testResource = originalRes;
(-)src/org/eclipse/gmf/runtime/emf/core/internal/domain/MSLEditingDomain.java (-8 / +6 lines)
Lines 81-87 Link Here
81
import org.eclipse.gmf.runtime.emf.core.internal.plugin.MSLDebugOptions;
81
import org.eclipse.gmf.runtime.emf.core.internal.plugin.MSLDebugOptions;
82
import org.eclipse.gmf.runtime.emf.core.internal.plugin.MSLPlugin;
82
import org.eclipse.gmf.runtime.emf.core.internal.plugin.MSLPlugin;
83
import org.eclipse.gmf.runtime.emf.core.internal.plugin.MSLStatusCodes;
83
import org.eclipse.gmf.runtime.emf.core.internal.plugin.MSLStatusCodes;
84
import org.eclipse.gmf.runtime.emf.core.internal.resources.LogicalResourceWrapper;
85
import org.eclipse.gmf.runtime.emf.core.internal.resources.MResource;
84
import org.eclipse.gmf.runtime.emf.core.internal.resources.MResource;
86
import org.eclipse.gmf.runtime.emf.core.internal.resources.MSLExtendedMetaData;
85
import org.eclipse.gmf.runtime.emf.core.internal.resources.MSLExtendedMetaData;
87
import org.eclipse.gmf.runtime.emf.core.internal.resources.MSLPathmap;
86
import org.eclipse.gmf.runtime.emf.core.internal.resources.MSLPathmap;
Lines 89-95 Link Here
89
import org.eclipse.gmf.runtime.emf.core.internal.util.MSLComposedAdapterFactory;
88
import org.eclipse.gmf.runtime.emf.core.internal.util.MSLComposedAdapterFactory;
90
import org.eclipse.gmf.runtime.emf.core.internal.util.MSLConstants;
89
import org.eclipse.gmf.runtime.emf.core.internal.util.MSLConstants;
91
import org.eclipse.gmf.runtime.emf.core.internal.util.MSLUtil;
90
import org.eclipse.gmf.runtime.emf.core.internal.util.MSLUtil;
92
import org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource;
93
91
94
/**
92
/**
95
 * This is the implementation of the MSL editing domain interface. The
93
 * This is the implementation of the MSL editing domain interface. The
Lines 1961-1977 Link Here
1961
1959
1962
	/** @deprecated */
1960
	/** @deprecated */
1963
	public boolean isLogicalResource(Resource resource) {
1961
	public boolean isLogicalResource(Resource resource) {
1964
		return resource instanceof ILogicalResource;
1962
		return resource instanceof org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource;
1965
	}
1963
	}
1966
	
1964
	
1967
	/** @deprecated */
1965
	/** @deprecated */
1968
	public ILogicalResource asLogicalResource(Resource resource) {
1966
	public org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource asLogicalResource(Resource resource) {
1969
		ILogicalResource result = null;
1967
		org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource result = null;
1970
		
1968
		
1971
		if (resource instanceof ILogicalResource) {
1969
		if (resource instanceof org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource) {
1972
			result = (ILogicalResource) resource;
1970
			result = (org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource) resource;
1973
		} else {
1971
		} else {
1974
			result = LogicalResourceWrapper.get(resource);
1972
			result = org.eclipse.gmf.runtime.emf.core.internal.resources.LogicalResourceWrapper.get(resource);
1975
		}
1973
		}
1976
		
1974
		
1977
		return result;
1975
		return result;
(-)src/org/eclipse/gmf/runtime/emf/core/internal/domain/MSLAdapterFactoryEditingDomain.java (+2 lines)
Lines 108-113 Link Here
108
				//    the EPackage for some namespace in one of my resources.
108
				//    the EPackage for some namespace in one of my resources.
109
				//    Take this opportunity also to clean out proxies
109
				//    Take this opportunity also to clean out proxies
110
				resources = new ResourcesEList() {
110
				resources = new ResourcesEList() {
111
					private static final long serialVersionUID = 401816160908753449L;
112
111
					protected void didRemove(int index, Object oldObject) {
113
					protected void didRemove(int index, Object oldObject) {
112
						EPackage.Registry registry = getPackageRegistry();
114
						EPackage.Registry registry = getPackageRegistry();
113
						
115
						
(-)src/org/eclipse/gmf/runtime/emf/core/internal/index/MSLExportsAdapter.java (+2 lines)
Lines 27-32 Link Here
27
	extends HashMap
27
	extends HashMap
28
	implements Adapter {
28
	implements Adapter {
29
29
30
	private static final long serialVersionUID = -9110312883845863489L;
31
30
	/**
32
	/**
31
	 * Constructor.
33
	 * Constructor.
32
	 */
34
	 */
(-)src/org/eclipse/gmf/runtime/emf/core/internal/index/MSLReferenceAdapter.java (+2 lines)
Lines 27-32 Link Here
27
	extends HashMap
27
	extends HashMap
28
	implements Adapter {
28
	implements Adapter {
29
29
30
	private static final long serialVersionUID = 1989964645244552123L;
31
30
	/**
32
	/**
31
	 * Constructor.
33
	 * Constructor.
32
	 */
34
	 */
(-)src/org/eclipse/gmf/runtime/emf/core/internal/index/MSLImportsAdapter.java (+2 lines)
Lines 27-32 Link Here
27
	extends HashMap
27
	extends HashMap
28
	implements Adapter {
28
	implements Adapter {
29
29
30
	private static final long serialVersionUID = 7770242431763053066L;
31
30
	/**
32
	/**
31
	 * Constructor.
33
	 * Constructor.
32
	 */
34
	 */
(-)src/org/eclipse/gmf/runtime/emf/core/edit/MEditingDomain.java (-2 / +2 lines)
Lines 27-33 Link Here
27
import org.eclipse.emf.edit.domain.EditingDomain;
27
import org.eclipse.emf.edit.domain.EditingDomain;
28
import org.eclipse.gmf.runtime.emf.core.exceptions.MSLActionAbandonedException;
28
import org.eclipse.gmf.runtime.emf.core.exceptions.MSLActionAbandonedException;
29
import org.eclipse.gmf.runtime.emf.core.internal.domain.MSLEditingDomain;
29
import org.eclipse.gmf.runtime.emf.core.internal.domain.MSLEditingDomain;
30
import org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource;
31
30
32
/**
31
/**
33
 * <p>
32
 * <p>
Lines 392-398 Link Here
392
	 *     instead, by defining containment features that are capable of storing
391
	 *     instead, by defining containment features that are capable of storing
393
	 *     proxies.
392
	 *     proxies.
394
	 */
393
	 */
395
	public abstract ILogicalResource asLogicalResource(Resource resource);
394
	public abstract org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource
395
			asLogicalResource(Resource resource);
396
396
397
	/**
397
	/**
398
	 * Opens an undo interval. An undo interval must be open before starting a
398
	 * Opens an undo interval. An undo interval must be open before starting a
(-)src/org/eclipse/gmf/runtime/emf/core/edit/IDemuxedMListener2.java (-5 / +6 lines)
Lines 16-23 Link Here
16
import org.eclipse.emf.ecore.EObject;
16
import org.eclipse.emf.ecore.EObject;
17
import org.eclipse.emf.ecore.resource.Resource;
17
import org.eclipse.emf.ecore.resource.Resource;
18
18
19
import org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource;
20
21
19
22
/**
20
/**
23
 * An optional extension to the {@link IDemuxedListener} interface for listeners
21
 * An optional extension to the {@link IDemuxedListener} interface for listeners
Lines 45-51 Link Here
45
	 *     proxies.
43
	 *     proxies.
46
	 */
44
	 */
47
	public void handleElementSeparatedEvent(Notification notification,
45
	public void handleElementSeparatedEvent(Notification notification,
48
		ILogicalResource resource, EObject eObject, Resource newResource);
46
			org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource resource,
47
			EObject eObject, Resource newResource);
49
	
48
	
50
	/**
49
	/**
51
	 * Notifies me of an event indicating that an element in a logical resource
50
	 * Notifies me of an event indicating that an element in a logical resource
Lines 63-69 Link Here
63
	 *     proxies.
62
	 *     proxies.
64
	 */
63
	 */
65
	public void handleElementAbsorbedEvent(Notification notification,
64
	public void handleElementAbsorbedEvent(Notification notification,
66
			ILogicalResource resource, EObject eObject, Resource oldResource);
65
			org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource resource,
66
			EObject eObject, Resource oldResource);
67
	
67
	
68
	/**
68
	/**
69
	 * Notifies me of an event indicating that an element in a logical resource
69
	 * Notifies me of an event indicating that an element in a logical resource
Lines 79-85 Link Here
79
	 *     proxies.
79
	 *     proxies.
80
	 */
80
	 */
81
	public void handleElementLoadedEvent(Notification notification,
81
	public void handleElementLoadedEvent(Notification notification,
82
			ILogicalResource resource, EObject eObject);
82
			org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource resource,
83
			EObject eObject);
83
	
84
	
84
	/**
85
	/**
85
	 * Notifies me of an event indicating that a root has been added to the resource
86
	 * Notifies me of an event indicating that a root has been added to the resource
(-)src/org/eclipse/gmf/runtime/emf/core/edit/DemuxedMListener.java (-5 / +6 lines)
Lines 16-23 Link Here
16
import org.eclipse.emf.ecore.EObject;
16
import org.eclipse.emf.ecore.EObject;
17
import org.eclipse.emf.ecore.resource.Resource;
17
import org.eclipse.emf.ecore.resource.Resource;
18
18
19
import org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource;
20
21
19
22
20
23
/**
21
/**
Lines 179-185 Link Here
179
	 *     proxies.
177
	 *     proxies.
180
	 */
178
	 */
181
	public void handleElementSeparatedEvent(Notification notification,
179
	public void handleElementSeparatedEvent(Notification notification,
182
			ILogicalResource resource, EObject eObject, Resource newResource) {
180
			org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource resource,
181
			EObject eObject, Resource newResource) {
183
		// nothing to do
182
		// nothing to do
184
	}
183
	}
185
	
184
	
Lines 191-197 Link Here
191
	 *     proxies.
190
	 *     proxies.
192
	 */
191
	 */
193
	public void handleElementAbsorbedEvent(Notification notification,
192
	public void handleElementAbsorbedEvent(Notification notification,
194
			ILogicalResource resource, EObject eObject, Resource oldResource) {
193
			org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource resource,
194
			EObject eObject, Resource oldResource) {
195
		// nothing to do
195
		// nothing to do
196
	}
196
	}
197
	
197
	
Lines 203-209 Link Here
203
	 *     proxies.
203
	 *     proxies.
204
	 */
204
	 */
205
	public void handleElementLoadedEvent(Notification notification,
205
	public void handleElementLoadedEvent(Notification notification,
206
			ILogicalResource resource, EObject eObject) {
206
			org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource resource,
207
			EObject eObject) {
207
		// nothing to do
208
		// nothing to do
208
	}
209
	}
209
210
(-)src/org/eclipse/gmf/runtime/emf/core/internal/exceptions/MSLActionProtocolException.java (+2 lines)
Lines 21-26 Link Here
21
public class MSLActionProtocolException
21
public class MSLActionProtocolException
22
	extends MSLRuntimeException {
22
	extends MSLRuntimeException {
23
23
24
	private static final long serialVersionUID = 6373560684111580870L;
25
24
	/**
26
	/**
25
	 * Initializes me without any details.
27
	 * Initializes me without any details.
26
	 */
28
	 */
(-)src/org/eclipse/gmf/runtime/emf/core/exceptions/MSLActionAbandonedException.java (+2 lines)
Lines 24-29 Link Here
24
public class MSLActionAbandonedException
24
public class MSLActionAbandonedException
25
	extends MSLCheckedException {
25
	extends MSLCheckedException {
26
26
27
	private static final long serialVersionUID = 6054386644313187147L;
28
	
27
	private final IStatus status;
29
	private final IStatus status;
28
30
29
	/**
31
	/**
(-)src/org/eclipse/gmf/runtime/emf/core/exceptions/MSLCheckedException.java (+2 lines)
Lines 19-24 Link Here
19
public class MSLCheckedException
19
public class MSLCheckedException
20
	extends Exception {
20
	extends Exception {
21
21
22
	private static final long serialVersionUID = 7693613568779908246L;
23
22
	/**
24
	/**
23
	 * Initializes me without any details.
25
	 * Initializes me without any details.
24
	 */
26
	 */
(-)src/org/eclipse/gmf/runtime/emf/core/exceptions/MSLRuntimeException.java (+2 lines)
Lines 19-24 Link Here
19
public class MSLRuntimeException
19
public class MSLRuntimeException
20
	extends RuntimeException {
20
	extends RuntimeException {
21
21
22
	private static final long serialVersionUID = 4756697463399265322L;
23
22
	/**
24
	/**
23
	 * Initializes me without any details.
25
	 * Initializes me without any details.
24
	 */
26
	 */
(-)src/org/eclipse/gmf/runtime/emf/core/internal/resources/MSLResource.java (-2 / +1 lines)
Lines 27-33 Link Here
27
import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl;
27
import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl;
28
import org.eclipse.gmf.runtime.emf.core.edit.MEditingDomain;
28
import org.eclipse.gmf.runtime.emf.core.edit.MEditingDomain;
29
import org.eclipse.gmf.runtime.emf.core.internal.util.MSLConstants;
29
import org.eclipse.gmf.runtime.emf.core.internal.util.MSLConstants;
30
import org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource;
31
30
32
/**
31
/**
33
 * Custom implementation of an XMIResource.
32
 * Custom implementation of an XMIResource.
Lines 36-42 Link Here
36
 */
35
 */
37
public class MSLResource
36
public class MSLResource
38
	extends XMIResourceImpl
37
	extends XMIResourceImpl
39
	implements ILogicalResource {
38
	implements org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource {
40
39
41
	private boolean useIDAttributes = false;
40
	private boolean useIDAttributes = false;
42
	
41
	
(-)src/org/eclipse/gmf/runtime/emf/core/internal/resources/LogicalResourceWrapper.java (-6 / +6 lines)
Lines 20-26 Link Here
20
import org.eclipse.emf.common.util.URI;
20
import org.eclipse.emf.common.util.URI;
21
import org.eclipse.emf.ecore.EObject;
21
import org.eclipse.emf.ecore.EObject;
22
import org.eclipse.emf.ecore.resource.Resource;
22
import org.eclipse.emf.ecore.resource.Resource;
23
import org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource;
24
23
25
24
26
/**
25
/**
Lines 37-43 Link Here
37
 */
36
 */
38
public class LogicalResourceWrapper
37
public class LogicalResourceWrapper
39
	extends AbstractResourceWrapper
38
	extends AbstractResourceWrapper
40
	implements ILogicalResource {
39
	implements org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource {
41
	
40
	
42
	private static final CanonicalMap instances = new CanonicalMap() {
41
	private static final CanonicalMap instances = new CanonicalMap() {
43
		protected AbstractResourceWrapper createWrapper(Resource resource) {
42
		protected AbstractResourceWrapper createWrapper(Resource resource) {
Lines 61-73 Link Here
61
	 * @param resource the resource to get an unmodifiable view of
60
	 * @param resource the resource to get an unmodifiable view of
62
	 * @return its unmodifiable view
61
	 * @return its unmodifiable view
63
	 */
62
	 */
64
	public static ILogicalResource get(Resource resource) {
63
	public static org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource get(
65
		ILogicalResource result = null;
64
			Resource resource) {
65
		org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource result = null;
66
		
66
		
67
		if (resource instanceof LogicalResourceWrapper) {
67
		if (resource instanceof LogicalResourceWrapper) {
68
			result = (ILogicalResource) resource;
68
			result = (org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource) resource;
69
		} else {
69
		} else {
70
			result = (ILogicalResource) instances.get(resource);
70
			result = (org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource) instances.get(resource);
71
		}
71
		}
72
		
72
		
73
		return result;
73
		return result;
(-)src/org/eclipse/gmf/runtime/emf/core/internal/plugin/MSLPlugin.java (-3 / +3 lines)
Lines 11-17 Link Here
11
11
12
package org.eclipse.gmf.runtime.emf.core.internal.plugin;
12
package org.eclipse.gmf.runtime.emf.core.internal.plugin;
13
13
14
import org.eclipse.gmf.runtime.common.core.plugin.XToolsPlugin;
14
import org.eclipse.core.runtime.Plugin;
15
import org.eclipse.gmf.runtime.common.core.util.Trace;
15
import org.eclipse.gmf.runtime.common.core.util.Trace;
16
import org.eclipse.gmf.runtime.emf.core.internal.util.MSLAdapterFactoryManager;
16
import org.eclipse.gmf.runtime.emf.core.internal.util.MSLAdapterFactoryManager;
17
17
Lines 21-27 Link Here
21
 * @author rafikj
21
 * @author rafikj
22
 */
22
 */
23
public class MSLPlugin
23
public class MSLPlugin
24
	extends XToolsPlugin {
24
	extends Plugin {
25
25
26
	private static MSLPlugin plugin;
26
	private static MSLPlugin plugin;
27
		
27
		
Lines 44-50 Link Here
44
	 * Get plugin ID.
44
	 * Get plugin ID.
45
	 */
45
	 */
46
	public static String getPluginId() {
46
	public static String getPluginId() {
47
		return getDefault().getSymbolicName();
47
		return getDefault().getBundle().getSymbolicName();
48
	}
48
	}
49
49
50
	/**
50
	/**
(-)src/org/eclipse/gmf/runtime/emf/core/util/ResourceUtil.java (-2 / +2 lines)
Lines 33-39 Link Here
33
import org.eclipse.gmf.runtime.emf.core.internal.resources.MResource;
33
import org.eclipse.gmf.runtime.emf.core.internal.resources.MResource;
34
import org.eclipse.gmf.runtime.emf.core.internal.util.MSLAdapterFactoryManager;
34
import org.eclipse.gmf.runtime.emf.core.internal.util.MSLAdapterFactoryManager;
35
import org.eclipse.gmf.runtime.emf.core.internal.util.MSLUtil;
35
import org.eclipse.gmf.runtime.emf.core.internal.util.MSLUtil;
36
import org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource;
37
36
38
/**
37
/**
39
 * This class contains a set of <code>Resource</code> related utility methods.
38
 * This class contains a set of <code>Resource</code> related utility methods.
Lines 102-108 Link Here
102
	 *     instead, by defining containment features that are capable of storing
101
	 *     instead, by defining containment features that are capable of storing
103
	 *     proxies.
102
	 *     proxies.
104
s	 */
103
s	 */
105
	public static ILogicalResource asLogicalResource(Resource resource) {
104
	public static org.eclipse.gmf.runtime.emf.core.resources.ILogicalResource asLogicalResource(
105
			Resource resource) {
106
		return MEditingDomain.INSTANCE.asLogicalResource(resource);
106
		return MEditingDomain.INSTANCE.asLogicalResource(resource);
107
	}
107
	}
108
	
108
	
(-)src/org/eclipse/gmf/runtime/emf/core/internal/commands/ExecutionLock.java (-2 / +2 lines)
Lines 133-140 Link Here
133
			// MSLPlugin.getDefault().getSymbolicName(), IStatus.OK, "", null);
133
			// MSLPlugin.getDefault().getSymbolicName(), IStatus.OK, "", null);
134
			// //$NON-NLS-1$
134
			// //$NON-NLS-1$
135
			//			else
135
			//			else
136
			return new Status(IStatus.OK, MSLPlugin.getDefault()
136
			return new Status(IStatus.OK, MSLPlugin.getPluginId(),
137
				.getSymbolicName(), IStatus.OK, "", null); //$NON-NLS-1$
137
				IStatus.OK, "", null); //$NON-NLS-1$
138
		}
138
		}
139
139
140
		/**
140
		/**
(-)src/org/eclipse/gmf/runtime/emf/clipboard/core/CopyOperation.java (+2 lines)
Lines 440-445 Link Here
440
	private class CopyParentsCopier
440
	private class CopyParentsCopier
441
		extends EcoreUtil.Copier {
441
		extends EcoreUtil.Copier {
442
442
443
		private static final long serialVersionUID = 6178429496879264655L;
444
443
		private Map copyToObjectMap = new HashMap();
445
		private Map copyToObjectMap = new HashMap();
444
446
445
		private Collection doNotCopyEObjects;
447
		private Collection doNotCopyEObjects;
(-)src/org/eclipse/gmf/runtime/emf/clipboard/core/internal/SavingEMFResource.java (+2 lines)
Lines 318-323 Link Here
318
		extends EcoreEList.UnmodifiableEList
318
		extends EcoreEList.UnmodifiableEList
319
		implements InternalEList {
319
		implements InternalEList {
320
320
321
		private static final long serialVersionUID = -2551747854798104709L;
322
321
		ContentBasicEList(Set contentSet) {
323
		ContentBasicEList(Set contentSet) {
322
			super(null, null, contentSet.size(), contentSet.toArray());
324
			super(null, null, contentSet.size(), contentSet.toArray());
323
		}
325
		}
(-)src/org/eclipse/gmf/runtime/emf/clipboard/core/internal/ResourceInfoProcessor.java (-1 / +1 lines)
Lines 52-58 Link Here
52
52
53
	private static final String COMMA = ","; //$NON-NLS-1$	
53
	private static final String COMMA = ","; //$NON-NLS-1$	
54
54
55
	private static final String PROPERTY_DELIM = SEPARATOR + PLUS; //$NON-NLS-1$	
55
	private static final String PROPERTY_DELIM = SEPARATOR + PLUS;	
56
56
57
	private static final String VERSION = "VERSION"; //$NON-NLS-1$
57
	private static final String VERSION = "VERSION"; //$NON-NLS-1$
58
58
(-)plugin.xml (-14 lines)
Lines 49-68 Link Here
49
   </extension>
49
   </extension>
50
   
50
   
51
   <extension
51
   <extension
52
         point="org.eclipse.gmf.runtime.emf.core.resourcePolicies">
53
      <!-- This is not a mistake.  We need to register two policies for our test. -->
54
      <policy
55
            class="org.eclipse.gmf.tests.runtime.emf.core.internal.resources.LogicalResourcePolicyManagerTest$TestPolicy">
56
         <epackage
57
               nsURI="http:///com/ibm/xtools/emf/msl/core/tests/logrestest.ecore"/>
58
      </policy>
59
      <policy
60
            class="org.eclipse.gmf.tests.runtime.emf.core.internal.resources.LogicalResourcePolicyManagerTest$TestPolicy">
61
         <epackage
62
               nsURI="http:///com/ibm/xtools/emf/msl/core/tests/logrestest.ecore"/>
63
      </policy>
64
   </extension>
65
   <extension
66
         point="org.eclipse.emf.ecore.extension_parser">
52
         point="org.eclipse.emf.ecore.extension_parser">
67
      <parser
53
      <parser
68
            class="org.eclipse.gmf.tests.runtime.emf.core.internal.listener.MListenerTest$BrokenResourceFactory"
54
            class="org.eclipse.gmf.tests.runtime.emf.core.internal.listener.MListenerTest$BrokenResourceFactory"
(-)src/org/eclipse/gmf/tests/runtime/emf/core/RegressionTestCase.java (-4 / +4 lines)
Lines 510-519 Link Here
510
							cls.setName("NewName"); //$NON-NLS-1$
510
							cls.setName("NewName"); //$NON-NLS-1$
511
511
512
							// so should this one
512
							// so should this one
513
							cls.setName(null); //$NON-NLS-1$
513
							cls.setName(null);
514
514
515
							// this should *not* go into the undo interval
515
							// this should *not* go into the undo interval
516
							cls.setName(null); //$NON-NLS-1$
516
							cls.setName(null);
517
							return null;
517
							return null;
518
						}
518
						}
519
					});
519
					});
Lines 553-564 Link Here
553
					// this command changes the eclass name
553
					// this command changes the eclass name
554
					commandCount++;
554
					commandCount++;
555
555
556
					if (cmd.getValue() == null) { //$NON-NLS-1$
556
					if (cmd.getValue() == null) {
557
						if ("NewName".equals(cmd.getOldValue())) { //$NON-NLS-1$
557
						if ("NewName".equals(cmd.getOldValue())) { //$NON-NLS-1$
558
							// this is the "good" command, which changed the
558
							// this is the "good" command, which changed the
559
							// name
559
							// name
560
							setCommand = cmd;
560
							setCommand = cmd;
561
						} else if (cmd.getOldValue() == null) { //$NON-NLS-1$
561
						} else if (cmd.getOldValue() == null) {
562
							// this is the "bad" command, which does not change
562
							// this is the "bad" command, which does not change
563
							// the name
563
							// the name
564
							badCommand = cmd;
564
							badCommand = cmd;
(-)src/org/eclipse/gmf/tests/runtime/emf/core/internal/listener/MFilterTests.java (-1 / +1 lines)
Lines 86-92 Link Here
86
		};
86
		};
87
		
87
		
88
		/* Set the filter */
88
		/* Set the filter */
89
		regularListener.setFilter(new MFilter.ResourceContentType(Collections.singleton(EXTLIBRARY_CONTENTTYPE))); //$NON-NLS-1$
89
		regularListener.setFilter(new MFilter.ResourceContentType(Collections.singleton(EXTLIBRARY_CONTENTTYPE)));
90
90
91
		/* Load the resource */
91
		/* Load the resource */
92
		domain.loadResource(testResource);
92
		domain.loadResource(testResource);

Return to bug 110317