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