com.japisoft.sc
Class SyntaxFileMapper

java.lang.Object
  |
  +--com.japisoft.sc.SyntaxFileMapper

public class SyntaxFileMapper
extends java.lang.Object

This class makes a relation between a file extension and a syntax descriptor file. It provides a support for editing different data format. Usag sample :

 ScEditorKit sc = new ScEditorKit();
 SyntaxFileMapper sfm = new SyntaxFileMapper();
 sfm.addRelation( "sql", "sql.properties" );
 sfm.addRelation( "java", "java.properties" );
 ...
 // Each time a file must be loaded you must have to
 File myNewFile = ...;
 sfm.resetSyntaxColor( myNewFile );
 

Author:
(c) 2002-2003 JAPISOFT

Constructor Summary
SyntaxFileMapper(ScEditorKit sc)
           
 
Method Summary
 void addRelation(java.lang.String fileExtension, java.lang.String propertyId)
          Add a relation between a file format and a syntax descriptor
 void resetSyntaxColor(java.io.File f)
          Update the editor kit for supporting this file format
 void resetSyntaxColor(java.lang.String f)
          Update the editor kit for supporting this file format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyntaxFileMapper

public SyntaxFileMapper(ScEditorKit sc)
Method Detail

addRelation

public void addRelation(java.lang.String fileExtension,
                        java.lang.String propertyId)
Add a relation between a file format and a syntax descriptor


resetSyntaxColor

public void resetSyntaxColor(java.io.File f)
                      throws java.io.FileNotFoundException
Update the editor kit for supporting this file format

java.io.FileNotFoundException

resetSyntaxColor

public void resetSyntaxColor(java.lang.String f)
                      throws java.io.FileNotFoundException
Update the editor kit for supporting this file format

java.io.FileNotFoundException