How to access PVMT property of selected object ?

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.

I successfully had access to a PV of a system actor in a previous VP that I developped :
import alue;
import lue;
import 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.