Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.

Commit fa7cd5e

Browse files
committed
new example for query-driven soft interconnections
1 parent 5ce3d7c commit fa7cd5e

File tree

164 files changed

+25146
-109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+25146
-109
lines changed

derived-features-by-queries/school-derived-base/META-INF/MANIFEST.MF

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@ Bundle-ManifestVersion: 2
33
Bundle-Name: school-derived-base
44
Bundle-SymbolicName: school-derived-base;singleton:=true
55
Bundle-Version: 0.0.1.qualifier
6-
Export-Package: coursesofteacher,
7-
lastyear,
8-
lateryear,
9-
morecourses,
10-
teachers,
6+
Export-Package: coursesofteacher,
7+
eclassnames,
8+
lastyear,
9+
lateryear,
10+
morecourses,
11+
teachers,
1112
teacherwithmostcourses
12-
Require-Bundle: org.eclipse.pde.core,
13-
org.eclipse.emf.ecore,
14-
org.eclipse.emf.transaction,
15-
org.eclipse.viatra2.emf.incquery.runtime,
13+
Require-Bundle: org.eclipse.pde.core,
14+
org.eclipse.emf.ecore,
15+
org.eclipse.emf.transaction,
16+
org.eclipse.viatra2.emf.incquery.runtime,
1617
org.eclipse.xtext.xbase.lib
1718
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Lines changed: 25 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,25 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<plugin>
3-
4-
<extension
5-
id="school.incquery.school.incquery.school.incquery.school.incquery.school.incquery.school.incquery.wellbehavedContribution"
6-
name=""
7-
point="org.eclipse.viatra2.emf.incquery.wellbehaving.derived.features">
8-
<wellbehaving-derived-feature
9-
classifier-name="School"
10-
feature-name="numberOfTeachers"
11-
package-nsUri="http:///school.ecore">
12-
</wellbehaving-derived-feature>
13-
<wellbehaving-derived-feature
14-
classifier-name="School"
15-
feature-name="teachersWithMostCourses"
16-
package-nsUri="http:///school.ecore">
17-
</wellbehaving-derived-feature>
18-
<wellbehaving-derived-feature
19-
classifier-name="School"
20-
feature-name="lastYear"
21-
package-nsUri="http:///school.ecore">
22-
</wellbehaving-derived-feature>
23-
</extension>
24-
<extension
25-
id="teachers"
26-
point="org.eclipse.viatra2.emf.incquery.matcherfactory">
27-
<matcher
28-
factory="teachers.TeachersMatcherFactory"
29-
id="teachers">
30-
</matcher>
31-
</extension>
32-
<extension
33-
id="coursesOfTeacher"
34-
point="org.eclipse.viatra2.emf.incquery.matcherfactory">
35-
<matcher
36-
factory="coursesofteacher.CoursesOfTeacherMatcherFactory"
37-
id="coursesOfTeacher">
38-
</matcher>
39-
</extension>
40-
<extension
41-
id="teacherWithMostCourses"
42-
point="org.eclipse.viatra2.emf.incquery.matcherfactory">
43-
<matcher
44-
factory="teacherwithmostcourses.TeacherWithMostCoursesMatcherFactory"
45-
id="teacherWithMostCourses">
46-
</matcher>
47-
</extension>
48-
<extension
49-
id="moreCourses"
50-
point="org.eclipse.viatra2.emf.incquery.matcherfactory">
51-
<matcher
52-
factory="morecourses.MoreCoursesMatcherFactory"
53-
id="moreCourses">
54-
</matcher>
55-
</extension>
56-
<extension
57-
id="lastYear"
58-
point="org.eclipse.viatra2.emf.incquery.matcherfactory">
59-
<matcher
60-
factory="lastyear.LastYearMatcherFactory"
61-
id="lastYear">
62-
</matcher>
63-
</extension>
64-
<extension
65-
id="laterYear"
66-
point="org.eclipse.viatra2.emf.incquery.matcherfactory">
67-
<matcher
68-
factory="lateryear.LaterYearMatcherFactory"
69-
id="laterYear">
70-
</matcher>
71-
</extension>
72-
73-
</plugin>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<plugin>
3+
4+
<extension
5+
id="school.incquery.school.incquery.school.incquery.school.incquery.school.incquery.school.incquery.wellbehavedContribution"
6+
name=""
7+
point="org.eclipse.viatra2.emf.incquery.wellbehaving.derived.features">
8+
<wellbehaving-derived-feature
9+
classifier-name="School"
10+
feature-name="numberOfTeachers"
11+
package-nsUri="http:///school.ecore">
12+
</wellbehaving-derived-feature>
13+
<wellbehaving-derived-feature
14+
classifier-name="School"
15+
feature-name="teachersWithMostCourses"
16+
package-nsUri="http:///school.ecore">
17+
</wellbehaving-derived-feature>
18+
<wellbehaving-derived-feature
19+
classifier-name="School"
20+
feature-name="lastYear"
21+
package-nsUri="http:///school.ecore">
22+
</wellbehaving-derived-feature>
23+
</extension>
24+
25+
</plugin>

derived-features-by-queries/school-derived.example/META-INF/MANIFEST.MF

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ Bundle-ManifestVersion: 2
33
Bundle-Name: school-derived.example
44
Bundle-SymbolicName: school-derived.example;singleton:=true
55
Bundle-Version: 0.0.1.qualifier
6-
Export-Package: classesoflastyear,
7-
coursesofteacherwithmostcourses
8-
Require-Bundle: org.eclipse.pde.core,
9-
org.eclipse.emf.ecore,
10-
org.eclipse.emf.transaction,
11-
org.eclipse.viatra2.emf.incquery.runtime,
6+
Export-Package: classesoflastyear,
7+
coursesofteacherwithmostcourses,
8+
eclassnames
9+
Require-Bundle: org.eclipse.pde.core,
10+
org.eclipse.emf.ecore,
11+
org.eclipse.emf.transaction,
12+
org.eclipse.viatra2.emf.incquery.runtime,
1213
org.eclipse.xtext.xbase.lib
1314
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<plugin>
3-
4-
<extension
5-
id="coursesOfTeacherWithMostCourses"
6-
point="org.eclipse.viatra2.emf.incquery.matcherfactory">
7-
<matcher
8-
factory="coursesofteacherwithmostcourses.CoursesOfTeacherWithMostCoursesMatcherFactory"
9-
id="coursesOfTeacherWithMostCourses">
10-
</matcher>
11-
</extension>
12-
<extension
13-
id="classesOfLastYear"
14-
point="org.eclipse.viatra2.emf.incquery.matcherfactory">
15-
<matcher
16-
factory="classesoflastyear.ClassesOfLastYearMatcherFactory"
17-
id="classesOfLastYear">
18-
</matcher>
19-
</extension>
20-
21-
</plugin>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<plugin>
3+
4+
</plugin>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Query-driven soft interconnection for EMF models
2+
================================================
3+
4+
See https://viatra.inf.mit.bme.hu/incquery/new/examples/query-driven-soft-links for details
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
5+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
6+
<classpathentry kind="output" path="bin"/>
7+
</classpath>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>derivedModels.edit</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.pde.ManifestBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.pde.SchemaBuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
</buildSpec>
24+
<natures>
25+
<nature>org.eclipse.jdt.core.javanature</nature>
26+
<nature>org.eclipse.pde.PluginNature</nature>
27+
</natures>
28+
</projectDescription>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: %pluginName
4+
Bundle-SymbolicName: derivedModels.edit;singleton:=true
5+
Bundle-Version: 1.0.0.qualifier
6+
Bundle-ClassPath: .
7+
Bundle-Activator: process.provider.DerivedModelEditPlugin$Implementation
8+
Bundle-Vendor: %providerName
9+
Bundle-Localization: plugin
10+
Export-Package: operation.provider,
11+
process.provider,
12+
system.provider
13+
Require-Bundle: org.eclipse.core.runtime,
14+
derivedModels;visibility:=reexport,
15+
org.eclipse.emf.edit;visibility:=reexport
16+
Eclipse-LazyStart: true
17+
Bundle-ActivationPolicy: lazy
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# <copyright>
3+
# </copyright>
4+
#
5+
# $Id$
6+
7+
bin.includes = .,\
8+
icons/,\
9+
META-INF/,\
10+
plugin.xml,\
11+
plugin.properties
12+
jars.compile.order = .
13+
source.. = src/
14+
output.. = bin/
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
2+
# <copyright>
3+
# </copyright>
4+
#
5+
# $Id$
6+
7+
pluginName = DerivedModel Edit Support
8+
providerName = www.example.org
9+
10+
_UI_CreateChild_text = {0}
11+
_UI_CreateChild_text2 = {1} {0}
12+
_UI_CreateChild_text3 = {1}
13+
_UI_CreateChild_tooltip = Create New {0} Under {1} Feature
14+
_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}.
15+
_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent.
16+
17+
_UI_PropertyDescriptor_description = The {0} of the {1}
18+
19+
_UI_Task_type = Task
20+
_UI_Process_type = Process
21+
_UI_ProcessElement_type = Element
22+
_UI_Gateway_type = Gateway
23+
_UI_Activity_type = Activity
24+
_UI_MenuItem_type = Menu Item
25+
_UI_RuntimeInformation_type = Runtime Information
26+
_UI_ChecklistEntry_type = Checklist Entry
27+
_UI_Checklist_type = Checklist
28+
_UI_OperationElement_type = Element
29+
_UI_System_type = System
30+
_UI_Interface_type = Interface
31+
_UI_Job_type = Job
32+
_UI_Data_type = Data
33+
_UI_ResourceElement_type = Resource Element
34+
_UI_Unknown_type = Object
35+
36+
_UI_Unknown_datatype= Value
37+
38+
_UI_Task_kind_feature = Kind
39+
_UI_Process_contents_feature = Contents
40+
_UI_ProcessElement_id_feature = Id
41+
_UI_ProcessElement_name_feature = Name
42+
_UI_Activity_parent_feature = Parent
43+
_UI_Activity_next_feature = Next
44+
_UI_Activity_previous_feature = Previous
45+
_UI_MenuItem_description_feature = Description
46+
_UI_MenuItem_location_feature = Location
47+
_UI_RuntimeInformation_contents_feature = Contents
48+
_UI_ChecklistEntry_menu_feature = Menu
49+
_UI_ChecklistEntry_info_feature = Info
50+
_UI_ChecklistEntry_taskId_feature = Task Id
51+
_UI_ChecklistEntry_jobPaths_feature = Job Paths
52+
_UI_ChecklistEntry_task_feature = Task
53+
_UI_ChecklistEntry_jobs_feature = Jobs
54+
_UI_Checklist_entries_feature = Entries
55+
_UI_Checklist_menu_feature = Menu
56+
_UI_Checklist_process_feature = Process
57+
_UI_Checklist_processId_feature = Process Id
58+
_UI_OperationElement_id_feature = Id
59+
_UI_OperationElement_name_feature = Name
60+
_UI_System_provides_feature = Provides
61+
_UI_System_uses_feature = Uses
62+
_UI_System_contains_feature = Contains
63+
_UI_System_data_feature = Data
64+
_UI_Interface_provider_feature = Provider
65+
_UI_Interface_user_feature = User
66+
_UI_Job_runsOn_feature = Runs On
67+
_UI_Job_calls_feature = Calls
68+
_UI_Job_taskIds_feature = Task Ids
69+
_UI_Job_tasks_feature = Tasks
70+
_UI_Job_info_feature = Info
71+
_UI_Data_readingTaskIds_feature = Reading Task Ids
72+
_UI_Data_writingTaskIds_feature = Writing Task Ids
73+
_UI_Data_writingTask_feature = Writing Task
74+
_UI_Data_readingTask_feature = Reading Task
75+
_UI_ResourceElement_name_feature = Name
76+
_UI_Unknown_feature = Unspecified
77+
78+
_UI_TaskKind_user_literal = user
79+
_UI_TaskKind_manual_literal = manual
80+
_UI_TaskKind_service_literal = service
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?eclipse version="3.0"?>
3+
4+
<!--
5+
<copyright>
6+
</copyright>
7+
8+
$Id$
9+
-->
10+
11+
<plugin>
12+
13+
<extension point="org.eclipse.emf.edit.itemProviderAdapterFactories">
14+
<factory
15+
uri="http://process/1.0"
16+
class="process.provider.ProcessItemProviderAdapterFactory"
17+
supportedTypes=
18+
"org.eclipse.emf.edit.provider.IEditingDomainItemProvider
19+
org.eclipse.emf.edit.provider.IStructuredItemContentProvider
20+
org.eclipse.emf.edit.provider.ITreeItemContentProvider
21+
org.eclipse.emf.edit.provider.IItemLabelProvider
22+
org.eclipse.emf.edit.provider.IItemPropertySource"/>
23+
</extension>
24+
25+
<extension point="org.eclipse.emf.edit.itemProviderAdapterFactories">
26+
<factory
27+
uri="http://operation/1.0"
28+
class="operation.provider.OperationItemProviderAdapterFactory"
29+
supportedTypes=
30+
"org.eclipse.emf.edit.provider.IEditingDomainItemProvider
31+
org.eclipse.emf.edit.provider.IStructuredItemContentProvider
32+
org.eclipse.emf.edit.provider.ITreeItemContentProvider
33+
org.eclipse.emf.edit.provider.IItemLabelProvider
34+
org.eclipse.emf.edit.provider.IItemPropertySource"/>
35+
</extension>
36+
37+
<extension point="org.eclipse.emf.edit.itemProviderAdapterFactories">
38+
<factory
39+
uri="http://system/1.0"
40+
class="system.provider.SystemItemProviderAdapterFactory"
41+
supportedTypes=
42+
"org.eclipse.emf.edit.provider.IEditingDomainItemProvider
43+
org.eclipse.emf.edit.provider.IStructuredItemContentProvider
44+
org.eclipse.emf.edit.provider.ITreeItemContentProvider
45+
org.eclipse.emf.edit.provider.IItemLabelProvider
46+
org.eclipse.emf.edit.provider.IItemPropertySource"/>
47+
</extension>
48+
49+
</plugin>

0 commit comments

Comments
 (0)