自定义的eclipse editor 保存文件中文失败

因为少了一个扩展点

 

假设我们做得editor是为了打开AA.xcv文件

 

那么 我们必须追加

<extension point="org.eclipse.core.contenttype.contentTypes">
 <!-- declares a content type for Java Properties files -->
  <content-type id="NoahJavaProperties" name="Noah Java Properties File"
   base-type="org.eclipse.core.runtime.text"
   priority="high"  
   file-names="AA.xcv"         // 为指定的文件(AA.xcv)指定UTF-8编码
   default-charset="UTF-8"/>
 </extension>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章