Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311184 - [Wizard] problem in invoking generated Workflows
Summary: [Wizard] problem in invoking generated Workflows
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 0.7.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-30 10:20 EDT by Holger Schill CLA
Modified: 2017-09-19 17:31 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: helios+


Attachments
Patch to solve the problem (1.82 KB, patch)
2010-04-30 12:19 EDT, Holger Schill CLA
sven.efftinge: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Holger Schill CLA 2010-04-30 10:20:09 EDT
The path within a language specific Workflow in the generator-plugin defines the path of the reader in a way that it could not be overwritten when an other Workflow references this Component. In case you have a Workflow that references this Component the path is not redefineable.

component = org.eclipse.xtext.mwe.Reader {
		// lookup all resources on the classpath
		// useJavaClassPath = true
		
		// or define search scope explicitly
		path = "src/model"
		
		// this class will be generated by the xtext generator 
		register = org.xtext.example.mydsl.MyDslStandaloneSetup {}
		load = {
			slot = "model"
			type = "Entity"
		}
	}


module Generator

var modelFile = "Model.mydsl"
var targetDir = "../src-gen"

Workflow {
	component = @workflow.MyDslGenerator auto-inject {}
}


The path must defines like this:

var modelPath = "src/model"

component = org.eclipse.xtext.mwe.Reader {
		// lookup all resources on the classpath
		// useJavaClassPath = true
		
		// or define search scope explicitly
		path = modelPath
		
		// this class will be generated by the xtext generator 
		register = org.xtext.example.mydsl.MyDslStandaloneSetup {}
		load = {
			slot = "model"
			type = "Entity"
		}
	}

var modelFile = "Model.mydsl"
var modelPath = "src"
var targetDir = "src-gen"

Workflow {
	component = @workflow.MyDslGenerator auto-inject {}
}
Comment 1 Holger Schill CLA 2010-04-30 12:19:44 EDT
Created attachment 166635 [details]
Patch to solve the problem
Comment 2 Sebastian Zarnekow CLA 2010-05-03 06:04:07 EDT
Patch applied. Thanks.
Comment 3 Karsten Thoms CLA 2017-09-19 17:20:31 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 17:31:49 EDT
Closing all bugs that were set to RESOLVED before Neon.0