Skip to content

Commit

Permalink
Resolving more dependencies for plugin generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnathanRiquelmo committed Feb 9, 2022
1 parent 77382ec commit ba1f432
Show file tree
Hide file tree
Showing 87 changed files with 519 additions and 431 deletions.
Binary file modified ERtext.plugin/ERtext-plugin.zip
Binary file not shown.
327 changes: 264 additions & 63 deletions org.xtext.unipampa.erdsl.ertext.feature/feature.xml

Large diffs are not rendered by default.

Binary file modified org.xtext.unipampa.erdsl.ertext.update/artifacts.jar
Binary file not shown.
Binary file modified org.xtext.unipampa.erdsl.ertext.update/content.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
60 changes: 0 additions & 60 deletions org.xtext.unipampa.erdsl.ertext.update/index.html

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion org.xtext.unipampa.erdsl.ertext.update/site.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature url="features/org.xtext.unipampa.erdsl.ertext.feature_1.0.0.202202042012.jar" id="org.xtext.unipampa.erdsl.ertext.feature" version="1.0.0.202202042012" os="">
<feature url="features/org.xtext.unipampa.erdsl.ertext.feature_1.0.0.202202090133.jar" id="org.xtext.unipampa.erdsl.ertext.feature" version="1.0.0.202202090133">
<category name="ERtext"/>
</feature>
<category-def name="ERtext" label="ERtext"/>
Expand Down
12 changes: 0 additions & 12 deletions org.xtext.unipampa.erdsl.ertext.update/web/site.css

This file was deleted.

214 changes: 0 additions & 214 deletions org.xtext.unipampa.erdsl.ertext.update/web/site.xsl

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
9 changes: 7 additions & 2 deletions org.xtext.unipampa.erdsl.ui/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,13 @@ Require-Bundle: org.xtext.unipampa.erdsl,
Import-Package: org.apache.log4j,
org.eclipse.xtext.ui.codemining;resolution:=optional
Bundle-RequiredExecutionEnvironment: JavaSE-11
Export-Package: org.xtext.unipampa.erdsl.ui.contentassist,
Export-Package: org.xtext.unipampa.erdsl.ui,
org.xtext.unipampa.erdsl.ui.codemining,
org.xtext.unipampa.erdsl.ui.contentassist,
org.xtext.unipampa.erdsl.ui.internal,
org.xtext.unipampa.erdsl.ui.labeling,
org.xtext.unipampa.erdsl.ui.outline,
org.xtext.unipampa.erdsl.ui.quickfix,
org.xtext.unipampa.erdsl.ui.wizard
org.xtext.unipampa.erdsl.ui.wizard,
org.xtext.unipampa.erdsl.validation
Bundle-Activator: org.xtext.unipampa.erdsl.ui.internal.ErdslActivator
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -22,42 +22,60 @@ class ErDslFileTemplateProvider implements IFileTemplateProvider {
//@FileTemplate(label="Hello World", icon="file_template.png", description="Create a hello world for ERDSl.")
//final class HelloWorldFile {
// val helloName = combo("Hello Name:", #["Xtext", "World", "Foo", "Bar"], "The name to say 'Hello' to")
@FileTemplate(label="ERDSL Template", icon="file_template.png", description="Create a template file for ERDSl.")
@FileTemplate(label="ERtext Template", icon="file_template.png", description="Create a template file for ERtext.")
final class ERtextFile {
val modelName = combo("Template:", #["Empty Model"], "The empty model")
val modelName = combo("Template:", #["Template Model"], "The template model")
override generateFiles(IFileGenerator generator) {
generator.generate('''«folder»/«name».erdsl''', '''
«IF modelName.toString.equalsIgnoreCase("Empty Model")»
«IF modelName.toString.equalsIgnoreCase("Template Model")»
/*
* The template to demonstrate an overview of the grammar.
* This does not necessarily displays a semantically correct model regarding to the real world.
*/
Generate All;
Domain Name;
Domain TemplateModel;
Entities {
Entity1 {
attribute1 int isIdentifier,
attribute2 file
EntA {
att1 int isIdentifier,
att2 file
}
/* The generalization type can be:
* [1] total/disjoint, [2] total/overlapped, [3] partial/disjoint OR [4] partial/overlapped
*
* An entity that specializes another should NOT HAVE an IDENTIFIER attribute, as it inherits from the generalized entity.
*/
Entity2 is total/disjoint Entity1 {
attribute3 string,
attribute4 datetime
EntB is total/disjoint EntA {
att3 string,
att4 datetime
}
EntC {
att5 int isIdentifier,
att6 string
}
EntD {
att7 int isIdentifier,
att8 money
}
EntE {
att9 int isIdentifier
}
};
Relationships {
Relationship1 [Entity1 (1:N) relates (1:N) Entity2] {attribute5 int}
Relationship2 [Entity2 (1:N) relates (1:N) Entity1]
R1 [EntA (1:N) relates (1:N) EntA] {attr1 int}
R2 [EntC (1:1) relates (1:1) EntD]
R3 [EntD (0:N) relates (1:N) EntC]
R4 [R3 (1:1) relates (1:N) EntE] //This is a ternary relationship
};
«ENDIF»
''')
}
Expand Down
Loading

0 comments on commit ba1f432

Please sign in to comment.