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 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;
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 !