Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Bug report
about: Create a report to help us improve the following components of the GEMOC Studio: java engine, java_xdsml (K3) (if you know that the issue is relative to another component, consider opening the issue on one of the other GEMOC github repositories)
title: ''
labels: bug
assignees: ''

---

## Bug description

<!-- A clear and concise description of what the bug is. -->


## Expected behavior

<!-- A clear and concise description of what you were expecting to happen. -->


## How to reproduce

Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

## Additional context

<!-- Please fill in the following fields: -->

- **GEMOC Studio version**:
- **Java version**:
- **OS**:

## Screenshot

<!-- If applicable -->


22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Feature request
about: Suggest an idea to improve the following components of the GEMOC Studio: java engine, java_xdsml (K3) (if you know that the issue is relative to another component, consider opening the issue on one of the other GEMOC github repositories)
title: ''
labels: enhancement
assignees: ''

---

## Motivation

<!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->


## Proposed Solution

<!-- A clear and concise description of what you want to happen. -->


## Proposed Implementation

<!-- Optional: if you know enough about the project feel free to suggest a way to implement the solution -->
25 changes: 25 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

## Description

<!-- A description of what the PR does. -->
<!-- optional, provide a rationale explaining its goal -->

Does X

## Changes

<!-- more details , changed documentation sections, changed version, some details about the code changes -->

-

## Contribution to issues

Contribute to #
Closes #

## Companion Pull Requests

<!-- optional, indicate if this PR must be accepted in conjunction with some PR in other GEMOC github repositories in order to provide a working Studio-->
<!-- you may have to edit this PR after submitting it in order to get all cross references between the PRs -->

- PR #
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
bin/
**/xtend-gen/
**/xtend-gen/
*/*.class
**/target/
**/.settings
23 changes: 23 additions & 0 deletions .grenrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
dataSource: "prs"
prefix: "v"
ignoreLabels:
- "duplicate"
- "invalid"
- "question"
- "to do"
- "wontfix"
ignoreIssuesWith:
- "duplicate"
- "invalid"
- "question"
- "wontfix"
"groupBy": {
"Enhancements:": ["enhancement"],
"Bug Fixes:": ["bug"],
"Refactorings": ["refactoring"],
"Version upgrades": ["bump"],
"Release Engineering": ["releng"]
}
onlyMilestones: false
changelogFilename: "CHANGELOG.md"
2 changes: 1 addition & 1 deletion .mvn/extensions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<extension>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-pomless</artifactId>
<version>1.5.1</version>
<version>1.7.0</version>
</extension>
</extensions>
8 changes: 7 additions & 1 deletion .project
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.eclipse.gemoc.execution.sequential.java.root</name>
<name>gemoc-studio-execution-java</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Changelog

## v3.2.0 (16/06/2020)

#### Enhancements:

- [**enhancement**] ValidationRule added to languageComponent in plugin [#10](https://github.com/eclipse/gemoc-studio-execution-java/pull/10)
- [**enhancement**] Metaprogramming approach name changed to FullyQualifiedName [#8](https://github.com/eclipse/gemoc-studio-execution-java/pull/8)
- [**enhancement**] Metaprog plugin modified to fit new extension point description + added LanguageComponent [#9](https://github.com/eclipse/gemoc-studio-execution-java/pull/9)
- [**enhancement**] Validator removed from plugin.xml [#12](https://github.com/eclipse/gemoc-studio-execution-java/pull/12)
- [**enhancement**] Validation plug-in for the Kermeta3 meta-programming approach in GEMOC Studio [#5](https://github.com/eclipse/gemoc-studio-execution-java/pull/5)

#### Bug Fixes:

- [**bug**] Fix windows specific issue on the K3 project creation wizard [#3](https://github.com/eclipse/gemoc-studio-execution-java/pull/3)

#### Refactorings

- [**refactoring**] Kermeta3Rule moved to the gemoc-modeldebugging [#6](https://github.com/eclipse/gemoc-studio-execution-java/pull/6)

#### Release Engineering

- [**releng**] Deploy GEMOC artefacts to maven repository (repo.eclipse.org) [#4](https://github.com/eclipse/gemoc-studio-execution-java/pull/4)
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
-------------
This repository is part of a serie of repositories related to [GEMOC Studio](http://eclipse.org/gemoc) :
- https://github.com/eclipse/gemoc-studio
- https://github.com/eclipse/gemoc-studio-modeldebugging
- https://github.com/eclipse/gemoc-studio-execution-ale
- https://github.com/eclipse/gemoc-studio-execution-java
- https://github.com/eclipse/gemoc-studio-execution-moccml
- https://github.com/eclipse/gemoc-studio-moccml
-------------



JAVA engine for GEMOC
====================

The repository includes the component related to ___java_execution___. Its contains an implementation of the GEMOC framework using a sequential java engine (based on xtend+k3).

# Development
- Continuous integration on [Eclipse CI](https://ci.eclipse.org/gemoc/job/gemoc-studio/)
- [Instructions for building](https://github.com/eclipse/gemoc-studio/tree/master/dev_support/full_compilation)
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,18 @@
import org.eclipse.gemoc.commons.eclipse.ui.ViewHelper;
import org.eclipse.gemoc.execution.sequential.javaengine.PlainK3ExecutionEngine;
import org.eclipse.gemoc.execution.sequential.javaengine.ui.Activator;
import org.eclipse.gemoc.executionframework.engine.commons.DefaultExecutionPlatform;
import org.eclipse.gemoc.executionframework.engine.commons.EngineContextException;
import org.eclipse.gemoc.executionframework.engine.commons.GenericModelExecutionContext;
import org.eclipse.gemoc.executionframework.engine.commons.sequential.ISequentialModelExecutionContext;
import org.eclipse.gemoc.executionframework.engine.commons.sequential.ISequentialRunConfiguration;
import org.eclipse.gemoc.executionframework.engine.commons.sequential.SequentialModelExecutionContext;
import org.eclipse.gemoc.executionframework.engine.commons.sequential.SequentialRunConfiguration;
import org.eclipse.gemoc.executionframework.engine.ui.launcher.AbstractSequentialGemocLauncher;
import org.eclipse.gemoc.executionframework.ui.views.engine.EnginesStatusView;
import org.eclipse.gemoc.xdsmlframework.api.core.ExecutionMode;

public class Launcher extends AbstractSequentialGemocLauncher<GenericModelExecutionContext<ISequentialRunConfiguration>, ISequentialRunConfiguration> {
public class Launcher extends AbstractSequentialGemocLauncher {

public final static String TYPE_ID = Activator.PLUGIN_ID + ".launcher";

Expand All @@ -35,8 +38,7 @@ protected PlainK3ExecutionEngine createExecutionEngine(ISequentialRunConfigurati
ExecutionMode executionMode) throws CoreException, EngineContextException {
// create and initialize engine
PlainK3ExecutionEngine executionEngine = new PlainK3ExecutionEngine();
GenericModelExecutionContext<ISequentialRunConfiguration> executioncontext = new GenericModelExecutionContext<ISequentialRunConfiguration>(
runConfiguration, executionMode);
SequentialModelExecutionContext executioncontext = new SequentialModelExecutionContext(runConfiguration, executionMode);
executioncontext.getExecutionPlatform().getModelLoader().setProgressMonitor(this.launchProgressMonitor);
executioncontext.initializeResourceModel();
executionEngine.initialize(executioncontext);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<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>

<groupId>org.eclipse.gemoc.pomfirst</groupId>
<artifactId>org.eclipse.gemoc.execution.sequential.javaengine</artifactId>
<version>4.0.0-SNAPSHOT</version>

<packaging>jar</packaging>

<properties>
<tycho.scmUrl>scm:git:https://github.com/eclipse/gemoc-studio-modeldebugging.git</tycho.scmUrl>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>


<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>prepare-package</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.eclipse.gemoc.execution.sequential.java</groupId>
<artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/classes</outputDirectory>
<includes>**</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.eclipse.gemoc.pomfirst</groupId>
<artifactId>org.eclipse.gemoc.xdsmlframework.api</artifactId>
<version>4.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.eclipse.gemoc.pomfirst</groupId>
<artifactId>org.eclipse.gemoc.trace.commons.model</artifactId>
<version>3.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.eclipse.gemoc.pomfirst</groupId>
<artifactId>org.eclipse.gemoc.trace.commons</artifactId>
<version>3.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.eclipse.gemoc.pomfirst</groupId>
<artifactId>org.eclipse.gemoc.trace.gemoc.api</artifactId>
<version>3.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.eclipse.gemoc.pomfirst</groupId>
<artifactId>org.eclipse.gemoc.executionframework.engine</artifactId>
<version>4.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>nexus-eclipse-gemoc</id>
<name>Nexus Eclipse GEMOC</name>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<url>https://repo.eclipse.org/content/groups/gemoc/</url>
</repository>
</repositories>
</project>
Loading