diff options
author | ptessier | 2013-03-20 09:14:26 +0000 |
---|---|---|
committer | ptessier | 2013-03-20 09:14:26 +0000 |
commit | 6143a9b9758295c1c4a21a34c9568f5d5015cd84 (patch) | |
tree | fe08aea7fbe14351fb0d3db7ba97057b7bcfe6cc /extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant | |
parent | f17199b27ebdd89ad4227087a273e22b03f787a8 (diff) | |
download | org.eclipse.papyrus-6143a9b9758295c1c4a21a34c9568f5d5015cd84.tar.gz org.eclipse.papyrus-6143a9b9758295c1c4a21a34c9568f5d5015cd84.tar.xz org.eclipse.papyrus-6143a9b9758295c1c4a21a34c9568f5d5015cd84.zip |
401703: Create adl4eclipse profile
https://bugs.eclipse.org/bugs/show_bug.cgi?id=401703
Diffstat (limited to 'extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant')
14 files changed, 870 insertions, 0 deletions
diff --git a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/.classpath b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/.classpath new file mode 100644 index 00000000000..2d1a4302f04 --- /dev/null +++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/.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/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/.project b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/.project new file mode 100644 index 00000000000..0fb8960ce36 --- /dev/null +++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.adl4eclipsetool.assistant</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/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/.settings/org.eclipse.jdt.core.prefs b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000000..44217f8c068 --- /dev/null +++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+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/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/META-INF/MANIFEST.MF b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..94c1c2af4cd --- /dev/null +++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/META-INF/MANIFEST.MF @@ -0,0 +1,23 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: org.eclipse.papyrus.adl4eclipsetool.assistant;singleton:=true +Bundle-Version: 0.10.0.qualifier +Bundle-Activator: org.eclipse.papyrus.adltool.assistant.Activator +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.eclipse.emf;bundle-version="2.6.0", + org.eclipse.emf.ecore, + org.eclipse.emf.transaction, + org.eclipse.gmf.runtime.diagram.ui, + org.eclipse.papyrus.editor, + org.eclipse.papyrus.infra.core, + org.eclipse.uml2.uml, + org.eclipse.papyrus.infra.emf, + org.eclipse.papyrus.adl4eclipsetool;bundle-version="0.10.0" +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Export-Package: org.eclipse.papyrus.adltool.assistant + + diff --git a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/about.html b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/about.html new file mode 100644 index 00000000000..82d49bf5f81 --- /dev/null +++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/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>June 5, 2007</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>
diff --git a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/build.properties b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/build.properties new file mode 100644 index 00000000000..8665ac2ffec --- /dev/null +++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/build.properties @@ -0,0 +1,6 @@ +source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ plugin.properties
diff --git a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/img/adl.png b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/img/adl.png Binary files differnew file mode 100644 index 00000000000..597790b0c2d --- /dev/null +++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/img/adl.png diff --git a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/img/adl.svg b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/img/adl.svg new file mode 100644 index 00000000000..bffe0c3e0f5 --- /dev/null +++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/img/adl.svg @@ -0,0 +1,355 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + version="1.2" + width="460.62991" + height="283.46457" + id="svg2" + inkscape:version="0.48.4 r9939" + sodipodi:docname="papyrus.svg"> + <sodipodi:namedview + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1" + objecttolerance="10" + gridtolerance="10" + guidetolerance="10" + inkscape:pageopacity="0" + inkscape:pageshadow="2" + inkscape:window-width="1306" + inkscape:window-height="767" + id="namedview53" + showgrid="false" + inkscape:zoom="0.76200001" + inkscape:cx="176.05836" + inkscape:cy="233.31647" + inkscape:window-x="493" + inkscape:window-y="93" + inkscape:window-maximized="0" + inkscape:current-layer="svg2" /> + <defs + id="defs4"> + <linearGradient + id="linearGradient3908"> + <stop + style="stop-color:#1a171a;stop-opacity:1;" + offset="0" + id="stop3910" /> + <stop + style="stop-color:#9c9e9f;stop-opacity:1;" + offset="1" + id="stop3912" /> + </linearGradient> + <linearGradient + id="linearGradient3818"> + <stop + style="stop-color:#ffffff;stop-opacity:1;" + offset="0" + id="stop3820" /> + <stop + style="stop-color:#98bf06;stop-opacity:1;" + offset="1" + id="stop3822" /> + </linearGradient> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient3818" + id="radialGradient3832" + cx="622.66229" + cy="107.15185" + fx="622.66229" + fy="107.15185" + r="125.38313" + gradientUnits="userSpaceOnUse" /> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient3818-1" + id="radialGradient3832-3" + cx="622.66229" + cy="107.15185" + fx="622.66229" + fy="107.15185" + r="125.38313" + gradientUnits="userSpaceOnUse" /> + <linearGradient + id="linearGradient3818-1"> + <stop + style="stop-color:#ffffff;stop-opacity:1;" + offset="0" + id="stop3820-6" /> + <stop + style="stop-color:#009bba;stop-opacity:1;" + offset="1" + id="stop3822-8" /> + </linearGradient> + <radialGradient + r="125.38313" + fy="107.15185" + fx="622.66229" + cy="107.15185" + cx="622.66229" + gradientUnits="userSpaceOnUse" + id="radialGradient3849" + xlink:href="#linearGradient3818-1" + inkscape:collect="always" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3908" + id="linearGradient3914" + x1="549.05366" + y1="177.90893" + x2="824.32955" + y2="177.90893" + gradientUnits="userSpaceOnUse" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3908" + id="linearGradient3916" + gradientUnits="userSpaceOnUse" + x1="549.05366" + y1="177.90893" + x2="824.32955" + y2="177.90893" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3908" + id="linearGradient3918" + gradientUnits="userSpaceOnUse" + x1="549.05366" + y1="177.90893" + x2="824.32955" + y2="177.90893" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3908" + id="linearGradient3920" + gradientUnits="userSpaceOnUse" + x1="549.05366" + y1="177.90893" + x2="824.32955" + y2="177.90893" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3908" + id="linearGradient3922" + gradientUnits="userSpaceOnUse" + x1="549.05366" + y1="177.90893" + x2="824.32955" + y2="177.90893" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3908" + id="linearGradient3925" + gradientUnits="userSpaceOnUse" + x1="549.05366" + y1="177.90893" + x2="824.32955" + y2="177.90893" + gradientTransform="matrix(-1,0,0,-1,1373.3832,351.87403)" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3908" + id="linearGradient3928" + gradientUnits="userSpaceOnUse" + x1="549.05366" + y1="177.90893" + x2="824.32955" + y2="177.90893" + gradientTransform="matrix(-1,0,0,-1,1373.3832,351.87403)" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3908" + id="linearGradient3931" + gradientUnits="userSpaceOnUse" + x1="549.05366" + y1="177.90893" + x2="824.32955" + y2="177.90893" + gradientTransform="matrix(-1,0,0,-1,1373.3832,351.87403)" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3908" + id="linearGradient3934" + gradientUnits="userSpaceOnUse" + x1="549.05366" + y1="177.90893" + x2="824.32955" + y2="177.90893" + gradientTransform="matrix(-1,0,0,-1,1373.3832,351.87403)" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3908" + id="linearGradient3940" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(-1,0,0,-1,945.59288,317.53945)" + x1="549.05366" + y1="177.90893" + x2="824.32955" + y2="177.90893" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3908" + id="linearGradient3946" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(-1,0,0,-1,945.59288,317.53945)" + x1="549.05366" + y1="177.90893" + x2="824.32955" + y2="177.90893" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3908" + id="linearGradient3952" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(-1,0,0,-1,945.59288,317.53945)" + x1="549.05366" + y1="177.90893" + x2="824.32955" + y2="177.90893" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3908" + id="linearGradient3958" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(-1,0,0,-1,945.59288,317.53945)" + x1="549.05366" + y1="177.90893" + x2="824.32955" + y2="177.90893" /> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient3818-1" + id="radialGradient3970" + gradientUnits="userSpaceOnUse" + cx="622.66229" + cy="107.15185" + fx="622.66229" + fy="107.15185" + r="125.38313" /> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient3818" + id="radialGradient3972" + gradientUnits="userSpaceOnUse" + cx="622.66229" + cy="107.15185" + fx="622.66229" + fy="107.15185" + r="125.38313" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3908" + id="linearGradient3974" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(-1,0,0,-1,945.59288,317.53945)" + x1="549.05366" + y1="177.90893" + x2="824.32955" + y2="177.90893" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3908" + id="linearGradient3976" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(-1,0,0,-1,945.59288,317.53945)" + x1="549.05366" + y1="177.90893" + x2="824.32955" + y2="177.90893" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3908" + id="linearGradient3978" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(-1,0,0,-1,945.59288,317.53945)" + x1="549.05366" + y1="177.90893" + x2="824.32955" + y2="177.90893" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient3908" + id="linearGradient3980" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(-1,0,0,-1,945.59288,317.53945)" + x1="549.05366" + y1="177.90893" + x2="824.32955" + y2="177.90893" /> + </defs> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title></dc:title> + </cc:Work> + </rdf:RDF> + </metadata> + <g + transform="translate(0,-768.89631)" + id="layer2" /> + <g + id="g3960" + transform="matrix(0.93318676,0,0,0.93318676,8.4148818,11.649074)" + inkscape:export-xdpi="5.8753209" + inkscape:export-ydpi="5.8753209"> + <path + d="m 796.19109,174.89305 c 0,65.08738 -52.76374,117.85113 -117.85112,117.85113 -65.08738,0 -117.85113,-52.76375 -117.85113,-117.85113 0,-65.08738 52.76375,-117.851126 117.85113,-117.851126 65.08738,0 117.85112,52.763746 117.85112,117.851126 z" + sodipodi:ry="117.85113" + sodipodi:rx="117.85113" + sodipodi:cy="174.89305" + sodipodi:cx="678.33997" + id="path3030-8" + style="opacity:0.98999999;fill:url(#radialGradient3970);fill-opacity:1;stroke:none" + sodipodi:type="arc" + transform="translate(-451.91733,-35.262539)" /> + <path + transform="translate(-437.79032,-35.262539)" + d="m 796.19109,174.89305 c 0,65.08738 -52.76374,117.85113 -117.85112,117.85113 -65.08738,0 -117.85113,-52.76375 -117.85113,-117.85113 0,-65.08738 52.76375,-117.851126 117.85113,-117.851126 65.08738,0 117.85112,52.763746 117.85112,117.851126 z" + sodipodi:ry="117.85113" + sodipodi:rx="117.85113" + sodipodi:cy="174.89305" + sodipodi:cx="678.33997" + id="path3030" + style="opacity:0.98999999;fill:url(#radialGradient3972);fill-opacity:1;stroke:none" + sodipodi:type="arc" /> + <path + sodipodi:nodetypes="ccccc" + inkscape:connector-curvature="0" + id="path3868" + d="m 125.32217,164.47792 c 0.48084,2.47664 1.1607,4.92485 1.82692,7.375 l 244.0633,0 0,-7.375 z" + style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:url(#linearGradient3974);fill-opacity:1;stroke:none;stroke-width:7.36382484;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans" /> + <path + sodipodi:nodetypes="ccccc" + inkscape:connector-curvature="0" + id="path3868-2" + d="m 122.84277,145.44667 c 0.0647,2.45833 0.31139,4.91667 0.56547,7.375 l 247.80415,0 0,-7.375 z" + style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:url(#linearGradient3976);fill-opacity:1;stroke:none;stroke-width:7.36382484;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans" /> + <path + sodipodi:nodetypes="ccccc" + inkscape:connector-curvature="0" + id="path3868-7" + d="m 123.42274,126.44667 c -0.33255,2.44792 -0.44679,4.89583 -0.59447,7.34375 l 248.38412,0 0,-7.34375 z" + style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:url(#linearGradient3978);fill-opacity:1;stroke:none;stroke-width:7.36382484;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans" /> + <path + sodipodi:nodetypes="ccccc" + inkscape:connector-curvature="0" + id="path3868-71" + d="m 127.14909,107.41542 c -0.76224,2.48347 -1.29841,4.92927 -1.83417,7.375 l 245.89747,0 0,-7.375 z" + style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:url(#linearGradient3980);fill-opacity:1;stroke:none;stroke-width:7.36382484;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans" /> + </g> +</svg> diff --git a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/plugin.properties b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/plugin.properties new file mode 100644 index 00000000000..48b74745d72 --- /dev/null +++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/plugin.properties @@ -0,0 +1,12 @@ +################################################################################# +# Copyright (c) 2013 CEA LIST. +# 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: +# Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - initial API and implementation +################################################################################## +pluginName=ADL4eclipseTool Assistant (Incubation) +providerName=Eclipse Modeling Project diff --git a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/plugin.xml b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/plugin.xml new file mode 100644 index 00000000000..b49d94fdaa0 --- /dev/null +++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/plugin.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ allPopups="false"
+ locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup">
+ <menu
+ icon="img/adl.png"
+ id="com.cea.papyrus.adl4eclipse.menu"
+ label="ADL4eclipse"
+ tooltip="ADL4eclipse">
+ </menu>
+ </menuContribution>
+ </extension>
+ <extension
+ point="org.eclipse.ui.menus">
+ <menuContribution
+ allPopups="false"
+ locationURI="popup:com.cea.papyrus.adl4eclipse.menu">
+ <command
+ commandId="org.eclipse.papyrus.adltool.assistant.BundlesImportHandler"
+ id="org.eclipse.papyrus.adltool.assistant.BundlesImportHandler.popup"
+ label="Simple Architecture Snapshot"
+ style="push"
+ tooltip="Architecture Snapshot from the workspace">
+ </command>
+ <command
+ commandId="org.eclipse.papyrus.adltool.assistant.CompleteArchitectureHandler"
+ id="org.eclipse.papyrus.adltool.assistant.CompleteArchitectureHandler.popup"
+ label="Complete Architecture Snapshot"
+ style="push"
+ tooltip="Architecture Snapshot from the workspace">
+ </command>
+ </menuContribution>
+ </extension>
+ <extension
+ point="org.eclipse.ui.commands">
+ <command
+ categoryId="org.eclipse.papyrus.editor.category"
+ defaultHandler="org.eclipse.papyrus.adltool.assistant.SimpleArchitecrureHandler"
+ id="org.eclipse.papyrus.adltool.assistant.BundlesImportHandler"
+ name="Simple Architecture Snapshot">
+ </command>
+ <command
+ categoryId="org.eclipse.papyrus.editor.category"
+ defaultHandler="org.eclipse.papyrus.adltool.assistant.CompleteArchitectureHandler"
+ id="org.eclipse.papyrus.adltool.assistant.CompleteArchitectureHandler"
+ name="Complete Architecture Snapshot">
+ </command>
+ </extension>
+ <extension
+ point="org.eclipse.ui.startup">
+ <startup
+ class="org.eclipse.papyrus.adltool.assistant.Activator"></startup>
+ </extension>
+</plugin>
diff --git a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adltool/assistant/ADLToolAbstractHandler.java b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adltool/assistant/ADLToolAbstractHandler.java new file mode 100644 index 00000000000..5531c00d970 --- /dev/null +++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adltool/assistant/ADLToolAbstractHandler.java @@ -0,0 +1,123 @@ +/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ *
+ *
+ * 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:
+ * Patrick Tessier (CEA LIST) patrick.tessier@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.adltool.assistant;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart;
+import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.papyrus.editor.PapyrusMultiDiagramEditor;
+import org.eclipse.papyrus.infra.core.editor.IMultiDiagramEditor;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.ISelectionService;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.uml2.uml.Element;
+
+/**
+ * Abstract handler in order to connect to papyrus
+ *
+ */
+public abstract class ADLToolAbstractHandler extends AbstractHandler {
+
+ protected TransactionalEditingDomain transactionalEditingDomain=null;
+ protected PapyrusMultiDiagramEditor papyrusEditor;
+
+ /**
+ * getSelected element in the diagram or in hte model explorer
+ * @return Element or null
+ */
+ protected Element getSelection(){
+ org.eclipse.uml2.uml.Element selectedElement =null;
+ ISelectionService selectionService = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSelectionService();
+ ISelection selection = selectionService.getSelection();
+ //look for papyrus
+ int i=0;
+ while(!(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor() instanceof IMultiDiagramEditor)&&i<100000) {
+ i++;
+ }
+ if((PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor()instanceof IMultiDiagramEditor)){
+ IEditorPart editorPart = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
+ papyrusEditor = ((PapyrusMultiDiagramEditor)editorPart);
+
+ if(selection instanceof IStructuredSelection) {
+ Object selectedobject = ((IStructuredSelection)selection).getFirstElement();
+ if(selectedobject instanceof GraphicalEditPart) {
+ Object graphicalElement = ((GraphicalEditPart)selectedobject).getModel();
+ if((graphicalElement instanceof View) && ((View)graphicalElement).getElement() instanceof org.eclipse.uml2.uml.Element) {
+ selectedElement = (org.eclipse.uml2.uml.Element)((View)graphicalElement).getElement();
+ }
+ }
+ else if(selectedobject instanceof IAdaptable) {
+ EObject selectedEObject = (EObject)((IAdaptable)selectedobject).getAdapter(EObject.class);
+ if (selectedEObject instanceof org.eclipse.uml2.uml.Element){
+ selectedElement=(Element)selectedEObject;
+ }
+ }
+
+ }
+ return selectedElement;
+ }
+ return null;
+ }
+ /**
+ * getSelected element in the diagram or in hte model explorer
+ * @return Element or null
+ */
+ protected ArrayList<Element> getSelectionSet(){
+ ArrayList<Element> selectedSet =new ArrayList<Element>();
+ ISelectionService selectionService = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSelectionService();
+ ISelection selection = selectionService.getSelection();
+
+ //look for papyrus
+ int i=0;
+ while(!(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor() instanceof IMultiDiagramEditor)&&i<100000) {
+ i++;
+ }
+ if((PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor()instanceof IMultiDiagramEditor)){
+ IEditorPart editorPart = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
+ papyrusEditor = ((PapyrusMultiDiagramEditor)editorPart);
+
+ if(selection instanceof IStructuredSelection) {
+ @SuppressWarnings("rawtypes")
+ Iterator selectedobjectIteractor = ((IStructuredSelection)selection).iterator();
+ while (selectedobjectIteractor.hasNext()) {
+ Object currentSelection = selectedobjectIteractor.next();
+ if(currentSelection instanceof GraphicalEditPart) {
+ Object graphicalElement = ((GraphicalEditPart)currentSelection).getModel();
+ if((graphicalElement instanceof View) && ((View)graphicalElement).getElement() instanceof org.eclipse.uml2.uml.Element) {
+ selectedSet.add( (org.eclipse.uml2.uml.Element)((View)graphicalElement).getElement());
+ }
+ }
+ else if(currentSelection instanceof IAdaptable) {
+ EObject selectedEObject = (EObject)((IAdaptable)currentSelection).getAdapter(EObject.class);
+ if (selectedEObject instanceof org.eclipse.uml2.uml.Element){
+ selectedSet.add((Element)selectedEObject);
+ }
+ }
+ }
+
+
+ }
+ return selectedSet;
+ }
+ return selectedSet;
+ }
+}
diff --git a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adltool/assistant/Activator.java b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adltool/assistant/Activator.java new file mode 100644 index 00000000000..8846e4faaf4 --- /dev/null +++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adltool/assistant/Activator.java @@ -0,0 +1,69 @@ +/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ *
+ *
+ * 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:
+ * Patrick Tessier (CEA LIST) patrick.tessier@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.adltool.assistant;
+
+import org.eclipse.ui.IStartup;
+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 implements IStartup{
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.eclipse.papyrus.adl4eclipsetool.assistant"; //$NON-NLS-1$
+
+ // The shared instance
+ 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;
+ }
+
+ public void earlyStartup() {
+ // TODO Auto-generated method stub
+
+ }
+
+}
diff --git a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adltool/assistant/CompleteArchitectureHandler.java b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adltool/assistant/CompleteArchitectureHandler.java new file mode 100644 index 00000000000..0ce0182e9ce --- /dev/null +++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adltool/assistant/CompleteArchitectureHandler.java @@ -0,0 +1,76 @@ +
+/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ *
+ *
+ * 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:
+ * Patrick Tessier (CEA LIST) patrick.tessier@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.adltool.assistant;
+
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.jface.window.Window;
+import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.papyrus.adltool.command.CompleteArchitectureSnapshotCommand;
+import org.eclipse.papyrus.adltool.command.SimpleArchitectureSnapshotCommand;
+import org.eclipse.papyrus.adltool.designer.wizard.BundleArchitectureWizard;
+import org.eclipse.papyrus.infra.core.resource.ModelSet;
+import org.eclipse.papyrus.infra.core.services.ServiceException;
+import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
+import org.eclipse.papyrus.infra.emf.utils.ServiceUtilsForHandlers;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.Package;
+
+
+
+public class CompleteArchitectureHandler extends ADLToolAbstractHandler {
+
+ public CompleteArchitectureHandler() {
+ }
+
+ public Object execute(ExecutionEvent event) throws ExecutionException {
+ Element selectedElement=getSelection();
+ ServicesRegistry registry=null;
+ try {
+ registry = ServiceUtilsForHandlers.getInstance().getServiceRegistry(event);
+ } catch (ServiceException e1) {
+ e1.printStackTrace();
+ }
+ ModelSet modelSet;
+ try {
+ modelSet = registry.getService(ModelSet.class);
+ } catch (ServiceException e) {
+ throw new ExecutionException("Can't get ModelSet", e);
+ }
+ BundleArchitectureWizard bWizard=new BundleArchitectureWizard(false);
+ WizardDialog wizardDialog = new WizardDialog(new Shell(),bWizard);
+ if (wizardDialog.open() == Window.OK) {
+ TransactionalEditingDomain dom = modelSet.getTransactionalEditingDomain();
+ if( selectedElement instanceof Package){
+ CompleteArchitectureSnapshotCommand comd= new CompleteArchitectureSnapshotCommand(dom, (Package)selectedElement,bWizard.getSelectedBundle());
+ dom.getCommandStack().execute(comd);
+ }
+ }
+
+ return null;
+ }
+ /**
+ *
+ * @see org.eclipse.core.commands.AbstractHandler#isEnabled()
+ *
+ * @return
+ */
+ @Override
+ public boolean isEnabled() {
+ return true;
+ }
+}
diff --git a/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adltool/assistant/SimpleArchitecrureHandler.java b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adltool/assistant/SimpleArchitecrureHandler.java new file mode 100644 index 00000000000..382fbe5853e --- /dev/null +++ b/extraplugins/adl4eclipse/org.eclipse.papyrus.adl4eclipsetool.assistant/src/org/eclipse/papyrus/adltool/assistant/SimpleArchitecrureHandler.java @@ -0,0 +1,78 @@ +/*****************************************************************************
+ * Copyright (c) 2013 CEA LIST.
+ *
+ *
+ * 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:
+ * Patrick Tessier (CEA LIST) patrick.tessier@cea.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.adltool.assistant;
+
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.emf.transaction.TransactionalEditingDomain;
+import org.eclipse.jface.window.Window;
+import org.eclipse.jface.wizard.WizardDialog;
+import org.eclipse.papyrus.adltool.command.SimpleArchitectureSnapshotCommand;
+import org.eclipse.papyrus.adltool.designer.wizard.BundleArchitectureWizard;
+import org.eclipse.papyrus.infra.core.resource.ModelSet;
+import org.eclipse.papyrus.infra.core.services.ServiceException;
+import org.eclipse.papyrus.infra.core.services.ServicesRegistry;
+import org.eclipse.papyrus.infra.emf.utils.ServiceUtilsForHandlers;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.uml2.uml.Element;
+import org.eclipse.uml2.uml.Package;
+
+
+/**
+ * this handler is used to generate the architecture from workspace
+ *
+ */
+public class SimpleArchitecrureHandler extends ADLToolAbstractHandler {
+
+ public SimpleArchitecrureHandler() {
+ }
+
+ public Object execute(ExecutionEvent event) throws ExecutionException {
+ Element selectedElement=getSelection();
+ ServicesRegistry registry=null;
+ try {
+ registry = ServiceUtilsForHandlers.getInstance().getServiceRegistry(event);
+ } catch (ServiceException e1) {
+ e1.printStackTrace();
+ }
+ ModelSet modelSet;
+ try {
+ modelSet = registry.getService(ModelSet.class);
+ } catch (ServiceException e) {
+ throw new ExecutionException("Can't get ModelSet", e);
+ }
+ BundleArchitectureWizard bWizard=new BundleArchitectureWizard(true);
+ WizardDialog wizardDialog = new WizardDialog(new Shell(),bWizard);
+ if (wizardDialog.open() == Window.OK) {
+ TransactionalEditingDomain dom = modelSet.getTransactionalEditingDomain();
+ if( selectedElement instanceof Package){
+ SimpleArchitectureSnapshotCommand comd= new SimpleArchitectureSnapshotCommand(dom, (Package)selectedElement, bWizard.getSelectedBundle());
+ dom.getCommandStack().execute(comd);
+ }
+ }
+
+
+ return null;
+ }
+ /**
+ *
+ * @see org.eclipse.core.commands.AbstractHandler#isEnabled()
+ *
+ * @return
+ */
+ @Override
+ public boolean isEnabled() {
+ return true;
+ }
+}
|