Start new feature "Global Analysis". Add two plug-ins *.globalanalysis.execution and *.globalanalysis.execution.ui Change-Id: I3b40af6a3a8702f3bb2c712c566a3d7e10638d52
diff --git a/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/.classpath b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/.classpath new file mode 100644 index 0000000..d97031b --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/.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/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="src" path="src/main/java"/> + <classpathentry kind="output" path="target/classes/"/> +</classpath>
diff --git a/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/.project b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/.project new file mode 100644 index 0000000..3638ddd --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/.project
@@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.polarsys.esf.globalanalysis.execution.ui</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/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/.settings/org.eclipse.jdt.core.prefs b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..f42de36 --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/.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.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7
diff --git a/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/META-INF/MANIFEST.MF b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/META-INF/MANIFEST.MF new file mode 100644 index 0000000..ac2a2de --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/META-INF/MANIFEST.MF
@@ -0,0 +1,21 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %Bundle-Name +Bundle-Vendor: %Bundle-Vendor +Bundle-Localization: src/main/resources/properties/plugin +Bundle-SymbolicName: org.polarsys.esf.globalanalysis.execution.ui;singleton:=true +Bundle-Version: 0.7.0.qualifier +Bundle-Activator: org.polarsys.esf.globalanalysis.execution.ui.GlobalAnalysisExecutionUIActivator$Implementation +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.emf.common, + org.eclipse.ui.workbench, + org.eclipse.core.commands, + org.eclipse.jface, + org.polarsys.esf.core.utils;bundle-version="0.7.0";visibility:=reexport, + org.eclipse.emf.common.ui, + org.eclipse.uml2.uml, + org.polarsys.esf.analysis.common.ui;bundle-version="0.7.0";visibility:=reexport, + org.polarsys.esf.localanalysis.profile;bundle-version="0.7.0";visibility:=reexport, + org.polarsys.esf.globalanalysis.execution;bundle-version="0.7.0";visibility:=reexport +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Bundle-ActivationPolicy: lazy
diff --git a/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/about.html b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/about.html new file mode 100644 index 0000000..d35d5ae --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/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/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/build.properties b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/build.properties new file mode 100644 index 0000000..d32bb2c --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/build.properties
@@ -0,0 +1,7 @@ +source.. = src/main/java/ +output.. = target/classes/ +bin.includes = META-INF/,\ + .,\ + plugin.xml,\ + src/main/resources/properties/,\ + about.html
diff --git a/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/plugin.xml b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/plugin.xml new file mode 100644 index 0000000..0191188 --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/plugin.xml
@@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.4"?> +<plugin> + <extension + id="org.polarsys.esf.globalanalysis.execution.ui.commands" + point="org.eclipse.ui.commands"> + <command + description="%menucontext.execution.ui.new.propagation.description" + id="org.polarsys.esf.globalanalysis.execution.ui.new.propagation.command" + name="%menucontext.execution.ui.new.propagation.label"> + </command> + </extension> + <extension + point="org.eclipse.ui.handlers"> + <handler + class="org.polarsys.esf.globalanalysis.execution.ui.handler.StartNewPropagationHandler" + commandId="org.polarsys.esf.globalanalysis.execution.ui.new.propagation.command"> + <activeWhen> + <and> + <with + variable="selection"> + <iterate> + <adapt + type="org.eclipse.emf.ecore.EObject"> + <instanceof + value="org.eclipse.uml2.uml.Package"> + </instanceof> + </adapt> + </iterate> + </with> + <count + value="1"> + </count> + </and> + </activeWhen> + </handler> + </extension> + <extension + point="org.eclipse.ui.menus"> + <menuContribution + allPopups="false" + locationURI="popup:org.eclipse.papyrus.views.modelexplorer.modelexplorer.popup?before=esf.general.bottom"> + <menu + id="org.polarsys.esf.analysis.common.ui.analysis.tools.modelexplorer.menu" + label="%menucontext.analysis.ui.analysis.tools.menu.label"> + <menu + id="org.polarsys.esf.globalanalysis.execution.ui.menu" + label="%menucontext.execution.ui.menu.label"> + <command + commandId="org.polarsys.esf.globalanalysis.execution.ui.new.propagation.command" + label="%menucontext.execution.ui.new.propagation.label" + style="push"> + </command> + </menu> + </menu> + </menuContribution> + + </extension> +</plugin>
diff --git a/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/pom.xml b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/pom.xml new file mode 100644 index 0000000..ad54b91 --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/pom.xml
@@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 + http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.polarsys.esf</groupId> + <artifactId>esf-tools.analysis.globalanalysis.execution</artifactId> + <version>0.7.0-SNAPSHOT</version> + </parent> + + <groupId>org.polarsys.esf</groupId> + <artifactId>org.polarsys.esf.globalanalysis.execution.ui</artifactId> + <packaging>eclipse-plugin</packaging> + <name>Global Analysis Execution UI</name> + <description>Global Analysis Execution UI description.</description> + +</project> \ No newline at end of file
diff --git a/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/src/main/java/org/polarsys/esf/globalanalysis/execution/ui/GlobalAnalysisExecutionUIActivator.java b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/src/main/java/org/polarsys/esf/globalanalysis/execution/ui/GlobalAnalysisExecutionUIActivator.java new file mode 100644 index 0000000..5ac60ce --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/src/main/java/org/polarsys/esf/globalanalysis/execution/ui/GlobalAnalysisExecutionUIActivator.java
@@ -0,0 +1,129 @@ +/******************************************************************************* + * Copyright (c) 2016 ALL4TEC & 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: + * ALL4TEC & CEA LIST - initial API and implementation + ******************************************************************************/ +package org.polarsys.esf.globalanalysis.execution.ui; + +import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.Status; +import org.eclipse.emf.common.EMFPlugin; +import org.eclipse.emf.common.ui.EclipseUIPlugin; +import org.eclipse.emf.common.util.ResourceLocator; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle. + * + * @author $Author: ymunoz $ + * @version $Revision: 168 $ + */ +public class GlobalAnalysisExecutionUIActivator extends EMFPlugin { + + /** Keep track of the encapsulating singleton. */ + public static final GlobalAnalysisExecutionUIActivator INSTANCE = new GlobalAnalysisExecutionUIActivator(); + + /** Keep track of the implementation singleton. */ + private static Implementation sPlugin = null; + + /** + * Create the instance. + */ + public GlobalAnalysisExecutionUIActivator() { + super(new ResourceLocator[] {}); + } + + /** + * Create an Error status with the data given in parameter and log it. + * + * @param pMessage The message to log + * @param pException The exception to log + */ + public static void logError(final String pMessage, final Exception pException) { + // Create the Error status + IStatus vStatus = new Status(IStatus.ERROR, sPlugin.getSymbolicName(), IStatus.ERROR, pMessage, pException); + + // Log it + INSTANCE.log(vStatus); + } + + /** + * Create a Warning status with the data given in parameter and log it. + * + * @param pMessage The message to log + * @param pException The exception to log + */ + public static void logWarning(final String pMessage, final Exception pException) { + // Create the Warning status + IStatus vStatus = new Status(IStatus.WARNING, sPlugin.getSymbolicName(), IStatus.WARNING, pMessage, pException); + + // Log it + INSTANCE.log(vStatus); + } + + /** + * Create an Info status with the data given in parameter and log it. + * + * @param pMessage The message to log + * @param pException The exception to log + */ + public static void logInfo(final String pMessage, final Exception pException) { + // Create the Info status + IStatus vStatus = new Status(IStatus.INFO, sPlugin.getSymbolicName(), IStatus.INFO, pMessage, pException); + + // Log it + INSTANCE.log(vStatus); + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * @return The singleton instance. + */ + @Override + public ResourceLocator getPluginResourceLocator() { + return sPlugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * @return The singleton instance. + */ + public static Implementation getPlugin() { + return sPlugin; + } + + /** + * The actual implementation of the Eclipse <b>UIPlugin</b>. + */ + public static class Implementation + extends EclipseUIPlugin { + + /** + * Creates an instance. + */ + public Implementation() { + super(); + + // Remember the static instance. + sPlugin = this; + + } + + /** + * {@inheritDoc} + */ + @Override + public void start(final BundleContext pContext) throws Exception { + super.start(pContext); + } + } + + +}
diff --git a/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/src/main/java/org/polarsys/esf/globalanalysis/execution/ui/handler/StartNewPropagationHandler.java b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/src/main/java/org/polarsys/esf/globalanalysis/execution/ui/handler/StartNewPropagationHandler.java new file mode 100644 index 0000000..735f511 --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/src/main/java/org/polarsys/esf/globalanalysis/execution/ui/handler/StartNewPropagationHandler.java
@@ -0,0 +1,57 @@ +/******************************************************************************* + * Copyright (c) 2016 ALL4TEC & 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: + * ALL4TEC & CEA LIST - initial API and implementation + ******************************************************************************/ +package org.polarsys.esf.globalanalysis.execution.ui.handler; + +import org.eclipse.core.commands.AbstractHandler; +import org.eclipse.core.commands.ExecutionEvent; +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.ui.handlers.HandlerUtil; +import org.eclipse.uml2.uml.Package; +import org.eclipse.uml2.uml.UMLPackage; +import org.eclipse.uml2.uml.util.UMLUtil; +import org.polarsys.esf.core.utils.ModelUtil; +import org.polarsys.esf.esflocalanalysis.ISLocalAnalysis; +import org.polarsys.esf.globalanalysis.execution.propagation.NewPropagation; + +/** + * Handler class for starting a new propagation. + * + * @author $Author: ymunoz $ + * @version $Revision: 168 $ + // */ +public final class StartNewPropagationHandler + extends AbstractHandler { + + /** + * Default constructor. + */ + public StartNewPropagationHandler() { } + + /** + * Get the selected element and setup a new Local Analysis. + * + * {@inheritDoc} + */ + @Override + public Object execute(final ExecutionEvent pEvent) throws ExecutionException { + ISelection vSelection = HandlerUtil.getCurrentSelection(pEvent); + + final Package vSelectedPackage = + (Package) ModelUtil.getSelectedEObjectOfType(vSelection, UMLPackage.eINSTANCE.getPackage()); + + if ((vSelectedPackage != null) && (UMLUtil.getStereotypeApplication(vSelectedPackage, ISLocalAnalysis.class) != null)) { + NewPropagation.start(UMLUtil.getStereotypeApplication(vSelectedPackage, ISLocalAnalysis.class)); + } + return null; + } + +}
diff --git a/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/src/main/resources/properties/plugin.properties b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/src/main/resources/properties/plugin.properties new file mode 100644 index 0000000..7c78d77 --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution.ui/src/main/resources/properties/plugin.properties
@@ -0,0 +1,9 @@ +#Properties file for org.polarsys.esf.globalanalysis.execution.ui +Bundle-Name=Global Analysis Execution UI +Bundle-Vendor=PolarSys + +menucontext.analysis.ui.analysis.tools.menu.label = ESF Analysis Tools + +menucontext.execution.ui.menu.label = ESF Global Analysis +menucontext.execution.ui.new.propagation.label = Start new Propagation +menucontext.execution.ui.new.propagation.description = Start new Progation \ No newline at end of file
diff --git a/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/.classpath b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/.classpath new file mode 100644 index 0000000..d97031b --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/.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/JavaSE-1.7"/> + <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/> + <classpathentry kind="src" path="src/main/java"/> + <classpathentry kind="output" path="target/classes/"/> +</classpath>
diff --git a/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/.project b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/.project new file mode 100644 index 0000000..d5aa941 --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/.project
@@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>org.polarsys.esf.globalanalysis.execution</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/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/.settings/org.eclipse.jdt.core.prefs b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..f42de36 --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/.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.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7
diff --git a/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/META-INF/MANIFEST.MF b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/META-INF/MANIFEST.MF new file mode 100644 index 0000000..378423e --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/META-INF/MANIFEST.MF
@@ -0,0 +1,15 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %Bundle-Name +Bundle-Vendor: %Bundle-Vendor +Bundle-Localization: src/main/resources/properties/plugin +Bundle-SymbolicName: org.polarsys.esf.globalanalysis.execution;singleton:=true +Bundle-Version: 0.7.0.qualifier +Bundle-Activator: org.polarsys.esf.globalanalysis.execution.GlobalAnalysisExecutionActivator$Implementation +Require-Bundle: org.eclipse.core.runtime, + org.polarsys.esf.core.utils;bundle-version="0.7.0";visibility:=reexport, + org.eclipse.uml2.uml, + org.polarsys.esf.localanalysis.profile;bundle-version="0.7.0";visibility:=reexport +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Bundle-ActivationPolicy: lazy +Export-Package: org.polarsys.esf.globalanalysis.execution.propagation
diff --git a/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/about.html b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/about.html new file mode 100644 index 0000000..d35d5ae --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/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/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/build.properties b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/build.properties new file mode 100644 index 0000000..04d297d --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/build.properties
@@ -0,0 +1,6 @@ +source.. = src/main/java/ +output.. = target/classes/ +bin.includes = META-INF/,\ + .,\ + src/main/resources/properties/,\ + about.html
diff --git a/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/pom.xml b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/pom.xml new file mode 100644 index 0000000..b77687d --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/pom.xml
@@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 + http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.polarsys.esf</groupId> + <artifactId>esf-tools.analysis.globalanalysis.execution</artifactId> + <version>0.7.0-SNAPSHOT</version> + </parent> + + <groupId>org.polarsys.esf</groupId> + <artifactId>org.polarsys.esf.globalanalysis.execution</artifactId> + <packaging>eclipse-plugin</packaging> + <name>Global Analysis Execution</name> + <description>Global Analysis Execution description.</description> + +</project> \ No newline at end of file
diff --git a/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/src/main/java/org/polarsys/esf/globalanalysis/execution/GlobalAnalysisExecutionActivator.java b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/src/main/java/org/polarsys/esf/globalanalysis/execution/GlobalAnalysisExecutionActivator.java new file mode 100644 index 0000000..7d09a79 --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/src/main/java/org/polarsys/esf/globalanalysis/execution/GlobalAnalysisExecutionActivator.java
@@ -0,0 +1,105 @@ +/******************************************************************************* + * Copyright (c) 2016 ALL4TEC & 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: + * ALL4TEC & CEA LIST - initial API and implementation + ******************************************************************************/ +package org.polarsys.esf.globalanalysis.execution; + +import org.eclipse.emf.common.EMFPlugin; +import org.eclipse.emf.common.util.ResourceLocator; +import org.osgi.framework.BundleActivator; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle. + * + * @author $Author: ymunoz $ + * @version $Revision: 168 $ + */ +public class GlobalAnalysisExecutionActivator extends EMFPlugin implements BundleActivator { + + /** Keep track of the encapsulating singleton. */ + public static final GlobalAnalysisExecutionActivator INSTANCE = new GlobalAnalysisExecutionActivator(); + + /** Execution context for the bundle. */ + private static BundleContext sBundleContext = null; + + /** Keep track of the implementation singleton. */ + private static Implementation sPlugin = null; + + /** + * Create the instance. + */ + public GlobalAnalysisExecutionActivator() { + super(new ResourceLocator[] {}); + } + + /** + * Get BundlexContext. + * + * @return BundleContext + */ + static BundleContext getContext() { + return sBundleContext; + } + + /** + * {@inheritDoc} + * + * Added to ensure that the activator can work with the profile mechanisms. + */ + @Override + public void start(final BundleContext pContext) throws Exception { + sBundleContext = pContext; + + } + + /** + * {@inheritDoc} + * + * Added to ensure that the activator can work with the profile mechanisms. + */ + @Override + public void stop(final BundleContext pContext) throws Exception { + sBundleContext = null; + } + + /** + * {@inheritDoc} + */ + @Override + public ResourceLocator getPluginResourceLocator() { + return sPlugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * @return The singleton instance + */ + public static Implementation getPlugin() { + return sPlugin; + } + + /** + * The actual implementation of the Eclipse <b>UIPlugin</b>. + */ + public static class Implementation + extends EclipsePlugin { + + /** + * Creates an instance. + */ + public Implementation() { + super(); + + // Remember of the static instance + sPlugin = this; + } + } +} \ No newline at end of file
diff --git a/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/src/main/java/org/polarsys/esf/globalanalysis/execution/propagation/NewPropagation.java b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/src/main/java/org/polarsys/esf/globalanalysis/execution/propagation/NewPropagation.java new file mode 100644 index 0000000..09295ee --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/src/main/java/org/polarsys/esf/globalanalysis/execution/propagation/NewPropagation.java
@@ -0,0 +1,37 @@ +/******************************************************************************* + * Copyright (c) 2016 ALL4TEC & 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: + * ALL4TEC & CEA LIST - initial API and implementation + ******************************************************************************/ +package org.polarsys.esf.globalanalysis.execution.propagation; + +import org.polarsys.esf.esflocalanalysis.ISLocalAnalysis; + +/** + * Class for starting a new propagation. + * + * @author $Author: ymunoz $ + * @version $Revision: 168 $ + */ +public final class NewPropagation { + + /** + * Default constructorr, private as it's a utility class. + */ + private NewPropagation() { + } + + /** + * Start a new Propagation. + * + * @param pSLocalAnalysis The SLocalAnalysis to be analysed + */ + public static void start(final ISLocalAnalysis pSLocalAnalysis) { + System.out.println(pSLocalAnalysis.getName()); + } +}
diff --git a/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/src/main/resources/properties/plugin.properties b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/src/main/resources/properties/plugin.properties new file mode 100644 index 0000000..30d6380 --- /dev/null +++ b/analysis/globalanalysis/execution/org.polarsys.esf.globalanalysis.execution/src/main/resources/properties/plugin.properties
@@ -0,0 +1,3 @@ +#Properties file for org.polarsys.esf.globalanalysis.execution +Bundle-Name=Global Analysis Execution +Bundle-Vendor=PolarSys \ No newline at end of file
diff --git a/analysis/globalanalysis/execution/pom.xml b/analysis/globalanalysis/execution/pom.xml new file mode 100644 index 0000000..86966de --- /dev/null +++ b/analysis/globalanalysis/execution/pom.xml
@@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 + http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <!-- PROJECT DESCRIPTION --> + <parent> + <groupId>org.polarsys.esf</groupId> + <artifactId>esf-tools.analysis.globalanalysis</artifactId> + <version>0.7.0-SNAPSHOT</version> + </parent> + + <groupId>org.polarsys.esf</groupId> + <artifactId>esf-tools.analysis.globalanalysis.execution</artifactId> + <packaging>pom</packaging> + <name>ESF Global Analysis Execution</name> + <description>ESF Global Analysis Execution description.</description> + + <!-- MODULES --> + <modules> + <module>org.polarsys.esf.globalanalysis.execution</module> + <module>org.polarsys.esf.globalanalysis.execution.ui</module> + </modules> +</project> \ No newline at end of file
diff --git a/analysis/globalanalysis/pom.xml b/analysis/globalanalysis/pom.xml new file mode 100644 index 0000000..283ae1e --- /dev/null +++ b/analysis/globalanalysis/pom.xml
@@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 + http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <!-- PROJECT DESCRIPTION --> + <parent> + <groupId>org.polarsys.esf</groupId> + <artifactId>esf-tools.analysis</artifactId> + <version>0.7.0-SNAPSHOT</version> + </parent> + + <groupId>org.polarsys.esf</groupId> + <artifactId>esf-tools.analysis.globalanalysis</artifactId> + <packaging>pom</packaging> + <name>ESF Tools Global Analysis</name> + <description>ESF Tools Global Analysis description</description> + + <!-- MODULES --> + <modules> + <module>execution</module> + </modules> + +</project>