Consultor Eletrônico



Kbase P109559: How OpenEdge Architect manages text file line delimiters
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   17/11/2006
Status: Unverified

GOAL:

How OpenEdge Architect manages text file line delimiters

GOAL:

How to change text file line delimiters with OpenEdge Architect

GOAL:

Why OpenEdge Architect does not change text file line delimiters ?

GOAL:

What does OpenEdge Architect do with text files coming from non-Windows operating systems ?

FACT(s) (Environment):

OpenEdge 10.1x

FIX:


When opening an existing text file that already contains line delimiters,
the standard Eclipse editors detect which line delimiter the file uses, and
continue to use that one as new lines are added. This should prevent
"mixed" line separators from appearing in files.

In the OpenEdge Architect, using Eclipse 3.1 release, there are
two places where the text file line delimiter can be set:

1. In the workspace preferences: navigate to main menu 'Window',
'Preferences', from the treeview choose 'General' -> 'Editors'.
The property is called 'New text file line delimiter' and it is
set to 'Default'. It can be changed to 'Other' where the options are:
'Windows', 'MacOS 9' and 'Unix'.

2. In the project properties: navigate to main menu 'Project',
'Properties' and in the first page 'Info' there is a 'New text file
line delimiter' option. By default it is set to 'Inherited from container'
which can be changed with 'Other' option just as in the previous case.

Another option exists, which can be found under the main menu
'File' -> 'Convert Line Delimiters To', which allows you to convert the
line delimiter characters from the currently opened text file in any
format you choose between the options: 'Windows', 'Unix' or 'MacOS 9'.