Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Workbench User Guide
Previous Page Home Next Page

Setting the content type of a file extension

CVS repositories distinguish between files that contain ASCII data and those that do not. For ASCII files, additional helpful functionality is available. This includes:

  • Proper end of line conversion between the client and the server. This ensures that a Windows user and a UNIX user can work on the same file without introducing incompatibilities.
  • Auto merging of conflicts. If a file contains both incoming and outgoing changes but none on the same line as another, then the file may be automatically merged when updating.

Certain file types invariably contain either ASCII data or binary data. For example, *.txt files usually contain ASCII data, and *.exe files usually contain binary data. Eclipse comes with a pre-defined set of file types, which you may add to or modify.

To set the content type associated with a file extension:

  1. Open the Team > File Content preference page. This page displays a list of file extensions and content type (ASCII or Binary) for file extensions whose content type is known.
  2. To add a file extension, click the Add Extension button and enter the file extension in the text prompt that appears. Once OK is clicked, the extension will be added to the list with a content type of ASCII.

  3. To change the content type for an existing file extension, select the file extension entry and click the Change button. This will toggle the type from ASCII to Binary or vice versa.
  4. To remove a file extension, select the file extension entry and click the Remove button.

Related concepts
Team programming with CVS

Related reference
CVS


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire