X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.editors.win32%2Fsrc%2Forg%2Fsimantics%2Feditors%2Fwin32%2Fole%2FTxtDefinition.java;h=79f316b112529b59a209978d41ba0600d4d0686e;hb=refs%2Fchanges%2F38%2F238%2F2;hp=0d1a4994fd5442eeb3e38502474e317d0327aa53;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/ole/TxtDefinition.java b/bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/ole/TxtDefinition.java index 0d1a4994f..79f316b11 100644 --- a/bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/ole/TxtDefinition.java +++ b/bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/ole/TxtDefinition.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; - -/** - * Txt documents - * - * FIXME: Eclipse's internal text editor would suffice just fine. - * - * @author Marko Luukkainen - * - */ -public class TxtDefinition implements EditorDefinition{ - - @Override - public OleController createController(OleFrame frame, OleClientSite site, OleAutomation auto) { - return null; - } - - @Override - public String getProgID() { - return null; - } - - @Override - public boolean supportSuffix(String suffix) { - return suffix.equals("txt"); - } - - @Override - public boolean useBrowser() { - return true; - } - - @Override - public boolean useFileInput() { - return false; - } -} +/******************************************************************************* + * 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; + +/** + * Txt documents + * + * FIXME: Eclipse's internal text editor would suffice just fine. + * + * @author Marko Luukkainen + * + */ +public class TxtDefinition implements EditorDefinition{ + + @Override + public OleController createController(OleFrame frame, OleClientSite site, OleAutomation auto) { + return null; + } + + @Override + public String getProgID() { + return null; + } + + @Override + public boolean supportSuffix(String suffix) { + return suffix.equals("txt"); + } + + @Override + public boolean useBrowser() { + return true; + } + + @Override + public boolean useFileInput() { + return false; + } +}