|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.japisoft.sc.SyntaxFileMapper
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 );
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 |
public SyntaxFileMapper(ScEditorKit sc)
Method Detail |
public void addRelation(java.lang.String fileExtension, java.lang.String propertyId)
public void resetSyntaxColor(java.io.File f) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void resetSyntaxColor(java.lang.String f) throws java.io.FileNotFoundException
java.io.FileNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |