You can create a new Jython script file, which you can then edit
in the Jython editor.
The following instructions were written for the Resource perspective,
but they will also work in any other perspectives.
To create a Jython script
file, follow these instructions:
- If necessary, create a project to contain the Jython script file.
You can define a Jython project to contain the Jython script file. See Creating a Jython Project.
- In the menu bar, select File > New > Other .
The New wizard opens.
- Expand the Jython folder and select Jython
Script File. Click Next.
- In the Parent folder field, specify the
path of an existing project folder in the current workspace where you want
to store the new Jython script file. For example, if you specify the path
as /myProject, the Jython script file is created in the
Navigator view under the project called: myProject. You must specify a project folder that already exists in the workspace.
- In the File name field, type a name for
your new Jython script file. The file extension must be .py or .jy.
- Click Finish to create the Jython script
file.
The Jython file appears in the Navigator view and, by default, automatically
opens in the Jython editor.