Opening existing documentsDocuments can be opened using one of the actions: → (Ctrl+O) or press the
Open toolbar button to display the
Open dialog used to discover, select and open
one or more files. The start folder of the Open
dialog can be either the last folder visited by the
Open dialog the last time it was used in <oXygen/> or
the folder of the currently edited file. This can be configured in the user
preferences. → or press the
Open URL ... toolbar button to
display the Open URL dialog used to open a document
using
FTP/SFTP/WebDAV. → : Loads the last saved file content. All unsaved
modifications are lost. → : Displays a list of recently opened document files. Select
a file to open. → : Opens the selected file from the Project view. From the command line when the <oXygen/> application is
launched. If launched from the command line with the startup script
installed by the installation wizard you can specify local file names as
optional parameters: multiple XML files to be opened automatically at startup in
separate editor panels:
scriptName [pathToXMLFile1] [pathToXMLFile2] ...
where scriptName is the name of the startup
script for your platform (oxygen.bat
on
Windows, oxygen.sh
on
Unix/Linux, oxygenMac.sh
on Mac OS) and
pathToXMLFileN is the
name of a local XML file an XML file and a schema file to be associated automatically
to the file and used for validation and content completion:
scriptName -instance pathToXMLFile -schema pathToSchemaFile
-schemaType XML_SCHEMA|DTD_SCHEMA|RNG_SCHEMA|RNC_SCHEMA
-dtName documentTypeName
where scriptName is the name of the startup
script for your platform (oxygen.bat on Windows, oxygen.sh on
Unix/Linux, oxygenMac.sh on Mac OS), pathToXMLFile is the name of a local XML file,
pathToSchemaFile is the
name of the schema which you want to associate to the XML file,
the four constants (XML_SCHEMA, DTD_SCHEMA, RNG_SCHEMA,
RNC_SCHEMA) are the possible schema types (W3C XML Schema, DTD,
Relax NG schema in full syntax, Relax NG schema in compact
syntax). The next parameter, documentTypeName, specifies the name of the
Document Type for which
the schema is defined. If the Document Type is already present
in options its schema and type will be updated.
The two possibilities of opening files at startup by specifying them
in the command line are explained also if the startup script receives
one of the -h or --help
parameters.
![[Note]](img/note.gif) | Note |
|---|
When more files are opened you can change the tab order by clicking and
dragging a tab in the desired position. |
In addition <oXygen/> supports direct opening of files from the command prompt. Use
the following command syntax: On Windows: oxygen.bat
FileToOpen.xml On Unix/Linux:
sh ./oxygen.sh
FileToOpen.xml
On Mac OS X: sh ./oxygenMac.sh
FileToOpen.xml
Also when the Tree Editor perspective is activated the current document in the
Editor perspective will be opened and displayed as a tree of XML
elements.
© 2008 syncRO soft ltd. |