Skip to content
This repository has been archived by the owner on Jan 15, 2020. It is now read-only.

Commit

Permalink
Merge pull request #272 from /issues/231
Browse files Browse the repository at this point in the history
Introduce EMF-based graph model on the server
  • Loading branch information
tortmayr authored Jun 5, 2019
2 parents c496557 + 3fcc48a commit 1427bda
Show file tree
Hide file tree
Showing 175 changed files with 25,764 additions and 1,104 deletions.
26 changes: 26 additions & 0 deletions server/example/workflow-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@
<artifactId>glsp-server</artifactId>
<version>1.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.eclipsesource.glsp</groupId>
<artifactId>glsp-graph</artifactId>
<version>1.2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.eclipsesource.glsp</groupId>
<artifactId>glsp-server-websocket</artifactId>
Expand All @@ -86,6 +91,27 @@
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>src/main/java-gen</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/**
* Copyright (c) 2019 EclipseSource and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
* with the GNU Classpath Exception which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package com.eclipsesource.glsp.example.workflow.wfgraph;

import com.eclipsesource.glsp.graph.GNode;

/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Activity Node</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link com.eclipsesource.glsp.example.workflow.wfgraph.ActivityNode#getNodeType <em>Node Type</em>}</li>
* </ul>
*
* @see com.eclipsesource.glsp.example.workflow.wfgraph.WfgraphPackage#getActivityNode()
* @model abstract="true"
* @generated
*/
public interface ActivityNode extends GNode {
/**
* Returns the value of the '<em><b>Node Type</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Node Type</em>' attribute.
* @see #setNodeType(String)
* @see com.eclipsesource.glsp.example.workflow.wfgraph.WfgraphPackage#getActivityNode_NodeType()
* @model
* @generated
*/
String getNodeType();

/**
* Sets the value of the '{@link com.eclipsesource.glsp.example.workflow.wfgraph.ActivityNode#getNodeType <em>Node Type</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Node Type</em>' attribute.
* @see #getNodeType()
* @generated
*/
void setNodeType(String value);

} // ActivityNode
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Copyright (c) 2019 EclipseSource and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
* with the GNU Classpath Exception which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package com.eclipsesource.glsp.example.workflow.wfgraph;

/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Automated Task</b></em>'.
* <!-- end-user-doc -->
*
*
* @see com.eclipsesource.glsp.example.workflow.wfgraph.WfgraphPackage#getAutomatedTask()
* @model
* @generated
*/
public interface AutomatedTask extends TaskNode {
} // AutomatedTask
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Copyright (c) 2019 EclipseSource and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
* with the GNU Classpath Exception which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package com.eclipsesource.glsp.example.workflow.wfgraph;

/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Decision Node</b></em>'.
* <!-- end-user-doc -->
*
*
* @see com.eclipsesource.glsp.example.workflow.wfgraph.WfgraphPackage#getDecisionNode()
* @model
* @generated
*/
public interface DecisionNode extends ActivityNode {
} // DecisionNode
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/**
* Copyright (c) 2019 EclipseSource and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
* with the GNU Classpath Exception which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package com.eclipsesource.glsp.example.workflow.wfgraph;

import com.eclipsesource.glsp.graph.GCompartment;

/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Icon</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link com.eclipsesource.glsp.example.workflow.wfgraph.Icon#getCommandId <em>Command Id</em>}</li>
* </ul>
*
* @see com.eclipsesource.glsp.example.workflow.wfgraph.WfgraphPackage#getIcon()
* @model
* @generated
*/
public interface Icon extends GCompartment {
/**
* Returns the value of the '<em><b>Command Id</b></em>' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Command Id</em>' attribute.
* @see #setCommandId(String)
* @see com.eclipsesource.glsp.example.workflow.wfgraph.WfgraphPackage#getIcon_CommandId()
* @model
* @generated
*/
String getCommandId();

/**
* Sets the value of the '{@link com.eclipsesource.glsp.example.workflow.wfgraph.Icon#getCommandId <em>Command Id</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Command Id</em>' attribute.
* @see #getCommandId()
* @generated
*/
void setCommandId(String value);

} // Icon
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* Copyright (c) 2019 EclipseSource and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
* with the GNU Classpath Exception which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package com.eclipsesource.glsp.example.workflow.wfgraph;

import com.eclipsesource.glsp.graph.GLabel;

/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Label Heading</b></em>'.
* <!-- end-user-doc -->
*
*
* @see com.eclipsesource.glsp.example.workflow.wfgraph.WfgraphPackage#getLabelHeading()
* @model
* @generated
*/
public interface LabelHeading extends GLabel {
} // LabelHeading
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* Copyright (c) 2019 EclipseSource and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
* with the GNU Classpath Exception which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package com.eclipsesource.glsp.example.workflow.wfgraph;

import com.eclipsesource.glsp.graph.GLabel;

/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Label Icon</b></em>'.
* <!-- end-user-doc -->
*
*
* @see com.eclipsesource.glsp.example.workflow.wfgraph.WfgraphPackage#getLabelIcon()
* @model
* @generated
*/
public interface LabelIcon extends GLabel {
} // LabelIcon
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* Copyright (c) 2019 EclipseSource and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
* with the GNU Classpath Exception which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package com.eclipsesource.glsp.example.workflow.wfgraph;

import com.eclipsesource.glsp.graph.GLabel;

/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Label Text</b></em>'.
* <!-- end-user-doc -->
*
*
* @see com.eclipsesource.glsp.example.workflow.wfgraph.WfgraphPackage#getLabelText()
* @model
* @generated
*/
public interface LabelText extends GLabel {
} // LabelText
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Copyright (c) 2019 EclipseSource and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
* with the GNU Classpath Exception which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package com.eclipsesource.glsp.example.workflow.wfgraph;

/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Manual Task</b></em>'.
* <!-- end-user-doc -->
*
*
* @see com.eclipsesource.glsp.example.workflow.wfgraph.WfgraphPackage#getManualTask()
* @model
* @generated
*/
public interface ManualTask extends TaskNode {
} // ManualTask
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Copyright (c) 2019 EclipseSource and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
* with the GNU Classpath Exception which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package com.eclipsesource.glsp.example.workflow.wfgraph;

/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Merge Node</b></em>'.
* <!-- end-user-doc -->
*
*
* @see com.eclipsesource.glsp.example.workflow.wfgraph.WfgraphPackage#getMergeNode()
* @model
* @generated
*/
public interface MergeNode extends ActivityNode {
} // MergeNode
Loading

0 comments on commit 1427bda

Please sign in to comment.