| /******************************************************************************* |
| * Copyright (c) 2018 Obeo. |
| * 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: |
| * Obeo - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.emf.compare.diagram.ide.ui.sirius.internal; |
| |
| import org.eclipse.compare.CompareConfiguration; |
| import org.eclipse.compare.IViewerCreator; |
| import org.eclipse.emf.compare.ide.ui.internal.configuration.EMFCompareConfiguration; |
| import org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.provider.TreeNodeCompareInput; |
| import org.eclipse.emf.compare.ide.ui.internal.structuremergeviewer.provider.TreeNodeCompareInputLabelProvider; |
| import org.eclipse.jface.viewers.Viewer; |
| import org.eclipse.swt.widgets.Composite; |
| |
| public class SiriusContentMergeViewerCreator implements IViewerCreator { |
| public Viewer createViewer(Composite parent, CompareConfiguration config) { |
| final EMFCompareConfiguration emfConfig = new EMFCompareConfiguration(config); |
| emfConfig.setLabelProvider(TreeNodeCompareInput.class, new TreeNodeCompareInputLabelProvider()); |
| return new SiriusContentMergeViewer(parent, emfConfig); |
| } |
| } |