Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Today's Messages (on)  | Unanswered Messages (off)

Forum: Epsilon
 Topic: EVL: Problem on configuring a UML model
EVL: Problem on configuring a UML model [message #1760453] Thu, 27 April 2017 12:58
Alireza Rouhi is currently offline Alireza RouhiFriend
Messages: 124
Registered: December 2015
Senior Member
Hi all,

I encounter an odd problem regarding a UML model configuration to validate by an EVL module. The list of metamodels which my UML model conforms to them is missed now! I attached the two windows here. I have not this problem before. Now, I am using Eclipse Mars 2 release and Epsilon 1.5.

Please, help me to resolve this issue.

Thanks a million
Alireza

[Updated on: Thu, 27 April 2017 14:37]

Report message to a moderator

Re: EVL: Problem on configuring a UML model [message #1760481 is a reply to message #1760453] Thu, 27 April 2017 15:52
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1396
Registered: July 2009
Location: York, UK
Senior Member

Hi Alireza,

In 1.5 the UML metamodel is auto-configured for UML models - there's no need to specify it manually.

Cheers,
Dimitris
Re: EVL: Problem on configuring a UML model [message #1760486 is a reply to message #1760481] Thu, 27 April 2017 16:36
Alireza Rouhi is currently offline Alireza RouhiFriend
Messages: 124
Registered: December 2015
Senior Member
So, what should I do to load other metamodels. I'm using a UML profile and I need to validate the stereotyped instances in my EVL module.

Thanks a lot
Alireza
Re: EVL: Problem on configuring a UML model [message #1760487 is a reply to message #1760486] Thu, 27 April 2017 16:41
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1396
Registered: July 2009
Location: York, UK
Senior Member

Hi Alireza,

If the profile is properly registered and applied to your model there shouldn't be a need to add any further metamodels. If this doesn't work for you, please send us a minimal example and I'll Investigate.

Cheers,
Dimitris
Re: EVL: Problem on configuring a UML model [message #1760488 is a reply to message #1760487] Thu, 27 April 2017 16:51
Alireza Rouhi is currently offline Alireza RouhiFriend
Messages: 124
Registered: December 2015
Senior Member
You're right.

Printing the Profile.all statement yields an empty sequence. Of course, as you can see in the attached screen shot, the profile has been registered and I can apply the stereotypes on my model.
I am using my profiles as plugins. I simply copy the plugins into the eclipse's plugins subfolder. How can I register them?

Thanks
Alireza

[Updated on: Thu, 27 April 2017 16:58]

Report message to a moderator

Re: EVL: Problem on configuring a UML model [message #1760490 is a reply to message #1760488] Thu, 27 April 2017 16:53
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1396
Registered: July 2009
Location: York, UK
Senior Member

Hi Alireza,

In development mode, you should simply run a nested Eclipse. For deployment you should use an update site.

Cheers,
Dimitris
Re: EVL: Problem on configuring a UML model [message #1760492 is a reply to message #1760490] Thu, 27 April 2017 17:08
Alireza Rouhi is currently offline Alireza RouhiFriend
Messages: 124
Registered: December 2015
Senior Member
Hi Dimitris,

Sorry. I modified my last message. Did you see that?

Thank you very much.
Alireza
Re: EVL: Problem on configuring a UML model [message #1760493 is a reply to message #1760492] Thu, 27 April 2017 17:11
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1396
Registered: July 2009
Location: York, UK
Senior Member

Hi Alireza,

I saw this just now. Could you please prepare a minimal example I can use to have a closer look at this?

Cheers,
Dimitris
Re: EVL: Problem on configuring a UML model [message #1760494 is a reply to message #1760493] Thu, 27 April 2017 17:18
Alireza Rouhi is currently offline Alireza RouhiFriend
Messages: 124
Registered: December 2015
Senior Member
Sorry. Due to the daemon errors in sending email, I attached the minExample in my last message here.

Thank you very much
Alireza

[Updated on: Thu, 27 April 2017 18:12]

Report message to a moderator

Re: EVL: Problem on configuring a UML model [message #1760500 is a reply to message #1760494] Thu, 27 April 2017 18:10
Alireza Rouhi is currently offline Alireza RouhiFriend
Messages: 124
Registered: December 2015
Senior Member
Hi Dimitris,

Sorry, I prepared a minExample and attached here.

Thank you very much
Alireza
Re: EVL: Problem on configuring a UML model [message #1760501 is a reply to message #1760500] Thu, 27 April 2017 18:14
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1396
Registered: July 2009
Location: York, UK
Senior Member

Could you please share the plugin project as opposed to the exported JAR?

Cheers,
Dimitris
Re: EVL: Problem on configuring a UML model [message #1760502 is a reply to message #1760501] Thu, 27 April 2017 18:17
Alireza Rouhi is currently offline Alireza RouhiFriend
Messages: 124
Registered: December 2015
Senior Member
All right. I attached here.

Thanks a lot.
Alireza

[Updated on: Thu, 27 April 2017 18:22]

Report message to a moderator

Re: EVL: Problem on configuring a UML model [message #1760503 is a reply to message #1760502] Thu, 27 April 2017 18:22
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1396
Registered: July 2009
Location: York, UK
Senior Member

I would have expected your plugin project to also contain a plugin.xml with an extension that registers your profile. Have you perhaps left this out?

Cheers,
Dimitris
Re: EVL: Problem on configuring a UML model [message #1760504 is a reply to message #1760503] Thu, 27 April 2017 18:23
Alireza Rouhi is currently offline Alireza RouhiFriend
Messages: 124
Registered: December 2015
Senior Member
Hi Dimitris,

Sorry. I uploaded it to the previous message too.

Thanks a lot
Alireza
 Topic: Code refactoring
Code refactoring [message #1760511] Thu, 27 April 2017 19:42
Martin Paquin is currently offline Martin PaquinFriend
Messages: 21
Registered: July 2014
Junior Member
Hello

I have a model that represent a legacy source code. Program methods are large and I want to split code based on a specific statement in the code. When I encounter a specific statement I want to create a new method with code from preceding statement at the point where I encounter the last specific statement.

I don't want to create new objects other than the new method that will be kept in the same class.

Which language is the more appropriate for this task? EOL, ETL or EWL?

Martin
 Topic: IllegalAccessException for java.lang.Math.random
Re: IllegalAccessException for java.lang.Math.random [message #1760433 is a reply to message #1760383] Thu, 27 April 2017 07:14
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1396
Registered: July 2009
Location: York, UK
Senior Member

That's right. Since random() is a static method it needs to be called straight on the Math class.

Cheers,
Dimitris
Re: IllegalAccessException for java.lang.Math.random [message #1760515 is a reply to message #1760433] Thu, 27 April 2017 22:17
Sina Madani is currently offline Sina MadaniFriend
Messages: 16
Registered: November 2015
Location: York, UK
Junior Member
Ah ok thanks for the explanation.



Current Time: Thu Apr 27 22:50:18 GMT 2017

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

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