--- /dev/null
+/*******************************************************************************\r
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
+ * in Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ * VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.editors.win32.ole;\r
+\r
+import org.eclipse.swt.ole.win32.OleAutomation;\r
+import org.eclipse.swt.ole.win32.OleClientSite;\r
+import org.eclipse.swt.ole.win32.OleFrame;\r
+\r
+/**\r
+ * Visio documents\r
+ * \r
+ * @author Marko Luukkainen <marko.luukkainen@vtt.fi>\r
+ *\r
+ */\r
+public class VisioDefinition implements EditorDefinition{\r
+\r
+ @Override\r
+ public OleController createController(OleFrame frame, OleClientSite site, OleAutomation auto) {\r
+ return null;\r
+ }\r
+ \r
+ @Override\r
+ public String getProgID() {\r
+ return null; //"Visio.Drawing"\r
+ }\r
+ \r
+ @Override\r
+ public boolean supportSuffix(String suffix) {\r
+ return suffix.equals("vsd"); \r
+ }\r
+ \r
+ @Override\r
+ public boolean useBrowser() {\r
+ return false;\r
+ }\r
+ \r
+ @Override\r
+ public boolean useFileInput() {\r
+ return true;\r
+ }\r
+}\r