org.netbeans.modules.editor/3 1.63.0 5

org.netbeans.modules.editor.options
Class AnnotationTypesFolder

java.lang.Object
  extended by org.openide.util.Task
      extended by org.openide.loaders.FolderInstance
          extended by org.netbeans.modules.editor.options.AnnotationTypesFolder
All Implemented Interfaces:
Runnable, InstanceCookie, Node.Cookie

public class AnnotationTypesFolder
extends FolderInstance

Representation of the "Editors/AnnotationTypes" folder. All instances created through the createInstance() method are stored in Map and passed to AnnotationType.setTypes(). This class should only be responsible for processing of the folder, listening of the changes in folder etc. Clients should use AnnotationType.getType and other methods in AnnotationType for access to AnnotationTypes.

Since:
07/2001

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openide.cookies.InstanceCookie
InstanceCookie.Of
 
Field Summary
 
Fields inherited from class org.openide.util.Task
EMPTY
 
Method Summary
protected  Object createInstance(InstanceCookie[] cookies)
          Called for each XML file found in FOLDER directory
static AnnotationTypesFolder getAnnotationTypesFolder()
          Gets AnnotationTypesFolder singleton instance.
 void saveAnnotationType(AnnotationType type)
          Save changed AnnotationType
 
Methods inherited from class org.openide.loaders.FolderInstance
acceptContainer, acceptCookie, acceptDataObject, acceptFolder, instanceClass, instanceCreate, instanceFinished, instanceForCookie, instanceName, postCreationTask, recreate, run, toString, waitFinished
 
Methods inherited from class org.openide.util.Task
addTaskListener, isFinished, notifyFinished, notifyRunning, removeTaskListener, waitFinished
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getAnnotationTypesFolder

public static AnnotationTypesFolder getAnnotationTypesFolder()
Gets AnnotationTypesFolder singleton instance.


createInstance

protected Object createInstance(InstanceCookie[] cookies)
                         throws IOException,
                                ClassNotFoundException
Called for each XML file found in FOLDER directory

Specified by:
createInstance in class FolderInstance
Throws:
IOException
ClassNotFoundException

saveAnnotationType

public void saveAnnotationType(AnnotationType type)
Save changed AnnotationType


org.netbeans.modules.editor/3 1.63.0 5

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.