1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.editors.win32.ole;
14 import org.eclipse.swt.ole.win32.OleAutomation;
15 import org.eclipse.swt.ole.win32.OleClientSite;
16 import org.eclipse.swt.ole.win32.OleFrame;
19 * ControllerFactory for embedding OLE editors into eclipse
20 * There are three different methods to integrate editors to eclipse
21 * 1. Use browser integration
22 * 2. Use OLE's automatic resolver
23 * 3. Using progID to get ActiveX control, and managing that control by self supplied code.
25 * @author Marko Luukkainen <marko.luukkainen@vtt.fi>
28 public interface EditorDefinition {
30 public boolean supportSuffix(String suffix);
33 * Use embedded browser to show the input
36 public boolean useBrowser();
39 * Use OLE's automatic resolver for embedding
42 public boolean useFileInput();
45 * Returns ActiveX component's progID
48 public String getProgID();
50 public OleController createController(OleFrame frame, OleClientSite site, OleAutomation auto);