In principle getEAllStructuralFeatures() should be what you want, but
you may want to filter the list to eliminate transient/volatile/derived
properties. You may want to eliminate opposites. You may care about
derived/subset union properties and redefinitions, which in Ecore
requires you to examine the EAnnotations. If you are using UML you
should probably examine the UML model to avoid the simplifications of
conversion to Ecore.
On 16/07/2012 13:03, Tex Iano wrote:
> when I open a UML model within the model editor, in the properties
> view in eclipse there are some properties like "Name", "Use Case",
> "Visibility" etc. (depending on the selected element type).
> How can I get these properties automatically? Are these structural
> features of the eClass?
> I.e.: selectedUMLElement.eClass().getEAllStructuralFeatures()?
> Because this list is much longer than within Eclipse. Or is there a
> way to work on UML element? I tried:
> But this list is empty.
> So how can I get a list of available properties for a UML element? Any