]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/ole/VisioDefinition.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.editors.win32 / src / org / simantics / editors / win32 / ole / VisioDefinition.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  * Visio documents
20  * 
21  * @author Marko Luukkainen <marko.luukkainen@vtt.fi>
22  *
23  */
24 public class VisioDefinition implements EditorDefinition{
25
26         @Override
27         public OleController createController(OleFrame frame, OleClientSite site, OleAutomation auto) {
28                 return null;
29         }
30         
31         @Override
32         public String getProgID() {
33                 return null; //"Visio.Drawing"
34         }
35         
36         @Override
37         public boolean supportSuffix(String suffix) {
38                 return suffix.equals("vsd");    
39         }
40         
41         @Override
42         public boolean useBrowser() {
43                 return false;
44         }
45         
46         @Override
47         public boolean useFileInput() {
48                 return true;
49         }
50 }