[Dev] Loading a file to the editor

Frank Cohen fcohen at pushtotest.com
Wed Mar 7 22:28:57 PST 2007


Hi William: We are behind schedule and I would like to remove tasks  
to get us back onto schedule. What I propose is we abandon the  
XML2Swing user interface for editing TestScenario files. Instead, the  
"edit" icon in the Controller panel should open the TestScenario file  
in the J editor.

TestMaker embeds a branch of the J editor. The branch modifies  
org.armedbear.j.Editor to allow J to operate the TestMaker create-a- 
new-document method. For instance, when a user clicks the New File  
icon in the J toolbar, J calls the org.armedbear.j.Editor newBuffer()  
method. The TestMaker branch of J replaces the newBuffer() method  
with a call to Console.getInstance().newAction(). newAction() is in  
com.pushtotest.testmaker.Controller.

So, making the "edit" icon in the Controller panel open the  
TestScenario in J means you will need to call the Editor.java methods  
in J to open the TestScenario file.

-Frank





On Mar 7, 2007, at 10:48 AM, William Martínez Pomares wrote:

> Hi.
> J Editor presents a nice interface to work with XML files. When  
> loading a TestScenario File for editing, besides presenting the  
> custom edit UI, we may want to load it into J, so it is presented  
> in the main edit window. How can that be done programmatically?
>
> William.
> _______________________________________________
> Dev mailing list
> Dev at lists.pushtotest.com
> http://lists.pushtotest.com/mailman/listinfo/dev
>



--
Frank Cohen, PushToTest, http://www.PushToTest.com, phone 408 374 7426
TestMaker: The open-source SOA test automation tool





More information about the Dev mailing list