Skip to content
Snippets Groups Projects
Commit 7b41ca87 authored by Fabian Brosig's avatar Fabian Brosig
Browse files

initial commit of spray/graphiti project for composite diagrams

git-svn-id: https://se1.informatik.uni-wuerzburg.de/usvn/svn/code/code/DMM/trunk@9657 9e42b895-fcda-4063-8a3b-11be15eb1bbd
parent 69d3a02b
No related branches found
No related tags found
No related merge requests found
Showing
with 206 additions and 0 deletions
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="src-gen"/>
<classpathentry kind="src" path="model"/>
<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="output" path="bin"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>edu.kit.ipd.descartes.mm.applicationlevel.repository.compositediagram</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>
<buildCommand>
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
</natures>
</projectDescription>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: edu.kit.ipd.descartes.mm.applicationlevel.repository.compositediagram
Bundle-Vendor: My Company
Bundle-Version: 1.0.0.qualifier
Bundle-SymbolicName: edu.kit.ipd.descartes.mm.applicationlevel.repository.compositediagram; singleton:=true
Bundle-Activator: edu.kit.ipd.descartes.mm.applicationlevel.repository.compositediagram.Activator
Bundle-ActivationPolicy: lazy
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.emf.ecore,
org.eclipse.graphiti;bundle-version="0.8.0",
org.eclipse.graphiti.mm;bundle-version="0.8.0",
org.eclipse.graphiti.pattern;bundle-version="0.8.0",
org.eclipse.graphiti.ui;bundle-version="0.8.0",
org.eclipse.graphiti.ui.capabilities;bundle-version="0.8.0",
org.eclipselabs.spray.runtime.graphiti,
org.eclipselabs.spray.shapes,
org.eclipselabs.spray.styles,
org.eclipse.ui.views.properties.tabbed;bundle-version="3.5.200",
org.eclipse.emf;bundle-version="2.6.0",
org.eclipse.emf.transaction;bundle-version="1.4.0",
com.google.guava;bundle-version="10.0.1",
com.google.inject;bundle-version="3.0.0",
javax.inject;bundle-version="1.0.0",
edu.kit.ipd.descartes.mm.applicationlevel
Import-Package: org.apache.log4j,
org.apache.commons.logging,
org.eclipse.xtext.xbase.lib,
org.eclipse.xtext.service,
org.eclipse.xtext.ui.editor,
org.eclipse.xtext.ui.guice,
org.eclipse.xtext.ui.resource,
org.eclipse.xtext.util
Bundle-RequiredExecutionEnvironment: J2SE-1.5
/*************************************************************************************
*
* Spray shapes definition
*
* This file contains the definition of graphical figures using the Shapes Language.
* Refer to http://code.google.com/a/eclipselabs.org/p/spray/ for documentation.
*************************************************************************************/
// Add import statements here, e.g.
// import java.util.*
// Add definition of shapes here.
// shape RectangleShape {
// rectangle {
// position(x=0,y=0)
// size(width=100,height=100)
// }
// }
shape CompositeShape {
rectangle {
compartment(
layout=vertical
spacing = 5
margin = 5
id = context
)
position(x=0, y=0)
size(width=100, height=25)
text {
position(x=5, y=0)
size(width=95, height=25)
id = classText
}
}
}
shape RectShape {
rectangle {
position(x=0, y=0)
size(width=100, height=25)
text {
position(x=5, y=0)
size(width=95, height=25)
id = rectText
}
}
}
/*************************************************************************************
*
* Spray diagram definition
*
* This file contains the definition of a graphical editor using the Spray Language.
* Refer to http://code.google.com/a/eclipselabs.org/p/spray/ for documentation.
*
* See also compositediagram.properties to configure generator properties.
*************************************************************************************/
// Add import statements here
import repository.*
diagram compositediagram for Repository style CompositediagramDefaultStyle
// Add class mappings here. Refer to EClasses here. Don't forget to configure a
// dependency to the plugin defining the EMF metamodel in META-INF/MANIFEST.MF.
// It is required to have a genmodel for the metamodel. If the Ecore model lies in
// a workspace project, this project must have the Xtext nature.
//
// Example class mapping:
// class BusinessClass icon "ecore/EClass.gif" {
// container ( fill=yellow )
// {
// text ( ) { "<<"+eClass.name+">> " + name};
// line ( color=black width=2)
// }
// behavior {
// // Enable create feature for this class and add it to the palette "Shapes"
// create into types palette "Shapes";
// }
// }
//
// Example association mapping:
// class Association icon "connection16.gif" {
// connection ( ) {
// from source;
// to target;
// fromText "source " + source.name
// }
// }
class CompositeComponent {
shape CompositeShape {
name into classText
reference assemblyContexts into context
}
behavior {
create into components palette "Components"
}
}
class AssemblyContext {
shape RectShape {
name into rectText
}
behavior {
create palette "Context"
}
}
/*************************************************************************************
*
* Spray styles definition
*
* This file contains the definition of style classes using the Styles Language.
* Refer to http://code.google.com/a/eclipselabs.org/p/spray/ for documentation.
*************************************************************************************/
// Add definition of styles here.
style CompositediagramDefaultStyle {
description = "The default style of the compositediagram diagram type."
// transparency = 0.95
// background-color = black
// line-color = black
// line-style = solid
// line-width = 1
// font-color = black
// font-name = "Tahoma"
font-size = 12
// font-bold = yes
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment