Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351596 - UnsupportedOperationException With UML Association (no merger provided)
Summary: UnsupportedOperationException With UML Association (no merger provided)
Status: CLOSED INVALID
Alias: None
Product: EMFCompare
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: EMF Compare CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-08 12:12 EDT by Vincent Lorenzo CLA
Modified: 2011-07-25 04:25 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Lorenzo CLA 2011-07-08 12:12:20 EDT
Steps to reproduce : 
	1/ Create a model with 2 classes and an Association between these classes
	2/ Copy your model and delete the Association
	3/ Compare the UML files : 
	    You get the message : "Navigable UML Association has been added"
	4/ Select this message -> you get the following exception : 
java.lang.UnsupportedOperationException
	at org.eclipse.emf.compare.diff.metamodel.impl.AbstractDiffExtensionImpl.provideMerger(AbstractDiffExtensionImpl.java:224)
	at org.eclipse.emf.compare.diff.merge.service.MergeFactory.createMerger(MergeFactory.java:91)
	at org.eclipse.emf.compare.ui.viewer.content.ModelContentMergeViewer.switchCopyState(ModelContentMergeViewer.java:784)
	at org.eclipse.emf.compare.ui.viewer.content.ModelContentMergeViewer.setSelection(ModelContentMergeViewer.java:363)
	at org.eclipse.emf.compare.ui.viewer.content.ModelContentMergeViewer$1.propertyChange(ModelContentMergeViewer.java:206)
	at org.eclipse.compare.CompareConfiguration.fireChange(CompareConfiguration.java:367)
	at org.eclipse.compare.CompareConfiguration.setProperty(CompareConfiguration.java:398)
	at org.eclipse.emf.compare.ui.viewer.structure.ModelStructureMergeViewer$2.widgetSelected(ModelStructureMergeViewer.java:343)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Comment 1 Mikaël Barbero CLA 2011-07-11 09:32:57 EDT
I think it has been corrected since the Indigo release. Which version did you try with?

Regards,
Mikael
Comment 2 Laurent Goubet CLA 2011-07-20 03:43:07 EDT
Vincent,

This problem only arises with the "old" org.eclipse.emf.compare.diff.extension example. Either close the project or delete it : the UML specific comparison engine is what you should be using.
Comment 3 Vincent Lorenzo CLA 2011-07-25 04:25:51 EDT
You are right, it's a version problem. Its works with your nightly build.