@Override public String toString() { return getSystemName() + "[" + super.toString() + "]"; // NOI18N }
private static String encodeFsPart(FileObject fo) throws FileStateInvalidException { FileSystem fs = fo.getFileSystem(); assert fs != null : "File object " + fo + " returns null from getFileSystem()"; String n = fs.isDefault() ? SYSTEM_FILE_SYSTEM_NAME : fs.getSystemName(); if (n.isEmpty()) { n = String.format("%s.%h", fs.getClass().getName(), fs); } return encoder(n); }
@SuppressWarnings("deprecation") // FileSystem.systemName historical part of serial form private void writeObject(ObjectOutputStream oos) throws IOException { fsname = f.getFileSystem().getSystemName(); path = f.getPath(); url = f.toURL(); assert url != null : "No URL for " + path; oos.defaultWriteObject(); }
fileSystemsClone = new ArrayList<FileSystem>(fileSystems); String systemName = fs.getSystemName();
names.remove(fs.getSystemName()); fs.setValid(false);
public String toString () { return getSystemName () + "[" + super.toString () + "]"; // NOI18N }
public String toString () { return getSystemName () + "[" + super.toString () + "]"; // NOI18N }
private static String encodeFsPart(FileObject fo) throws FileStateInvalidException { FileSystem fs = fo.getFileSystem(); return encoder(fs.getSystemName()); }
private static String encodeFsPart(FileObject fo) throws FileStateInvalidException { FileSystem fs = fo.getFileSystem(); return encoder(fs.getSystemName()); }
private void writeObject(ObjectOutputStream oos) throws IOException { fsname = f.getFileSystem().getSystemName(); path = f.getPath(); url = f.getURL(); assert url != null : "No URL for " + path; oos.defaultWriteObject(); }
private void writeObject(ObjectOutputStream oos) throws IOException { fsname = f.getFileSystem().getSystemName(); path = f.getPath(); url = f.getURL(); assert url != null : "No URL for " + path; oos.defaultWriteObject(); }
return f1.getFileSystem().getSystemName().compareTo( f2.getFileSystem().getSystemName()); } catch (org.openide.filesystems.FileStateInvalidException fsie) {
fileSystems.add(fs); fileSystemsClone = (ArrayList)fileSystems.clone(); String systemName = fs.getSystemName ();
fileSystems.add(fs); fileSystemsClone = (ArrayList)fileSystems.clone(); String systemName = fs.getSystemName ();
/** Removes a filesystem from the pool. * @param fs filesystem to remove * @deprecated Please use the <a href="@JAVA/API@/org/netbeans/api/java/classpath/api.html">ClassPath API</a> instead. */ public final void removeFileSystem (FileSystem fs) { boolean fireIt = false; synchronized (this) { if (fs.isDefault()) return; if (fireIt = fileSystems.remove(fs)) { fs.setRepository (null); fileSystemsClone = (ArrayList)fileSystems.clone(); // the filesystem realy was here if (fs.isValid ()) { // if the filesystem is valid then is in names hashtable names.remove (fs.getSystemName ()); fs.setValid (false); } // in all cases remove it from listeners fs.removePropertyChangeListener (propListener); fs.removeVetoableChangeListener (vetoListener); // notify filesystem itself that it has been removed fs.removeNotify(); } // unassign the filesystem fs.assigned = false; } // postponed firing after synchronized block to prevent deadlock if (fireIt) fireFileSystem (fs, false); }
/** Removes a filesystem from the pool. * @param fs filesystem to remove * @deprecated Please use the <a href="@JAVA/API@/org/netbeans/api/java/classpath/api.html">ClassPath API</a> instead. */ public final void removeFileSystem (FileSystem fs) { boolean fireIt = false; synchronized (this) { if (fs.isDefault()) return; if (fireIt = fileSystems.remove(fs)) { fs.setRepository (null); fileSystemsClone = (ArrayList)fileSystems.clone(); // the filesystem realy was here if (fs.isValid ()) { // if the filesystem is valid then is in names hashtable names.remove (fs.getSystemName ()); fs.setValid (false); } // in all cases remove it from listeners fs.removePropertyChangeListener (propListener); fs.removeVetoableChangeListener (vetoListener); // notify filesystem itself that it has been removed fs.removeNotify(); } // unassign the filesystem fs.assigned = false; } // postponed firing after synchronized block to prevent deadlock if (fireIt) fireFileSystem (fs, false); }