X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.editors.win32%2Fsrc%2Forg%2Fsimantics%2Feditors%2Fwin32%2Fole%2FEditorDefinition.java;h=0d7342f9a0fdc0f0b46777168eba9578772f4029;hb=a8d030f7db1f59a5b51cdc34f18de7c0a0ee8549;hp=2e7fa1f9d45d8e85c8bd3d7e01a856b0a78af20b;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/ole/EditorDefinition.java b/bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/ole/EditorDefinition.java index 2e7fa1f9d..0d7342f9a 100644 --- a/bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/ole/EditorDefinition.java +++ b/bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/ole/EditorDefinition.java @@ -1,52 +1,52 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.editors.win32.ole; - -import org.eclipse.swt.ole.win32.OleAutomation; -import org.eclipse.swt.ole.win32.OleClientSite; -import org.eclipse.swt.ole.win32.OleFrame; - -/** - * ControllerFactory for embedding OLE editors into eclipse - * There are three different methods to integrate editors to eclipse - * 1. Use browser integration - * 2. Use OLE's automatic resolver - * 3. Using progID to get ActiveX control, and managing that control by self supplied code. - * - * @author Marko Luukkainen - * - */ -public interface EditorDefinition { - - public boolean supportSuffix(String suffix); - - /** - * Use embedded browser to show the input - * @return - */ - public boolean useBrowser(); - - /** - * Use OLE's automatic resolver for embedding - * @return - */ - public boolean useFileInput(); - - /** - * Returns ActiveX component's progID - * @return - */ - public String getProgID(); - - public OleController createController(OleFrame frame, OleClientSite site, OleAutomation auto); - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.editors.win32.ole; + +import org.eclipse.swt.ole.win32.OleAutomation; +import org.eclipse.swt.ole.win32.OleClientSite; +import org.eclipse.swt.ole.win32.OleFrame; + +/** + * ControllerFactory for embedding OLE editors into eclipse + * There are three different methods to integrate editors to eclipse + * 1. Use browser integration + * 2. Use OLE's automatic resolver + * 3. Using progID to get ActiveX control, and managing that control by self supplied code. + * + * @author Marko Luukkainen + * + */ +public interface EditorDefinition { + + public boolean supportSuffix(String suffix); + + /** + * Use embedded browser to show the input + * @return + */ + public boolean useBrowser(); + + /** + * Use OLE's automatic resolver for embedding + * @return + */ + public boolean useFileInput(); + + /** + * Returns ActiveX component's progID + * @return + */ + public String getProgID(); + + public OleController createController(OleFrame frame, OleClientSite site, OleAutomation auto); + +}