diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.releng.doc/src/org/eclipse/emf/cdo/releng/doc/article/impl/ExcelImpl.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.releng.doc/src/org/eclipse/emf/cdo/releng/doc/article/impl/ExcelImpl.java | 172 |
1 files changed, 86 insertions, 86 deletions
diff --git a/plugins/org.eclipse.emf.cdo.releng.doc/src/org/eclipse/emf/cdo/releng/doc/article/impl/ExcelImpl.java b/plugins/org.eclipse.emf.cdo.releng.doc/src/org/eclipse/emf/cdo/releng/doc/article/impl/ExcelImpl.java index cdab32b911..a187b6f334 100644 --- a/plugins/org.eclipse.emf.cdo.releng.doc/src/org/eclipse/emf/cdo/releng/doc/article/impl/ExcelImpl.java +++ b/plugins/org.eclipse.emf.cdo.releng.doc/src/org/eclipse/emf/cdo/releng/doc/article/impl/ExcelImpl.java @@ -1,86 +1,86 @@ -/*
- * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
- * 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:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.emf.cdo.releng.doc.article.impl;
-
-import org.eclipse.emf.cdo.releng.doc.article.ArticlePackage;
-import org.eclipse.emf.cdo.releng.doc.article.BodyElement;
-import org.eclipse.emf.cdo.releng.doc.article.Excel;
-import org.eclipse.emf.cdo.releng.doc.article.StructuralElement;
-
-import org.eclipse.emf.ecore.EClass;
-
-import com.sun.javadoc.Tag;
-
-import de.escnet.ExcelTable;
-
-import java.io.File;
-import java.io.IOException;
-import java.io.PrintWriter;
-
-/**
- * <!-- begin-user-doc --> An implementation of the model object '<em><b>Excel</b></em>'. <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class ExcelImpl extends BodyElementImpl implements Excel
-{
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ExcelImpl()
- {
- super();
- }
-
- public ExcelImpl(Tag tag)
- {
- super(tag);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass()
- {
- return ArticlePackage.Literals.EXCEL;
- }
-
- public BodyElement copy()
- {
- return new ExcelImpl(getTag());
- }
-
- public void generate(PrintWriter out, StructuralElement linkSource) throws IOException
- {
- File folder = getTag().position().file().getParentFile();
- String relativePath = getTag().text();
- String sheetName = null;
-
- int pos = relativePath.lastIndexOf('#');
- if (pos != -1)
- {
- sheetName = relativePath.substring(pos + 1);
- relativePath = relativePath.substring(0, pos);
- }
-
- String path = new File(folder, relativePath).getCanonicalPath();
-
- ExcelTable excelTable = new ExcelTable(path, sheetName);
- excelTable.writeHtml(out);
- }
-} // ExcelImpl
+/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * 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: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.releng.doc.article.impl; + +import org.eclipse.emf.cdo.releng.doc.article.ArticlePackage; +import org.eclipse.emf.cdo.releng.doc.article.BodyElement; +import org.eclipse.emf.cdo.releng.doc.article.Excel; +import org.eclipse.emf.cdo.releng.doc.article.StructuralElement; + +import org.eclipse.emf.ecore.EClass; + +import com.sun.javadoc.Tag; + +import de.escnet.ExcelTable; + +import java.io.File; +import java.io.IOException; +import java.io.PrintWriter; + +/** + * <!-- begin-user-doc --> An implementation of the model object '<em><b>Excel</b></em>'. <!-- end-user-doc --> + * <p> + * </p> + * + * @generated + */ +public class ExcelImpl extends BodyElementImpl implements Excel +{ + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + protected ExcelImpl() + { + super(); + } + + public ExcelImpl(Tag tag) + { + super(tag); + } + + /** + * <!-- begin-user-doc --> <!-- end-user-doc --> + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return ArticlePackage.Literals.EXCEL; + } + + public BodyElement copy() + { + return new ExcelImpl(getTag()); + } + + public void generate(PrintWriter out, StructuralElement linkSource) throws IOException + { + File folder = getTag().position().file().getParentFile(); + String relativePath = getTag().text(); + String sheetName = null; + + int pos = relativePath.lastIndexOf('#'); + if (pos != -1) + { + sheetName = relativePath.substring(pos + 1); + relativePath = relativePath.substring(0, pos); + } + + String path = new File(folder, relativePath).getCanonicalPath(); + + ExcelTable excelTable = new ExcelTable(path, sheetName); + excelTable.writeHtml(out); + } +} // ExcelImpl |