Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Cannot create an instance of my model in my editor
Cannot create an instance of my model in my editor [message #634488] Thu, 21 October 2010 18:22 Go to next message
Jon Svede is currently offline Jon Svede
Messages: 83
Registered: July 2009
Member
I am using EMF 2.5.

I created a simple ecore model, then generated the .genmodel. From the genmodel, I right clicked an selected "Generate all" - which all worked as expected.

Then I run the IDE, create a new project and then attempt to create an instance of my model from the "Example EMF Model Creation Wizards" and start walking through the pages. However, when I get to the last page, the one where you select the root element, the finish and next buttons are never enabled. No matter what I select, they are disabled.

I am assuming I did something wrong but I can't see what it is. I've added -consoleLog to the launch config and there is no .log being created.

Any suggestions?

Thanks,

Jon
Re: Cannot create an instance of my model in my editor [message #634687 is a reply to message #634488] Fri, 22 October 2010 14:12 Go to previous messageGo to next message
Jon Svede is currently offline Jon Svede
Messages: 83
Registered: July 2009
Member
I did some testing to see if I could isolate the issue. I think it's related to being on a Mac:

On Windows:
1. I created a simple ecore model, genmodel and then model, edit, editor and tests.
2. Launched eclipse, created a new project, added an instance of my model and populated it.
3. saved the model, confirmed the file contents.
4. Copied these 4 projects to my mac.

On OS X:

1. Installed a fresh copy of eclipse-modeling-galileo-SR2-incubation-macosx-cocoa.tar.gz .
2. Launched new eclipse instance, created new clean workspace.
3. Imported 4 projects from windows env and copied them to the workspace.
4. Launched eclipse and attempted to repeat step #2 above; the results are as previously described: I cannot create an instance of the model, the next/finish buttons are not enabled.

Is there some special flag I have to add to the launch to make it work on OS X? I am on 10.6.4.

As an aside, when you are working on an ecore or genmodel on OS X, when you select an item in the Properties View that has a white background (the Properties View on OS X has alternating row colors, light blue and white), upon selecting that row for editing the label temporarily disappears (I assume it's background/foreground color issue) - is there a setting I can set to fix that?

Thanks in advance!

Jon
Re: Cannot create an instance of my model in my editor [message #634698 is a reply to message #634488] Fri, 22 October 2010 14:11 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25919
Registered: July 2009
Senior Member
Jon,

This sounds familiar. I think it was an SWT bug. I think if you choose
some other type of object to create on that last page, it will enable...


Jon Svede wrote:
> I am using EMF 2.5.
> I created a simple ecore model, then generated the .genmodel. From
> the genmodel, I right clicked an selected "Generate all" - which all
> worked as expected.
>
> Then I run the IDE, create a new project and then attempt to create an
> instance of my model from the "Example EMF Model Creation Wizards" and
> start walking through the pages. However, when I get to the last
> page, the one where you select the root element, the finish and next
> buttons are never enabled. No matter what I select, they are disabled.
>
> I am assuming I did something wrong but I can't see what it is. I've
> added -consoleLog to the launch config and there is no .log being
> created.
>
> Any suggestions?
>
> Thanks,
>
> Jon
>
Re: Cannot create an instance of my model in my editor [message #634699 is a reply to message #634698] Fri, 22 October 2010 14:31 Go to previous messageGo to next message
Jon Svede is currently offline Jon Svede
Messages: 83
Registered: July 2009
Member
Thanks, Ed.

Unfortunately no matter what I select, or what encoding I choose, the Next/Finish buttons never enabled.

Any other ideas?

I don't see a .log in the runtime workspace of the launched Eclipse instance. I don't see .log file in my workspace either. No errors are getting logged to the console. I have the -consoleLog on the launch config but nothing shows up.

Jon
Re: Cannot create an instance of my model in my editor [message #634705 is a reply to message #634687] Fri, 22 October 2010 14:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25919
Registered: July 2009
Senior Member
Jon,

As I said, the issue sounds very familiar. I'm pretty sure that
choosing a different type of roog object in the drop down will enable
the button...


Jon Svede wrote:
> I did some testing to see if I could isolate the issue. I think it's
> related to being on a Mac:
>
> On Windows:
> 1. I created a simple ecore model, genmodel and then model, edit,
> editor and tests.
> 2. Launched eclipse, created a new project, added an instance of my
> model and populated it.
> 3. saved the model, confirmed the file contents.
> 4. Copied these 4 projects to my mac.
>
> On OS X:
>
> 1. Installed a fresh copy of
> eclipse-modeling-galileo-SR2-incubation-macosx-cocoa.tar.gz .
> 2. Launched new eclipse instance, created new clean workspace.
> 3. Imported 4 projects from windows env and copied them to the workspace.
> 4. Launched eclipse and attempted to repeat step #2 above; the results
> are as previously described: I cannot create an instance of the model,
> the next/finish buttons are not enabled.
>
> Is there some special flag I have to add to the launch to make it work
> on OS X? I am on 10.6.4.
>
> As an aside, when you are working on an ecore or genmodel on OS X,
> when you select an item in the Properties View that has a white
> background (the Properties View on OS X has alternating row colors,
> light blue and white), upon selecting that row for editing the label
> temporarily disappears (I assume it's background/foreground color
> issue) - is there a setting I can set to fix that?
>
> Thanks in advance!
>
> Jon
Re: Cannot create an instance of my model in my editor [message #634735 is a reply to message #634705] Fri, 22 October 2010 17:12 Go to previous messageGo to next message
Jon Svede is currently offline Jon Svede
Messages: 83
Registered: July 2009
Member
I will search in Bugzilla to see I can past it. As I said, using a model that works fine on Windows, I cannot create an instance in the editors regardless of which Object I select.

Thanks, Jon
Re: Cannot create an instance of my model in my editor [message #648442 is a reply to message #634735] Wed, 12 January 2011 17:51 Go to previous messageGo to next message
aurelienfaravelon is currently offline aurelienfaravelon
Messages: 7
Registered: January 2011
Junior Member
Hi,

I seem to have a similar problem, did you solve yours?

Thanks in advance,

A.
Re: Cannot create an instance of my model in my editor [message #648465 is a reply to message #648442] Wed, 12 January 2011 21:03 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 25919
Registered: July 2009
Senior Member
Which version of Eclipse/EMF are you using?

aurelienfaravelon@gmail.com wrote:
> Hi,
>
> I seem to have a similar problem, did you solve yours?
>
> Thanks in advance,
>
> A.
Re: Cannot create an instance of my model in my editor [message #648466 is a reply to message #648442] Wed, 12 January 2011 21:52 Go to previous message
Jon Svede is currently offline Jon Svede
Messages: 83
Registered: July 2009
Member
I did not solve it. I had to move onto other work and could not spend more time on it. I found that contrary to the advice given, selecting other objects had no affect I still could not instantiate the model.

Since I have two computers, my solution was to use the Windows machine. Sad

[Updated on: Wed, 12 January 2011 21:53]

Report message to a moderator

Previous Topic:I can't use my model editor
Next Topic:Wrong schemaLocation in Ecore file when using URI maps
Goto Forum:
  


Current Time: Fri Jul 25 15:59:25 EDT 2014

Powered by FUDForum. Page generated in 0.10889 seconds