]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.document/src/org/simantics/document/node/Diagram.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.document / src / org / simantics / document / node / Diagram.java
1 /*******************************************************************************
2  * Copyright (c) 2012 Association for Decentralized Information Management in
3  * 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.document.node;
13
14 import org.simantics.document.function.WikiDocumentNodeImpl;
15
16 public class Diagram extends WikiDocumentNodeImpl {
17
18         private static final long serialVersionUID = 1316026746502673396L;
19         
20         public String path;
21         
22         @Override
23         public void create(StringBuilder builder, boolean isPDF) {
24                 if(isPDF && !printInPDF) return;
25                 builder.append("{diagram:resource=" + path + "}");
26                 builder.append("\r\n\r\n");
27         }
28         
29         public void synchronizePath(String path) {
30                 this.path = path;
31         }
32
33 }