站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

MIMEOptionFolder (Editor Module) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor/3 1.32.0

org.netbeans.modules.editor.options
Class MIMEOptionFolder

java.lang.Object
  extended by org.netbeans.modules.editor.options.MIMEOptionFolder

public class MIMEOptionFolder
extends Object

MIME Options Folder representation. Folder maintains MIME specific settings. The folder contains XML settings files like fontscolors.xml, abbreviations.xml, macros.xml, properties.xml ... The folder also contains multi property subFolders like Popup, Macros, Abbreviations ...

Since:
08/2001

Constructor Summary
MIMEOptionFolder(DataFolder f, BaseOptions bean)
          Creates new MIMEOptionFolder
 
Method Summary
protected  Object createInstance(InstanceCookie[] cookies)
          Creates instance of all founded and recognized XML files
protected  DataFolder getDataFolder()
          Gets the data folder of this MIMEOptionFolder
protected  MIMEOptionFile getFile(Class file, boolean forceCreation)
          Gets MIME specific file located in this folder
protected  MIMEOptionFolder getFolder(String subFolder)
          Gets MIME Option subFolder from this folder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MIMEOptionFolder

public MIMEOptionFolder(DataFolder f,
                        BaseOptions bean)
Creates new MIMEOptionFolder

Method Detail

createInstance

protected Object createInstance(InstanceCookie[] cookies)
                         throws IOException,
                                ClassNotFoundException
Creates instance of all founded and recognized XML files

Throws:
IOException
ClassNotFoundException

getDataFolder

protected DataFolder getDataFolder()
Gets the data folder of this MIMEOptionFolder


getFolder

protected MIMEOptionFolder getFolder(String subFolder)
Gets MIME Option subFolder from this folder

Parameters:
subFolder - the name of subFolder

getFile

protected MIMEOptionFile getFile(Class file,
                                 boolean forceCreation)
Gets MIME specific file located in this folder

Parameters:
file - Processor file class
forceCreation - if true, empty XML file will be created (used for saving the file ). False is used for loading file.

org.netbeans.modules.editor/3 1.32.0

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.