org.netbeans.core.startup/1 1.40

org.netbeans.core.startup.layers
Class SystemFileSystem

java.lang.Object
  extended by org.openide.filesystems.FileSystem
      extended by org.openide.filesystems.MultiFileSystem
          extended by org.netbeans.core.startup.layers.SystemFileSystem
All Implemented Interfaces:
Serializable, EventListener, FileChangeListener

public final class SystemFileSystem
extends MultiFileSystem
implements FileChangeListener

The system FileSystem - represents system files under $NETBEANS_HOME/system.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.openide.filesystems.FileSystem
FileSystem.AtomicAction, FileSystem.Environment, FileSystem.HtmlStatus, FileSystem.Status
 
Field Summary
 
Fields inherited from class org.openide.filesystems.FileSystem
PROP_DISPLAY_NAME, PROP_HIDDEN, PROP_READ_ONLY, PROP_ROOT, PROP_SYSTEM_NAME, PROP_VALID
 
Method Summary
protected  Set<? extends FileSystem> createLocksOn(String name)
           
protected  FileSystem createWritableOn(String name)
           
protected  FileSystem createWritableOnForRename(String oldName, String newName)
           
 void fileAttributeChanged(FileAttributeEvent fe)
           
 void fileChanged(FileEvent fe)
           
 void fileDataCreated(FileEvent fe)
           
 void fileDeleted(FileEvent fe)
           
 void fileFolderCreated(FileEvent fe)
           
 void fileRenamed(FileRenameEvent fe)
           
 String getDisplayName()
          Name of the system
 ModuleLayeredFileSystem getInstallationLayer()
          Getter for the instalation layer filesystem.
 FileSystem[] getLayers()
          Getter for the array of filesystems that are currently used in the IDE.
 ModuleLayeredFileSystem getUserLayer()
          Getter for the user layer filesystem.
 boolean isPersistent()
          Deprecated. 
protected  void notifyMigration(FileObject fo)
          Notification that a file has migrated from one file system to another.
static void registerMutex(Mutex mutex)
          A mutex to use to guard access to changes of layers in the system file system.
 void setLayers(FileSystem[] arr)
          Changes layers to provided values.
 
Methods inherited from class org.openide.filesystems.MultiFileSystem
addNotify, find, findResource, findResourceOn, findSystem, getActions, getActions, getDelegates, getPropagateMasks, getRoot, hiddenFiles, hideResource, isReadOnly, markUnimportant, prepareEnvironment, refresh, removeNotify, setDelegates, setPropagateMasks
 
Methods inherited from class org.openide.filesystems.FileSystem
addFileChangeListener, addFileStatusListener, addPropertyChangeListener, addVetoableChangeListener, createTempFile, fireFileStatusChanged, firePropertyChange, fireVetoableChange, getCapability, getStatus, getSystemName, getTempFolder, isDefault, isHidden, isValid, removeFileChangeListener, removeFileStatusListener, removePropertyChangeListener, removeVetoableChangeListener, runAtomicAction, setCapability, setHidden, setSystemName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

registerMutex

public static void registerMutex(Mutex mutex)
A mutex to use to guard access to changes of layers in the system file system.


getDisplayName

public String getDisplayName()
Name of the system

Overrides:
getDisplayName in class MultiFileSystem

getInstallationLayer

public ModuleLayeredFileSystem getInstallationLayer()
Getter for the instalation layer filesystem. May be null if there is none such.


getUserLayer

public ModuleLayeredFileSystem getUserLayer()
Getter for the user layer filesystem.


setLayers

public final void setLayers(FileSystem[] arr)
                     throws IllegalArgumentException
Changes layers to provided values.

Parameters:
arr - the new layers
Throws:
IllegalArgumentException - if there is an overlap

getLayers

public FileSystem[] getLayers()
Getter for the array of filesystems that are currently used in the IDE.

Returns:
array of filesystems

createWritableOnForRename

protected FileSystem createWritableOnForRename(String oldName,
                                               String newName)
                                        throws IOException
Overrides:
createWritableOnForRename in class MultiFileSystem
Throws:
IOException

createWritableOn

protected FileSystem createWritableOn(String name)
                               throws IOException
Overrides:
createWritableOn in class MultiFileSystem
Throws:
IOException

createLocksOn

protected Set<? extends FileSystem> createLocksOn(String name)
                                           throws IOException
Overrides:
createLocksOn in class MultiFileSystem
Throws:
IOException

isPersistent

@Deprecated
public boolean isPersistent()
Deprecated. 

This filesystem cannot be removed from pool, it is persistent.

Overrides:
isPersistent in class FileSystem

notifyMigration

protected void notifyMigration(FileObject fo)
Notification that a file has migrated from one file system to another. Usually when somebody writes to file on readonly file system and the file has to be copied to write one.

This method allows subclasses to fire for example FileSystem.PROP_STATUS change to notify that annotation of this file should change.

Overrides:
notifyMigration in class MultiFileSystem
Parameters:
fo - file object that change its actual file system

fileFolderCreated

public void fileFolderCreated(FileEvent fe)
Specified by:
fileFolderCreated in interface FileChangeListener

fileDataCreated

public void fileDataCreated(FileEvent fe)
Specified by:
fileDataCreated in interface FileChangeListener

fileChanged

public void fileChanged(FileEvent fe)
Specified by:
fileChanged in interface FileChangeListener

fileDeleted

public void fileDeleted(FileEvent fe)
Specified by:
fileDeleted in interface FileChangeListener

fileRenamed

public void fileRenamed(FileRenameEvent fe)
Specified by:
fileRenamed in interface FileChangeListener

fileAttributeChanged

public void fileAttributeChanged(FileAttributeEvent fe)
Specified by:
fileAttributeChanged in interface FileChangeListener

org.netbeans.core.startup/1 1.40

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