Home » Modeling » EMF » No packages listed when importing from annotated java
No packages listed when importing from annotated java [message #431547] |
Wed, 15 July 2009 20:07 |
Ashley Williams Messages: 5 Registered: July 2009 |
Junior Member |
|
|
Hi All,
I am having trouble generating an emf model from annotated java. I was
able to follow the tutorial on generating an emf model from existing java
code with no problems.
Excited, and perhaps overly optimistic, I went through my existing code
base adding @model tags to everything that looked relevant. Afterward, I
followed the steps again, but this time no dice. Everything went exactly
as in the tutorial, but when I got to the "Package Selection" screen,
there was just an empty box.
I have tried all kinds of things, but nothing seems to work. Just for
grins, I tried importing a very simple java model and, again, it worked
fine. So, I'm thinking there is something simple I'm missing on the big
model. Any ideas?
Unfortunately, my company is pretty paranoid about its intellectual
property, so I can't attach any actual code. I know that's severely
limiting, but I was hoping someone has seen this already and knows "all
you have to do put the whatchamacallit on the whozit, click your heels
three times and sacrifice a free-range chicken." If this doesn't go
anywhere, I can try to fabricate an example that also doesn't work. It
occurs to me, though, that if I can successfully pull that off, I will
probably have figured out the solution.
Thanks,
Ashley
PS - I have searched the web and this newsgroup extensively and none of
those threads have helped.
PPS - I have a fresh installation as of about three days ago, so I'm
pretty sure it's not a stale software problem.
PPPS - Installations on both Windows XP and Mac OS X have resulted in the
exact same results (both successful and unsuccessful).
|
|
|
Re: No packages listed when importing from annotated java [message #431548 is a reply to message #431547] |
Wed, 15 July 2009 20:21 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Ashley,
Comments below.
Ashley Williams wrote:
> Hi All,
>
> I am having trouble generating an emf model from annotated java. I was
> able to follow the tutorial on generating an emf model from existing
> java code with no problems.
> Excited, and perhaps overly optimistic, I went through my existing
> code base adding @model tags to everything that looked relevant.
> Afterward, I followed the steps again, but this time no dice.
> Everything went exactly as in the tutorial, but when I got to the
> "Package Selection" screen, there was just an empty box.
> I have tried all kinds of things, but nothing seems to work. Just for
> grins, I tried importing a very simple java model and, again, it
> worked fine. So, I'm thinking there is something simple I'm missing on
> the big model. Any ideas?
Perhaps there was some unexpected problem encountered. Did you check
the Error log?
>
> Unfortunately, my company is pretty paranoid about its intellectual
> property, so I can't attach any actual code. I know that's severely
> limiting, but I was hoping someone has seen this already and knows
> "all you have to do put the whatchamacallit on the whozit, click your
> heels three times and sacrifice a free-range chicken."
If you care to set it privately I can look at it but otherwise I need
something to go on to fix any lurking bugs.
> If this doesn't go anywhere, I can try to fabricate an example that
> also doesn't work. It occurs to me, though, that if I can successfully
> pull that off, I will probably have figured out the solution.
Yes, you might want do start with one file at a time...
>
> Thanks,
> Ashley
>
> PS - I have searched the web and this newsgroup extensively and none
> of those threads have helped.
>
> PPS - I have a fresh installation as of about three days ago, so I'm
> pretty sure it's not a stale software problem.
>
> PPPS - Installations on both Windows XP and Mac OS X have resulted in
> the exact same results (both successful and unsuccessful).
I'm happy to help if I can reproduce. At least if you can track down a
stack trace in the error log, I'd have some tea leaves to read.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| | | | | |
Re: No packages listed when importing from annotated java [message #431583 is a reply to message #431570] |
Fri, 17 July 2009 15:04 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Ashley,
I think MoDisco can create UML which you can map to Ecore, but
ultimately for any EClass, EMF will want to generate an interface and an
implementation class... I think that specifying @model kind="class"
will help convince it to map to an EClass, but as I said, it won't
generate a class in the end...
Ashley Williams wrote:
> I got the basic (non-working) example to work. Going on the hint you
> provided in your last post, I removed all the @model tags from all the
> classes, leaving only the interfaces with tags. Running through the
> steps again, everything worked fine.
>
> I gather the reverse engineering only works on interfaces and enums. I
> wonder if there is another tool that can do the same for classes too
> (MoDisco?).
>
> Cheers,
> Ashley
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Goto Forum:
Current Time: Tue Apr 23 09:07:52 GMT 2024
Powered by FUDForum. Page generated in 0.04013 seconds
|