]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/ole/EditorDefinition.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.editors.win32 / src / org / simantics / editors / win32 / ole / EditorDefinition.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
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
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.editors.win32.ole;
13
14 import org.eclipse.swt.ole.win32.OleAutomation;
15 import org.eclipse.swt.ole.win32.OleClientSite;
16 import org.eclipse.swt.ole.win32.OleFrame;
17
18 /**
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.
24  * 
25  * @author Marko Luukkainen <marko.luukkainen@vtt.fi>
26  *
27  */
28 public interface EditorDefinition {
29         
30         public boolean supportSuffix(String suffix);
31         
32         /**
33          * Use embedded browser to show the input
34          * @return
35          */
36         public boolean useBrowser();
37         
38         /**
39          * Use OLE's automatic resolver for embedding
40          * @return
41          */
42         public boolean useFileInput();
43         
44         /**
45          * Returns ActiveX component's progID
46          * @return
47          */
48         public String getProgID();
49         
50         public OleController createController(OleFrame frame, OleClientSite site, OleAutomation auto);
51
52 }