X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.editors.win32%2Fsrc%2Forg%2Fsimantics%2Feditors%2Fwin32%2Fole%2FPDF_Definition.java;h=ea48131cb393c44b733479a49f1917c0932c19d9;hb=a8d030f7db1f59a5b51cdc34f18de7c0a0ee8549;hp=74a5008afa021afad5c7ff5d97ce9159fe359b94;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/ole/PDF_Definition.java b/bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/ole/PDF_Definition.java index 74a5008af..ea48131cb 100644 --- a/bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/ole/PDF_Definition.java +++ b/bundles/org.simantics.editors.win32/src/org/simantics/editors/win32/ole/PDF_Definition.java @@ -1,51 +1,51 @@ -/******************************************************************************* - * 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; - -/** - * PDFs are embedded using browser - * - * @author Marko Luukkainen - * - */ -public class PDF_Definition implements EditorDefinition { - - @Override - public boolean useBrowser() { - return true; - } - - @Override - public boolean useFileInput() { - return false; - } - - @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("pdf"); - } - -} +/******************************************************************************* + * 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; + +/** + * PDFs are embedded using browser + * + * @author Marko Luukkainen + * + */ +public class PDF_Definition implements EditorDefinition { + + @Override + public boolean useBrowser() { + return true; + } + + @Override + public boolean useFileInput() { + return false; + } + + @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("pdf"); + } + +}