intial source from ttp://www.sf.net/projects/wdte
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.css.ui / src / net / sourceforge / phpeclipse / css / ui / internal / compare / CssMergeViewerCreator.java
1 /*
2  * Copyright (c) 2003-2004 Christopher Lenz and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     Christopher Lenz - initial API and implementation
10  * 
11  * $Id: CssMergeViewerCreator.java,v 1.1 2004-09-02 18:11:49 jsurfer Exp $
12  */
13
14 package net.sourceforge.phpeclipse.css.ui.internal.compare;
15
16 import org.eclipse.compare.CompareConfiguration;
17 import org.eclipse.compare.IViewerCreator;
18 import org.eclipse.jface.viewers.Viewer;
19 import org.eclipse.swt.SWT;
20 import org.eclipse.swt.widgets.Composite;
21
22 /**
23  * Factory for creating a CSS merge viewer.
24  */
25 public class CssMergeViewerCreator implements IViewerCreator {
26
27         /*
28          * @see IViewerCreator#createViewer(Composite, CompareConfiguration)
29          */
30         public Viewer createViewer(Composite parent, CompareConfiguration config) {
31                 return new CssMergeViewer(parent, SWT.NULL, config);
32         }
33
34 }