Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Problems integrating
Re: Problems integrating generator into eclipse plugin [message #559176 is a reply to message #559174] Wed, 15 September 2010 20:25 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13939
Registered: July 2009
Senior Member
- did you try my stufff that generates from uml::Classes?
(uml model created with eclipse)
- can you provide your stuff too?
- did you drop the stuff in the dropins folder?

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Problems integrating generator into eclipse plugin [message #559177 is a reply to message #559176] Wed, 15 September 2010 20:29 Go to previous messageGo to next message
Philipp Zech is currently offline Philipp ZechFriend
Messages: 96
Registered: July 2009
Member
On 09/15/2010 10:25 PM, Christian Dietrich wrote:
> - did you try my stufff that generates from uml::Classes?
> (uml model created with eclipse)
> - can you provide your stuff too?
> - did you drop the stuff in the dropins folder?
>
> ~Christian
hi,

i'm just trying it with your stuff. i'll be back soon.

philipp
Re: Problems integrating generator into eclipse plugin [message #559402 is a reply to message #559177] Thu, 16 September 2010 14:10 Go to previous messageGo to next message
Philipp Zech is currently offline Philipp ZechFriend
Messages: 96
Registered: July 2009
Member
On 09/15/2010 10:29 PM, Philipp Zech wrote:
> On 09/15/2010 10:25 PM, Christian Dietrich wrote:
>> - did you try my stufff that generates from uml::Classes?
>> (uml model created with eclipse)
>> - can you provide your stuff too?
>> - did you drop the stuff in the dropins folder?
>>
>> ~Christian
> hi,
>
> i'm just trying it with your stuff. i'll be back soon.
>
> philipp
Hi christian,

sorry for getting back so late, but I had some problems with my internet
and some stuff to do. I first must admit, that up to now I didn't test
your stuff, but I further investigated my project and I found out that
it leads to a quite curious error:

[ERROR](Element: EXPAND
info::teststories::generator::xpand::Teststory::Teststory FOR model;
Reported by: Generator(StoryGenerator): generating
'info::teststories::generator::xpand::Teststory::Teststory FOR model' =>
/home/c703443/workspace/senseTests/src/info/teststories/sut/ stories)

for the easy of checking I've uploaded my generator plugin and an
according model, which should produce a nearly empty java source file
(just some skeleton code, which will lead to errors on your machine, as
you're missing some libraries and other plugins) to drop.io:
http://drop.io/svbpspf

Maybe you can give me the final hint, why my exported plugin leads to
this error and the generator running inside an instance not. In the
meantime I'll try out your stuff.

Thanks,

Philipp
Re: Problems integrating generator into eclipse plugin [message #559408 is a reply to message #559402] Thu, 16 September 2010 14:36 Go to previous messageGo to next message
Philipp Zech is currently offline Philipp ZechFriend
Messages: 96
Registered: July 2009
Member
On 09/16/2010 04:10 PM, Philipp Zech wrote:
> On 09/15/2010 10:29 PM, Philipp Zech wrote:
>> On 09/15/2010 10:25 PM, Christian Dietrich wrote:
>>> - did you try my stufff that generates from uml::Classes?
>>> (uml model created with eclipse)
>>> - can you provide your stuff too?
>>> - did you drop the stuff in the dropins folder?
>>>
>>> ~Christian
>> hi,
>>
>> i'm just trying it with your stuff. i'll be back soon.
>>
>> philipp
> Hi christian,
>
> sorry for getting back so late, but I had some problems with my internet
> and some stuff to do. I first must admit, that up to now I didn't test
> your stuff, but I further investigated my project and I found out that
> it leads to a quite curious error:
>
> [ERROR](Element: EXPAND
> info::teststories::generator::xpand::Teststory::Teststory FOR model;
> Reported by: Generator(StoryGenerator): generating
> 'info::teststories::generator::xpand::Teststory::Teststory FOR model' =>
> /home/c703443/workspace/senseTests/src/info/teststories/sut/ stories)
>
> for the easy of checking I've uploaded my generator plugin and an
> according model, which should produce a nearly empty java source file
> (just some skeleton code, which will lead to errors on your machine, as
> you're missing some libraries and other plugins) to drop.io:
> http://drop.io/svbpspf
>
> Maybe you can give me the final hint, why my exported plugin leads to
> this error and the generator running inside an instance not. In the
> meantime I'll try out your stuff.
>
> Thanks,
>
> Philipp
sorry, forgot the fragment:

http://drop.io/zqg2bs3

cheers,

philipp
Re: Problems integrating generator into eclipse plugin [message #559423 is a reply to message #559408] Thu, 16 September 2010 15:08 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13939
Registered: July 2009
Senior Member
Hi,

can you provide something i can run out of the box?

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Problems integrating generator into eclipse plugin [message #559430 is a reply to message #559423] Thu, 16 September 2010 15:20 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13939
Registered: July 2009
Senior Member
Hi,

i did some debugging with the model you provided.
the problems is that all of the package stereotype checks fail => nothing is generated, not even in a runtime.

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Problems integrating generator into eclipse plugin [message #559433 is a reply to message #559430] Thu, 16 September 2010 15:20 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13939
Registered: July 2009
Senior Member
Sorry forget my last message.

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Problems integrating generator into eclipse plugin [message #559434 is a reply to message #559433] Thu, 16 September 2010 15:23 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13939
Registered: July 2009
Senior Member
Hi,
btw what is the output you expect?

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Problems integrating generator into eclipse plugin [message #559439 is a reply to message #559434] Thu, 16 September 2010 15:33 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13939
Registered: July 2009
Senior Member
Hi

i digged a bit more and stumbled over this:

«DEFINE Teststories FOR uml::Package»
	«FOREACH (List[uml::Package])ownedElement AS teststory»
		«IF teststory.getAppliedStereotype("TTSProfile::Teststory") != null»
			«EXPAND Teststory FOR teststory»	
		«ENDIF»
	«ENDFOREACH»
«ENDDEFINE»


but the Teststories package contains only an activity with stereotype Teststory but the template

«DEFINE Teststory FOR uml::Activity»
«ENDDEFINE»


is missing

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Problems integrating generator into eclipse plugin [message #559617 is a reply to message #559439] Fri, 17 September 2010 11:51 Go to previous messageGo to next message
Philipp Zech is currently offline Philipp ZechFriend
Messages: 96
Registered: July 2009
Member
On 09/16/2010 05:33 PM, Christian Dietrich wrote:
> Hi
>
> i digged a bit more and stumbled over this:
>
>
> «DEFINE Teststories FOR uml::Package»
> «FOREACH (List[uml::Package])ownedElement AS teststory»
> «IF teststory.getAppliedStereotype("TTSProfile::Teststory") != null»
> «EXPAND Teststory FOR teststory»
> «ENDIF»
> «ENDFOREACH»
> «ENDDEFINE»
>
>
> but the Teststories package contains only an activity with stereotype
> Teststory but the template
>
>
> «DEFINE Teststory FOR uml::Activity»
> «ENDDEFINE»
>
>
> is missing
>
> ~Christian
hi,

sorry, that's an error in the model. here's a fixed model:
http://drop.io/gm9lvhv BTW, I had the remove the rest of the code from
drop.io, as I was told to.

Philipp
Re: Problems integrating generator into eclipse plugin [message #559701 is a reply to message #559617] Fri, 17 September 2010 16:01 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13939
Registered: July 2009
Senior Member
Hi,

i deleted you stuff too so a further investigation on your plugins make no sense

See you other topic for further hints

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Problems integrating generator into eclipse plugin [message #649968 is a reply to message #559701] Fri, 21 January 2011 09:10 Go to previous messageGo to next message
Tom Brandenburg is currently offline Tom BrandenburgFriend
Messages: 58
Registered: October 2010
Location: Abstatt, Germany
Member
Hello,

I am getting the same error ([ERROR]: Error creating instance of type 'org.eclipse.xtend.typesystem.uml2.Setup' : java.lang.IllegalStateException: Missing required plugin 'org.eclipse.uml2.uml.resources' in classpath.(Element: bean bean class='org.eclipse.xtend.typesystem.uml2.Setup' in C:\test\main.mwe:12; Reported by: -UNKNOWN-))

Currently I run my plugin as an eclipse app and want to execute a workflow out of it. org.eclipse.uml2.uml.resources is definetely added to plugin's dependencies.
Test workflow file:
<?xml version="1.0"?>
<workflow>    
    
    <!-- Set Mappings -->
    <bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" platformUri="..">
    </bean>
    
    <!-- Set Properties -->
    <property name="fileEncoding" value="ISO-8859-1"/>
    
    <!-- Set UML environment -->
    <bean class="org.eclipse.xtend.typesystem.uml2.Setup" standardUML2Setup="true" />
    
    <bean id="UMLMetaModel" 
        class="org.eclipse.xtend.typesystem.uml2.UML2MetaModel">
    </bean>
    
</workflow>

I am only able to read the error message when I do Java debugging in WorkflowRunner.prepare(*) - the error message is added to the issues variable, which unfortunately is only a local variable of prepare(*)...The logger does not produce any output to any console/log file.

Has the problem above ever been solved? I am also quite helpless right now Confused

Thanks in advance and best regards
Tom

[Updated on: Fri, 21 January 2011 09:17]

Report message to a moderator

Re: Problems integrating generator into eclipse plugin [message #650004 is a reply to message #649968] Fri, 21 January 2011 12:19 Go to previous message
Tom Brandenburg is currently offline Tom BrandenburgFriend
Messages: 58
Registered: October 2010
Location: Abstatt, Germany
Member
Ok, I already read the trick with the fragment for org.eclipse.uml2.uml.resources:

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: UML2 Resource Fragment
Bundle-SymbolicName: dev.test.uml2resources.fragment
Bundle-Version: 1.0.0.qualifier
Fragment-Host: org.eclipse.uml2.uml.resources;bundle-version="3.0.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: libraries,metamodels,profiles

But somehow I tried it ineffectually and it didn't work. Now I tested it again and it works - at least for the execution as an eclipse app.
If I have problems with a deployed plugin I'll give a note.

Sry for asking and asking again Smile

Bye Tom =)
Previous Topic:[MWE] No logging and strange errors when workflow is run in a context of a plugin
Next Topic:[Acceleo 3l] Generate plugin
Goto Forum:
  


Current Time: Thu May 13 16:16:54 GMT 2021

Powered by FUDForum. Page generated in 0.03269 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top