Skip to content
Snippets Groups Projects
Commit 852e874d authored by Fabian Wiesner's avatar Fabian Wiesner
Browse files

Clean Up

git-svn-id: https://se1.informatik.uni-wuerzburg.de/usvn/svn/code/code/DMM/trunk@9709 9e42b895-fcda-4063-8a3b-11be15eb1bbd
parent 34704f39
No related branches found
No related tags found
No related merge requests found
Showing
with 0 additions and 128 deletions
/*************************************************************************************
*
* 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