[EMF-Compare] StructureMergeViewer, ComparisonResourceSnapshot and ICompareInput [message #748223] |
Mon, 24 October 2011 15:14 |
|
Hello,
I'm a newcomer in EMF-Compare. I'm using EMF-Compare on uml files. I'm trying to provide my own StructureMergeViewer using the extension point org.eclipse.compare.structureMergeViewer. I declare the following IViewerCreator :
public class MyStructureMergeViewerCreator implements IViewerCreator{
public MyStructureMergeViewerCreator() {
//nothing to do
}
public Viewer createViewer(Composite parent, CompareConfiguration config) {
return new ParameterizedStructureMergeViewer(parent,config);
}
}
Using this code, I get a pull down menu to choose the structure merge viewer, but when I choose mine new viewer, the structural viewer disappears and only the merge viewer is displayed
It seems me, that the problem comes from ComparisonResourceSnapshotImpl which is the current input and which is not a ICompareInput (instanceof in org.eclipse.compare.internal.CompareStructureViewerSwitchingPane#getViewer).
Do you have some idea to correct this problem?
Attachments : a zip with my project and a snapshot of my problem.
Thanks
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04050 seconds