01: /*******************************************************************************
02: * Copyright (c) 2005, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.pde.internal.ui.compare;
11:
12: import org.eclipse.compare.CompareConfiguration;
13: import org.eclipse.compare.IViewerCreator;
14: import org.eclipse.compare.structuremergeviewer.StructureDiffViewer;
15: import org.eclipse.jface.viewers.Viewer;
16: import org.eclipse.swt.widgets.Composite;
17:
18: public class ManifestStructureMergeViewerCreator implements
19: IViewerCreator {
20:
21: public Viewer createViewer(Composite parent,
22: CompareConfiguration config) {
23: StructureDiffViewer diffViewer = new StructureDiffViewer(
24: parent, config);
25: diffViewer.setStructureCreator(new ManifestStructureCreator());
26: return diffViewer;
27: }
28:
29: }
|