KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > compare > IViewerCreator


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.compare;
12
13 import org.eclipse.swt.widgets.Composite;
14
15 import org.eclipse.jface.viewers.Viewer;
16
17 /**
18  * A factory object for <code>Viewer</code>.
19  * <p>
20  * This interface is only required when creating a <code>Viewer</code> from a plugin.xml file.
21  * Since <code>Viewer</code>s have no default constructor they cannot be
22  * instantiated directly with <code>Class.forName</code>.
23  */

24 public interface IViewerCreator {
25
26     /**
27      * Creates a new viewer under the given SWT parent control.
28      *
29      * @param parent the SWT parent control under which to create the viewer's SWT control
30      * @param config a compare configuration the newly created viewer might want to use
31      * @return a new viewer
32      */

33     Viewer createViewer(Composite parent, CompareConfiguration config);
34 }
35
Popular Tags