How to access PVMT property of selected object ?

Hello,
I’m developing a viewpoint and I need to get selected objects (ie a logical actor in a LAB) properties assigned with PVMT. Using eclipse Java debugger I went through and attributes but I did not find any reference to PVMT properties.

Hello,
I successfully had access to a PV of a system actor in a previous VP that I developped :
///////////
import org.polarsys.capella.core.data.capellacore.AbstractPropertyV alue;
import org.polarsys.capella.core.data.capellacore.IntegerPropertyVa lue;
import org.polarsys.capella.core.data.capellacore.PropertyValueGrou p;
/*
//Some coding
*/
PropertyValueGroup PV = actor.getAppliedPropertyValueGroups().get(0);
IntegerPropertyValue IntPV = (IntegerPropertyValue) PV.getOwnedPropertyValues().get(0);
int value = (int) IntPV.getValue();
//////////
However, some problems have to be managed, for example if several PV are applied.
Hope that it helps !

Copyright © Eclipse Capella, the Eclipse Capella logo, Eclipse and the Eclipse logo are Trademarks of The Eclipse Foundation.