Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Object Selection is empty(ecorediagram)
Object Selection is empty [message #822218] Fri, 16 March 2012 10:09 Go to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
whenever i try to connect an EType the object selection dialog does not show any objects...

this was working earlier today. restarting eclipse did not solve the problem

any ideas how to solve this?

PS: note that in the ecore properties i get the correct objects in the dropdown.
Re: Object Selection is empty [message #822743 is a reply to message #822218] Sat, 17 March 2012 07:07 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Ludwig,

What do you mean by the selection dialog verses the ecore properties?
Are you both referring to the properties view? Are you editing an Ecore
model or your own model?


On 16/03/2012 11:09 AM, Ludwig Moser wrote:
> whenever i try to connect an EType the object selection dialog does
> not show any objects...
>
> this was working earlier today. restarting eclipse did not solve the
> problem
>
> any ideas how to solve this?
>
> PS: note that in the ecore properties i get the correct objects in the
> dropdown.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Object Selection is empty [message #824008 is a reply to message #822743] Mon, 19 March 2012 06:19 Go to previous messageGo to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
on an open ecorediag file, when i select a class,
go to properties view -> model -> EType. the list of selectable items contains only null
whereat if i have the ecore open and select the same property, i have the full and correct list to choose from.

additionally i noticed that renaming classes sometimes leads into invalidity (class gets renamed but not updated in the ecorediag model)
Re: Object Selection is empty [message #824033 is a reply to message #824008] Mon, 19 March 2012 06:59 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Ludwig,

Comments below.

On 19/03/2012 7:19 AM, Ludwig Moser wrote:
> on an open ecorediag file, when i select a class,
> go to properties view -> model -> EType.
Do you mean when you select an attribute? An EClass doesn't have an
EType property.
> the list of selectable items contains only null
> whereat if i have the ecore open and select the same property, i have
> the full and correct list to choose from.
I tried this myself just now and it works fine for me.
>
> additionally i noticed that renaming classes sometimes leads into
> invalidity (class gets renamed but not updated in the ecorediag model)
They'd need to be a bit careful that all proxies are resolved, because
proxy URIs for Ecore use the name of the class in the fragment path.
I'm not sure if they're being careful about that.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Object Selection is empty [message #824072 is a reply to message #824033] Mon, 19 March 2012 08:17 Go to previous messageGo to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
i know that an Class can't have a EType, as it is an etype itself Wink

i meant, when i select a function, which returns an EType (if you dont set one its void...) and i am not able to select that in diagram
(NOT ON ALL OBJECTS - but sometimes it simply disappears - happened now a few times - i do not know what it causes...)
Re: Object Selection is empty [message #824080 is a reply to message #824072] Mon, 19 March 2012 08:31 Go to previous messageGo to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
what i noticed too:
i am not able to set a EType Parameter for an EEList... same problem - its not showing me any options.
Re: Object Selection is empty [message #824085 is a reply to message #824072] Mon, 19 March 2012 08:37 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Ludwig,

Yes, I see the same problem looking at the Change model. It looks like
there's a bug you'll need to report. There's really no support for
generics either.

I suppose you'll need to open the underlying Ecore resource to change
these things, and to work with things that involve generics. :-(


On 19/03/2012 9:17 AM, Ludwig Moser wrote:
> i know that an Class can't have a EType, as it is an etype itself ;)
>
> i meant, when i select a function, which returns an EType (if you dont
> set one its void...) and i am not able to select that in diagram
> (NOT ON ALL OBJECTS - but sometimes it simply disappears - happened
> now a few times - i do not know what it causes...)


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Object Selection is empty [message #824088 is a reply to message #824085] Mon, 19 March 2012 08:46 Go to previous messageGo to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
the generic does not work in ecore either... for me

reporting a bug is no problem, but reporting the bug so people understand what i mean might be the problem (as it took 3 posts to show you what i meant)
Re: Object Selection is empty [message #824103 is a reply to message #824088] Mon, 19 March 2012 09:05 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Ludwig,

Be sure that "Sample Ecore Editor -> Show Generics" is enabled. You
won't be able to edit generics without that.

Try to create as simple a model as possible and explain the exact steps
to see the problem. Someone should be able to load your model into
their workspace (so exporting a project containing the example that they
can import into their workspace helps), and click on a few things to see
the problem.


On 19/03/2012 9:46 AM, Ludwig Moser wrote:
> the generic does not work in ecore either... for me
>
> reporting a bug is no problem, but reporting the bug so people
> understand what i mean might be the problem (as it took 3 posts to
> show you what i meant)


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Object Selection is empty [message #824110 is a reply to message #824103] Mon, 19 March 2012 09:16 Go to previous messageGo to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
Quote:
Be sure that "Sample Ecore Editor -> Show Generics" is enabled. You
won't be able to edit generics without that.

where do i find that?
in my preferences i have nothing about show generics nor sample ecore editor
Re: Object Selection is empty [message #824124 is a reply to message #824110] Mon, 19 March 2012 09:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Ludwig,

You've opened the *.ecore resource directly? With what editor?


On 19/03/2012 10:16 AM, Ludwig Moser wrote:
> Quote:
>> Be sure that "Sample Ecore Editor -> Show Generics" is enabled. You
>> won't be able to edit generics without that.
>
> where do i find that?
> in my preferences i have nothing about show generics nor sample ecore
> editor


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Object Selection is empty [message #824131 is a reply to message #824124] Mon, 19 March 2012 09:43 Go to previous messageGo to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
Sample Ecore Model Editor - but i cant see any settings for it in preferences.
Re: Object Selection is empty [message #824149 is a reply to message #824131] Mon, 19 March 2012 10:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Ludwig,

Look for what I described on the menu bar.


On 19/03/2012 10:43 AM, Ludwig Moser wrote:
> Sample Ecore Model Editor - but i cant see any settings for it in
> preferences.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Object Selection is empty [message #824152 is a reply to message #824149] Mon, 19 March 2012 10:16 Go to previous messageGo to next message
Ludwig Moser is currently offline Ludwig MoserFriend
Messages: 476
Registered: July 2009
Senior Member
omg - iam blind?!

ok, there is the menue, but show generics is already checked and i do see the option EType Parameter, but the list is empty.

ah wait - i have to create a new child to be able to edit it...

the workflow in EMF could be optimized Wink
some things should be created by default as creating every bit takes ages.
eg. to create a body for a function you first need to create eiter a documentation for it or include the correct annotation source for it.

[Updated on: Mon, 19 March 2012 10:19]

Report message to a moderator

Re: Object Selection is empty [message #824208 is a reply to message #824152] Mon, 19 March 2012 11:50 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Ludwig,

Comments below.

On 19/03/2012 11:16 AM, Ludwig Moser wrote:
> omg - iam blind?!
>
> ok, there is the menue, but show generics is already checked and i do
> see the option EType Parameter, but the list is empty.
So you've selected an EGenericType and for that you can set either the
EClassifier or the ETypeParameter. You'll only have the choice for
ETypeParameter if the containing EOperation or EClass defines an
ETypeParameter, which likely you don't have. On an EGenericType whose
classifier is one that defines ETypeParameters, like EEList does, you'll
be able to use the context menu on that EGenericType to create a
contained EGenericType (which represents an argument) and for that
EGenericType you'll be able to specify an EClassifier or ETypeParameter.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO] Many-to-many association with SQLServer Database -> SQLServerException: Cannot insert t
Next Topic:Update resource
Goto Forum:
  


Current Time: Thu Apr 25 20:59:18 GMT 2024

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

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

Back to the top