Code generation in Forte?

Discussions about integrations with other 3th party tools

Moderator: Moderators

Code generation in Forte?

Postby Jim McClure » Fri Nov 30, 2001 12:34 pm

Hi,
I am trying to come up to speed on MagicDraw/Forte integration, so this may
be a simple question. I am using MD 5 beta with Forte 3 CE and the
integration worked great. I have a project open and am creating various
class files in the UML Modeling mode (on a class diagram). My question is
this: How do I generate code from the new classes I've created? Although the
UML diagram shows the classes and attributes, no files are generated in the
project directory. I see a Tools, Update UML Information choice, but no
corresponding choice appears to generate code. Also, I put an existing java
object onto a class diagram, added some new attributes, but don't know how
to generate the updated java code. When I look in the source file (e.g., by
using Open in Forte), the new items I've added are not there. How do you
tell MD to "give back" the changes to Forte so that it can show them in the
source files? Thanks...

Jim McClure
Q.E.D., Inc.
jamcclure


Jim McClure
 
Posts Rating:

Re: Code generation in Forte?

Postby Mindaugas Ringys » Mon Dec 03, 2001 3:39 am

Hi Jim,

The source in Forte project must be updated after every class change in the
MagicDraw project if class is mapped to Forte project.
You can map a class to Forte project during new class adding into MagicDraw
project (the SelectFileSystem dialog for source file location comes out) or
executing Update UML Model command in Forte project.

We are going to add explicitly mapping command for already existing class in
future MagicDraw versions.

How have you added your class into MagicDraw project?

--

Mindaugas Ringys
Project Leader
No Magic Lithuanian Development Center
Gedimino g. 47- 408, 3000 Kaunas, Lithuania
P.O. box 2166, LT- 3000, Kaunas, Lithuania
Phone: +370 7 324032 Fax: +370 7 320670
e-mail : mindis
WWW: http://www.nomagic.com
--
OO software design can be an appealing challenge if you have
the best UML modeling tool: http://www.magicdraw.com
"Jim McClure" <jamcclure> wrote in message
news:9u8jg0$m3e$1...
> Hi,
> I am trying to come up to speed on MagicDraw/Forte integration, so this
may
> be a simple question. I am using MD 5 beta with Forte 3 CE and the
> integration worked great. I have a project open and am creating various
> class files in the UML Modeling mode (on a class diagram). My question is
> this: How do I generate code from the new classes I've created? Although
the
> UML diagram shows the classes and attributes, no files are generated in
the
> project directory. I see a Tools, Update UML Information choice, but no
> corresponding choice appears to generate code. Also, I put an existing
java
> object onto a class diagram, added some new attributes, but don't know how
> to generate the updated java code. When I look in the source file (e.g.,
by
> using Open in Forte), the new items I've added are not there. How do you
> tell MD to "give back" the changes to Forte so that it can show them in
the
> source files? Thanks...
>
> Jim McClure
> Q.E.D., Inc.
> jamcclure
>
>


Mindaugas Ringys
 
Posts Rating:

Re: Code generation in Forte?

Postby Jim McClure » Wed Dec 05, 2001 1:26 pm

Hi,
Here are the steps that I followed:

- I have an existing MagicDraw project with a few classes.

- I created a Forte project and added the file system with those class
(*.java) files.

- I used the File + UML Modeling + Import Project command to load the
settings and diagrams from my original MagicDraw project.

- At that point, I begin using Forte exclusively (i.e., I no longer use the
stand-alone MagicDraw software).

- I go to the UML Modeling tab in Forte, make some changes to a class on a
class diagram, and then go to look at the source (*.java) file in Forte.
Nothing has changed. No changes I make in the UML Modeling Forte tab have
any effect on the *.java source files in Forte. And there is no "generate
code" button anywhere that I can see to regenerate the *.java source.

I also have another problem: I have been creating classes in the UML
Modeling tab of Forte and I cannot get access to any of the Language
Properties dialog boxes. Where did they go? I need to set the container
class of some associations and I cannot get access to the Language (Java)
properties. Thanks for your help...
Jim




Jim McClure
 
Posts Rating:

Re: Code generation in Forte?

Postby Mindaugas Ringys » Thu Dec 06, 2001 9:31 am

Hi Jim,

After project import, class from MagicDraw is not mapped to source in the
Forte, so any changes made in class are not reflected in the source. You can
map source and class executing Update UML Model command from Forte browser.
In this case changes in the class in MagicDraw will be lost. After Update
command execution the class will be mapped to source and any changed in
class will be reflected in source automatically.
We are going to add the command into next MagicDraw version for explicit
source updating from MagicDraw

MagicDraw version in the integration with Forte is standard, so Language
properties are not available. We will fix that in the next version also.

We are going to review and improve Forte and MagicDraw integration
functionality and quality in the next version (after 5.0).

Thanks for your feedback.

--

Mindaugas Ringys
Project Leader
No Magic Lithuanian Development Center
Gedimino g. 47- 408, 3000 Kaunas, Lithuania
P.O. box 2166, LT- 3000, Kaunas, Lithuania
Phone: +370 7 324032 Fax: +370 7 320670
e-mail : mindis
WWW: http://www.nomagic.com
--
OO software design can be an appealing challenge if you have
the best UML modeling tool: http://www.magicdraw.com
"Jim McClure" <jamcclure> wrote in message
news:9ulsd9$ih0$1...
> Hi,
> Here are the steps that I followed:
>
> - I have an existing MagicDraw project with a few classes.
>
> - I created a Forte project and added the file system with those class
> (*.java) files.
>
> - I used the File + UML Modeling + Import Project command to load the
> settings and diagrams from my original MagicDraw project.
>
> - At that point, I begin using Forte exclusively (i.e., I no longer use
the
> stand-alone MagicDraw software).
>
> - I go to the UML Modeling tab in Forte, make some changes to a class on a
> class diagram, and then go to look at the source (*.java) file in Forte.
> Nothing has changed. No changes I make in the UML Modeling Forte tab have
> any effect on the *.java source files in Forte. And there is no "generate
> code" button anywhere that I can see to regenerate the *.java source.
>
> I also have another problem: I have been creating classes in the UML
> Modeling tab of Forte and I cannot get access to any of the Language
> Properties dialog boxes. Where did they go? I need to set the container
> class of some associations and I cannot get access to the Language (Java)
> properties. Thanks for your help...
> Jim
>
>
>
>


Mindaugas Ringys
 
Posts Rating:


Return to Integrations

Who is online

Users browsing this forum: No registered users and 0 guests