This service is archived, please use www.eclipse.org/forums


Home » Capella » Capella Studio » getName() method ?
getName() method ? [message #3539] Thu, 19 September 2019 10:26 Go to next message
jmorane is currently offline  jmorane
Messages: 63
Registered: May 2019
Member
Hello,

I tried to use a LiteralNumericValue in a service. However, I can't find the method to obtain the name of such an element ( with for instance a method getName() similar to the method getValue() defined for such a type ).

My guess is that the method is defined in a class from which LiteralNumericValue inherit, and that a cast to that type will solve the issue. However, I can't display the LiteralNValue in Capella Studio, and find from which class it inherit....


Any help would be appreciated !

Re: getName() method ? [message #3544 is a reply to message #3539] Mon, 23 September 2019 06:57 Go to previous messageGo to next message
Aurélien Pinsonneau is currently offline  Aurélien Pinsonneau
Messages: 169
Registered: November 2016
Senior Member
Hello,

Could you explain a little bit more the context in which you have this issue?
When working with viewpoint development in Java, the method getName() is well defined for LiteralNumericValue elements...
Re: getName() method ? [message #3545 is a reply to message #3544] Mon, 23 September 2019 10:46 Go to previous messageGo to next message
jmorane is currently offline  jmorane
Messages: 63
Registered: May 2019
Member
I use the version 1.3.1 of Capella Studio, unmodified ( Is there an environment to install in addition to Capella Studio ? ).

I add a capture of the given error to this message. i tried to cast the Literal NumericValue to the Object type, but it didn't worked either...
Re: getName() method ? [message #3546 is a reply to message #3544] Wed, 25 September 2019 03:22 Go to previous messageGo to next message
jmorane is currently offline  jmorane
Messages: 63
Registered: May 2019
Member
Hello,

After further investigations, I made the problem a little more clear.

I manually wind up all the exports of the 'Literal Numeric value' class, and the problem seems to be that the package org.polarsys.capella.common.data.modellingcore.AbstractNamed Element cannot be imported on Capella Studio ( see attachment ).
I am not very accustomed to the development in Java, so i cannot really figure out whether it is a problem of configuration of my own environment or of the referencing of libraries in Capella Studio...

regards,
Re: getName() method ? [message #3655 is a reply to message #3539] Fri, 08 November 2019 03:26 Go to previous message
felix.dorner.gmail.com is currently offline  felix.dorner.gmail.com
Messages: 117
Registered: November 2015
Senior Member
1. Is your project a plugin project?
2. Open the manifest.mf file of the plugin project.
3. Add org.polarsys.capella.core.data.gen to the list of required plugins on the 'dependencies' tab of the manifest editor.
Previous Topic: How to unit test diagram related operations ?
Next Topic: adding external jars in VP
Goto Forum:
  


Current Time: Sat Mar 28 03:48:35 EST 2020

Total time taken to generate the page: 0.00982 seconds