Home » Archived » MOFScript » [MOFScript] Integration
| | | |
Re: Integration [message #469064 is a reply to message #469061] |
Mon, 03 November 2008 20:10 |
Diego Messages: 6 Registered: July 2009 |
Junior Member |
|
|
Hello Goran,
I'll try to explain everything that is happening here. My bad english
won't help however.
My team is working on a transformation tool (model to model, model to
code) and we have chosen the MofScript API to perform the model to code
generation. So, we created a plugin project (RCP) on eclipse and
integrated the MofScript's funcionalities.
By using MofScript plugin we have found that the Root Generation Dir is
not correctly set by the Menu: Window - Preferences - MofScript Preference
- Root Generation Dir. Everytime i set it to a new directory e.g. c:/new/
and perform the transformation, the output dir is set (for some unknown
reason) to its default (c:/temp/).
To solve this we discovered that if we use the popUpMenu in the package
explorer: Right-Click on .m2t file - Properties - MofScript Properties -
Select Root Output Directory, and set the output directory by there, it
works fine. But the problem is that on the tool we are developing, there's
no package explorer to right click the .m2t file.
As an option, we tried to make all the transformation programatically,
as i said in the previous post:
..
..
..
execMgr = ExecutionManager.getExecutionManager();
execMgr.setRootDirectory(path);
..
..
..
which sets the output directory correctly. Fine, but we were having some
problems with the programatically transformation (soon, another post =D)
and we decided to follow the user interface way, at least for now.
Then, we tried to ONLY set the output dir programatically, as above,
and then execute the transformation by the user interface, on the execute
transformation button. It didn't work, the default dir (c:/temp/) was set
again.
So, i was thinking about a way to perform programatically the
Right-click on .m2t file -> properties -> MofScriptPropreties -> Select
Output Directory (which works here). Any idea on how to solve this?
Hope you understand the problem and sorry to bother one more time.
Thanks in advance,
Diego Queiroz
|
|
| | | | |
Re: Integration [message #566070 is a reply to message #469061] |
Mon, 03 November 2008 20:10 |
Diego Messages: 6 Registered: July 2009 |
Junior Member |
|
|
Hello Goran,
I'll try to explain everything that is happening here. My bad english
won't help however.
My team is working on a transformation tool (model to model, model to
code) and we have chosen the MofScript API to perform the model to code
generation. So, we created a plugin project (RCP) on eclipse and
integrated the MofScript's funcionalities.
By using MofScript plugin we have found that the Root Generation Dir is
not correctly set by the Menu: Window - Preferences - MofScript Preference
- Root Generation Dir. Everytime i set it to a new directory e.g. c:/new/
and perform the transformation, the output dir is set (for some unknown
reason) to its default (c:/temp/).
To solve this we discovered that if we use the popUpMenu in the package
explorer: Right-Click on .m2t file - Properties - MofScript Properties -
Select Root Output Directory, and set the output directory by there, it
works fine. But the problem is that on the tool we are developing, there's
no package explorer to right click the .m2t file.
As an option, we tried to make all the transformation programatically,
as i said in the previous post:
..
..
..
execMgr = ExecutionManager.getExecutionManager();
execMgr.setRootDirectory(path);
..
..
..
which sets the output directory correctly. Fine, but we were having some
problems with the programatically transformation (soon, another post =D)
and we decided to follow the user interface way, at least for now.
Then, we tried to ONLY set the output dir programatically, as above,
and then execute the transformation by the user interface, on the execute
transformation button. It didn't work, the default dir (c:/temp/) was set
again.
So, i was thinking about a way to perform programatically the
Right-click on .m2t file -> properties -> MofScriptPropreties -> Select
Output Directory (which works here). Any idea on how to solve this?
Hope you understand the problem and sorry to bother one more time.
Thanks in advance,
Diego Queiroz
|
|
| |
Goto Forum:
Current Time: Thu Dec 26 19:12:58 GMT 2024
Powered by FUDForum. Page generated in 0.04467 seconds
|