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

VcsFSProvider (NetBeans VCS API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.modules.vcscore.registry
Class VcsFSProvider

java.lang.Object
  extended byorg.netbeans.modules.masterfs.providers.AutoMountProvider
      extended byorg.netbeans.modules.vcscore.registry.VcsFSProvider
All Implemented Interfaces:
EventListener, org.netbeans.modules.masterfs.providers.FileSystemProvider, FSRegistryListener, PropertyChangeListener, VetoableChangeListener

public class VcsFSProvider
extends org.netbeans.modules.masterfs.providers.AutoMountProvider
implements org.netbeans.modules.masterfs.providers.FileSystemProvider, PropertyChangeListener, VetoableChangeListener, FSRegistryListener

Provider of VCS filesystems for recognized folders.


Constructor Summary
VcsFSProvider()
          Creates a new instance of CommandLineFileSystemProvider
 
Method Summary
 FileSystem createFileSystem(String rootPath)
          Creates filesystem with root defined by rootPath
 void fsAdded(FSRegistryEvent ev)
          Called when a new filesystem information is added.
 void fsRemoved(FSRegistryEvent ev)
          Called when a filesystem information is removed.
 Image getIcon(String rootPath, int iconType)
           
 org.netbeans.modules.masterfs.providers.AutoMountProvider initialize(org.netbeans.modules.masterfs.providers.MountSupport mSupport)
          HostFileSystem invokes this method to pass impl.
 boolean isRootOfFileSystem(String rootPath)
           
 void propertyChange(PropertyChangeEvent evt)
           
 void vetoableChange(PropertyChangeEvent evt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VcsFSProvider

public VcsFSProvider()
Creates a new instance of CommandLineFileSystemProvider

Method Detail

initialize

public org.netbeans.modules.masterfs.providers.AutoMountProvider initialize(org.netbeans.modules.masterfs.providers.MountSupport mSupport)
HostFileSystem invokes this method to pass impl. of MountSupport, that can be kept and used later.

Specified by:
initialize in interface org.netbeans.modules.masterfs.providers.FileSystemProvider
Parameters:
mSupport - impl. of MountSupport
Returns:
true if there is supported AutoMountProvider

createFileSystem

public FileSystem createFileSystem(String rootPath)
                            throws IOException,
                                   PropertyVetoException
Creates filesystem with root defined by rootPath

Returns:
instance of FileSystem only if also method isRootOfFileSystem returns true, else returns null
Throws:
IOException
PropertyVetoException

isRootOfFileSystem

public boolean isRootOfFileSystem(String rootPath)
Returns:
true if rootPath is expected to be root of supported FileSystem

getIcon

public Image getIcon(String rootPath,
                     int iconType)

vetoableChange

public void vetoableChange(PropertyChangeEvent evt)
                    throws PropertyVetoException
Specified by:
vetoableChange in interface VetoableChangeListener
Throws:
PropertyVetoException

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener

fsAdded

public void fsAdded(FSRegistryEvent ev)
Description copied from interface: FSRegistryListener
Called when a new filesystem information is added.

Specified by:
fsAdded in interface FSRegistryListener

fsRemoved

public void fsRemoved(FSRegistryEvent ev)
Description copied from interface: FSRegistryListener
Called when a filesystem information is removed.

Specified by:
fsRemoved in interface FSRegistryListener

 

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