Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Rentz-Reichert2012-03-02 03:57:06 -0500
committerHenrik Rentz-Reichert2012-03-02 03:57:06 -0500
commitd466fa23cbe8b1a481e46241bfb3f399cf94b15e (patch)
treefcf946d5736473b468ce7b5cccaaf507fc4adb2e /plugins/org.eclipse.etrice.ui.structure
parentc4d69decb956a2133479f05dd1f613f59c90f8b8 (diff)
downloadorg.eclipse.etrice-d466fa23cbe8b1a481e46241bfb3f399cf94b15e.tar.gz
org.eclipse.etrice-d466fa23cbe8b1a481e46241bfb3f399cf94b15e.tar.xz
org.eclipse.etrice-d466fa23cbe8b1a481e46241bfb3f399cf94b15e.zip
[ui.common, ui.commands, ui.behavior, ui.structure] export of diagrams
Diffstat (limited to 'plugins/org.eclipse.etrice.ui.structure')
-rw-r--r--plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/editor/StructureExporter.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/editor/StructureExporter.java b/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/editor/StructureExporter.java
new file mode 100644
index 000000000..9a94f1c95
--- /dev/null
+++ b/plugins/org.eclipse.etrice.ui.structure/src/org/eclipse/etrice/ui/structure/editor/StructureExporter.java
@@ -0,0 +1,30 @@
+/*******************************************************************************
+ * Copyright (c) 2012 protos software gmbh (http://www.protos.de).
+ * 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:
+ * Henrik Rentz-Reichert (initial contribution)
+ *
+ *******************************************************************************/
+
+package org.eclipse.etrice.ui.structure.editor;
+
+import java.io.File;
+
+import org.eclipse.etrice.core.room.StructureClass;
+import org.eclipse.etrice.ui.common.editor.DiagramExporter;
+import org.eclipse.etrice.ui.structure.DiagramAccess;
+
+public class StructureExporter {
+
+ private static final String SUFFIX = ".structure.jpg";
+
+ public static void export(StructureClass ac, String folder) {
+ DiagramAccess da = new DiagramAccess();
+ DiagramExporter.export(ac, da, folder+File.separatorChar+ac.getName()+SUFFIX);
+ }
+
+}

Back to the top