MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Re: Wolfram Workbench

  • To: mathgroup at smc.vnet.net
  • Subject: [mg68243] Re: [mg68145] Re: [mg67990] Wolfram Workbench
  • From: Igor Antonio <igora at wolf-ram.com>
  • Date: Sun, 30 Jul 2006 04:48:35 -0400 (EDT)
  • Organization: Wolfram Research, Inc.
  • References: <200607201004.GAA09748@smc.vnet.net> <200607260626.CAA20404@smc.vnet.net> <44C8ED0A.10409@wolf-ram.com>
  • Reply-to: igora at wolf-ram.com
  • Sender: owner-wri-mathgroup at wolfram.com

>  >
>> How should people go about importing old code (developed with the
>> previous .nb and .m file usage) into this framework?
>>
> 
> I'm assuming that in addition to your package code, you also have tests 
> inside your notebook to test the package (tests that are not in 
> initialization cells, so they don't placed in the .m file).
> 
> There is no specific procedure on how to "import your old code" since 
> development on eclipse is focused on writing the .m files directly.
> 
> My suggestion is that you should first understand how Mathematica 
> projects work in eclipse, then figure out how to "move" things over.
> 
> You could simply create a Mathematica Basic Project, copy your 
> auto-created .m files into the project, create a new notebook in that 
> project, and copy your test cases from your old notebook to the new 
> notebook.  At that point, you can discard your old notebook.  When you 
> do a right-click on the new notebook, Mathematica > Run..., it will load 
> all the .m files from that project.
> 
> If you want to take it a step further, you can convert your tests from 
> your old notebook to specific unit tests in Eclipse.  This is a manual 
> process that would involve lots of cutting and pasting because the unit 
> tests must follow a specific syntax.
> 
<snip>
> 
> Igor
> 

Actually, there's an Import wizard, so ignore my suggestion above. :-)

- Create a new Mathematica Project
- File > Import... > Other > Mathematica Import Wizard

You can then specify a .nb file and choose to import either the 
initialization cells or the input cells.

Igor


--
Igor C. Antonio
Wolfram Research, Inc.
http://www.wolfram.com

To email me personally, remove the dash.


  • Prev by Date: Re: Polynomial Control Systems Now Available
  • Next by Date: Re: mathlink error when restarting remote kernel
  • Previous by thread: Re: Re: Wolfram Workbench
  • Next by thread: Re: Re: Wolfram Workbench