Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » Does a datatype describing the name of a EStructuralFeature exist?
Does a datatype describing the name of a EStructuralFeature exist? [message #383240] Mon, 22 September 2008 11:38 Go to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Hello,

I added an extension point in our EMF-based plugin (JWT) to allow to use
custom property editors in property sheets. (More details on bug 240499)

To be able to define the the name of the EStructuralFeature the
extension is targetting, I created a custom type:

public class FeatureFullDescription {
private String featureName;
private String className;
private String packageName;
// ....
}

My question is: Does such a type already exists in EMF ? (if yes, I'd
rather use it to avoid duplication)

Thanks in advance
Mickael
Re: Does a datatype describing the name of a EStructuralFeature exist? [message #383241 is a reply to message #383240] Mon, 22 September 2008 15:13 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Mickael,

Please use the EMF newsgroup for questions about EMF. I've added it to
the "to" list of the reply. More comments below.

Mickael Istria wrote:
> Hello,
>
> I added an extension point in our EMF-based plugin (JWT) to allow to
> use custom property editors in property sheets. (More details on bug
> 240499)
>
> To be able to define the the name of the EStructuralFeature the
> extension is targetting, I created a custom type:
>
> public class FeatureFullDescription {
> private String featureName;
> private String className;
> private String packageName;
> // ....
> }
>
> My question is: Does such a type already exists in EMF ? (if yes, I'd
> rather use it to avoid duplication)
No. EcoreUtil.getURI(eStructuralFeature) would give you a single unique
string you could use to represent a feature. You could use
resourceSet.getEObject(<uri>) to resolve that string to the feature
object...
>
> Thanks in advance
> Mickael


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Does a datatype describing the name of a EStructuralFeature exist? [message #611023 is a reply to message #383240] Mon, 22 September 2008 15:13 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Mickael,

Please use the EMF newsgroup for questions about EMF. I've added it to
the "to" list of the reply. More comments below.

Mickael Istria wrote:
> Hello,
>
> I added an extension point in our EMF-based plugin (JWT) to allow to
> use custom property editors in property sheets. (More details on bug
> 240499)
>
> To be able to define the the name of the EStructuralFeature the
> extension is targetting, I created a custom type:
>
> public class FeatureFullDescription {
> private String featureName;
> private String className;
> private String packageName;
> // ....
> }
>
> My question is: Does such a type already exists in EMF ? (if yes, I'd
> rather use it to avoid duplication)
No. EcoreUtil.getURI(eStructuralFeature) would give you a single unique
string you could use to represent a feature. You could use
resourceSet.getEObject(<uri>) to resolve that string to the feature
object...
>
> Thanks in advance
> Mickael


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Does a datatype describing the name of a EStructuralFeature exist?
Next Topic:EMF newbie question
Goto Forum:
  


Current Time: Fri Apr 19 08:03:26 GMT 2024

Powered by FUDForum. Page generated in 0.02019 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top