X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.graphviz%2Fexamples%2Forg%2Fsimantics%2Fgraphviz%2Fexamples%2FSimpleExample1.java;h=f9acc7c6189fc1f7c0ee1e3c1a8a0b15dc4676ac;hb=b2561fc60dbe74e8c332025b61cae104f5ccfc66;hp=bd85802b04b1e54e4bc23f2d4a33fcec18cbb271;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.graphviz/examples/org/simantics/graphviz/examples/SimpleExample1.java b/bundles/org.simantics.graphviz/examples/org/simantics/graphviz/examples/SimpleExample1.java index bd85802b0..f9acc7c61 100644 --- a/bundles/org.simantics.graphviz/examples/org/simantics/graphviz/examples/SimpleExample1.java +++ b/bundles/org.simantics.graphviz/examples/org/simantics/graphviz/examples/SimpleExample1.java @@ -1,31 +1,31 @@ -/******************************************************************************* - * 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.graphviz.examples; - -import org.simantics.graphviz.Edge; -import org.simantics.graphviz.Graph; -import org.simantics.graphviz.Graphs; -import org.simantics.graphviz.Node; - -public class SimpleExample1 { - - public static void main(String[] args) { - Graph graph = new Graph(); - - Node node1 = new Node(graph, "A"); - Node node2 = new Node(graph, "B"); - new Edge(graph, node1, node2).setLabel("A to B"); - - Graphs.show(graph); - } - -} +/******************************************************************************* + * 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.graphviz.examples; + +import org.simantics.graphviz.Edge; +import org.simantics.graphviz.Graph; +import org.simantics.graphviz.Graphs; +import org.simantics.graphviz.Node; + +public class SimpleExample1 { + + public static void main(String[] args) { + Graph graph = new Graph(); + + Node node1 = new Node(graph, "A"); + Node node2 = new Node(graph, "B"); + new Edge(graph, node1, node2).setLabel("A to B"); + + Graphs.show(graph); + } + +}