diff options
author | cletavernie | 2011-10-25 13:25:33 +0000 |
---|---|---|
committer | cletavernie | 2011-10-25 13:25:33 +0000 |
commit | 63d925ae650a96a45d4bf6d26c49f31ac00fae80 (patch) | |
tree | b05b057befa0ece2df3c80e2858e4bfe20d1eacf /plugins | |
parent | 8345399d5ffe9199b5bbb21284358bbc6e820b54 (diff) | |
download | org.eclipse.papyrus-63d925ae650a96a45d4bf6d26c49f31ac00fae80.tar.gz org.eclipse.papyrus-63d925ae650a96a45d4bf6d26c49f31ac00fae80.tar.xz org.eclipse.papyrus-63d925ae650a96a45d4bf6d26c49f31ac00fae80.zip |
359057: [Architecture - SVN - Build] The Papyrus architecture should be refactored
https://bugs.eclipse.org/bugs/show_bug.cgi?id=359057
Diffstat (limited to 'plugins')
11 files changed, 222 insertions, 0 deletions
diff --git a/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/.classpath b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/.classpath new file mode 100644 index 00000000000..2d1a4302f04 --- /dev/null +++ b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/.project b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/.project new file mode 100644 index 00000000000..3e5d4475c2d --- /dev/null +++ b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/.settings/org.eclipse.jdt.core.prefs b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..07e64b19290 --- /dev/null +++ b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +#Wed May 20 14:53:29 CEST 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/META-INF/MANIFEST.MF b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..42704331ad0 --- /dev/null +++ b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/META-INF/MANIFEST.MF @@ -0,0 +1,14 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-Localization: plugin +Bundle-SymbolicName: org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm;singleton:=true +Bundle-Version: 0.8.0.qualifier +Bundle-Activator: org.eclipse.papyrus.layouttool.algorithms.radialalgorithm.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.zest.layouts, + org.eclipse.papyrus.layouttool +Bundle-ActivationPolicy: lazy +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-Vendor: %providerName diff --git a/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/about.html b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/about.html new file mode 100644 index 00000000000..35b45e096ae --- /dev/null +++ b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/about.html @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>September 30, 2009</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, "Program" will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
+being redistributed by another party ("Redistributor") and different terms and conditions may
+apply to your use of any object code in the Content. Check the Redistributor's license that was
+provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org">http://www.eclipse.org</a>.</p>
+
+</body>
+</html>
\ No newline at end of file diff --git a/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/build.properties b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/build.properties new file mode 100644 index 00000000000..4a5c7b0c5f8 --- /dev/null +++ b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/build.properties @@ -0,0 +1,7 @@ +#
+#Thu Sep 15 16:42:20 CEST 2011
+bin.includes=META-INF/,.,plugin.xml,icons/,about.html,plugin.properties
+output..=bin/
+src.includes=META-INF/,.,plugin.xml,icons/,about.html,plugin.properties
+source..=src/
+bin..=bin/
diff --git a/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/icons/radialAlgorithm3.gif b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/icons/radialAlgorithm3.gif Binary files differnew file mode 100644 index 00000000000..d9b38c14fff --- /dev/null +++ b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/icons/radialAlgorithm3.gif diff --git a/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/plugin.properties b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/plugin.properties new file mode 100644 index 00000000000..0448e51e1d5 --- /dev/null +++ b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/plugin.properties @@ -0,0 +1,16 @@ +####################################################################################
+# Copyright (c) 2008 Atos Origin.
+#
+#
+# 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:
+# Emilien Perico (Atos Origin) emilien.perico@atosorigin.com - Initial API and implementation
+#
+##################################################################################
+pluginName=Papyrus Radial Algorithm Plug-in (Incubation)
+providerName=Eclipse Modeling Project
+
diff --git a/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/plugin.xml b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/plugin.xml new file mode 100644 index 00000000000..3bc834b0bec --- /dev/null +++ b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/plugin.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.papyrus.layouttool.algorithms">
+ <client
+ class="org.eclipse.papyrus.layouttool.algorithms.radialalgorithm.RadialAlgorithm"
+ icon="icons/radialAlgorithm3.gif"
+ name="Radial"
+ toolTipText="A radial algorithm applies a tree layout to graph nodes, and then displays the tree in a circular fashion with the roots in the centre">
+ </client>
+ </extension>
+
+</plugin>
diff --git a/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/src/org/eclipse/papyrus/layouttool/algorithms/radialalgorithm/Activator.java b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/src/org/eclipse/papyrus/layouttool/algorithms/radialalgorithm/Activator.java new file mode 100644 index 00000000000..ca4731eddd0 --- /dev/null +++ b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/src/org/eclipse/papyrus/layouttool/algorithms/radialalgorithm/Activator.java @@ -0,0 +1,67 @@ +/*****************************************************************************
+ * Copyright (c) 2009 Atos Origin.
+ *
+ *
+ * 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:
+ * Allanic Alexia (Atos Origin) alexia.allanic@atosorigin.com - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.layouttool.algorithms.radialalgorithm;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle.
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ /** The Constant PLUGIN_ID. */
+ public static final String PLUGIN_ID = "org.eclipse.papyrus.radialAlgorithm";
+
+ // The shared instance
+ /** The plugin. */
+ private static Activator plugin;
+
+ /**
+ * The constructor.
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance.
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+}
diff --git a/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/src/org/eclipse/papyrus/layouttool/algorithms/radialalgorithm/RadialAlgorithm.java b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/src/org/eclipse/papyrus/layouttool/algorithms/radialalgorithm/RadialAlgorithm.java new file mode 100644 index 00000000000..38ad446bb36 --- /dev/null +++ b/plugins/layout/org.eclipse.papyrus.layouttool.algorithms.radialAlgorithm/src/org/eclipse/papyrus/layouttool/algorithms/radialalgorithm/RadialAlgorithm.java @@ -0,0 +1,34 @@ +/*****************************************************************************
+ * Copyright (c) 2009 Atos Origin.
+ *
+ *
+ * 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:
+ * Allanic Alexia (Atos Origin) alexia.allanic@atosorigin.com - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.layouttool.algorithms.radialalgorithm;
+
+import org.eclipse.papyrus.layouttool.managealgorithms.AlgorithmFactory;
+import org.eclipse.zest.layouts.LayoutStyles;
+import org.eclipse.zest.layouts.algorithms.AbstractLayoutAlgorithm;
+import org.eclipse.zest.layouts.algorithms.RadialLayoutAlgorithm;
+
+/**
+ * The Class RadialAlgorithm.
+ */
+public class RadialAlgorithm implements AlgorithmFactory {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.papyrus.layouttool.managealgorithms.AlgorithmFactory#createAlgorithm()
+ */
+ public AbstractLayoutAlgorithm createAlgorithm() {
+ return new RadialLayoutAlgorithm(LayoutStyles.NO_LAYOUT_NODE_RESIZING);
+ }
+}
|