/** Allows subclasses to change a set of capabilities of the * filesystem. * @param capability the capability to use * @deprecated Capabilities are no longer used. */ @Deprecated protected final void setCapability(FileSystemCapability capability) { if (this.capability != null) { ((FileSystemCapability) this.capability).removePropertyChangeListener(getCapabilityChangeListener()); } this.capability = capability; if (this.capability != null) { ((FileSystemCapability) this.capability).addPropertyChangeListener(getCapabilityChangeListener()); } }
/** Allows subclasses to change a set of capabilities of the * filesystem. * @param capability the capability to use * @deprecated Capabilities are no longer used. */ @Deprecated protected final void setCapability(FileSystemCapability capability) { if (this.capability != null) { ((FileSystemCapability) this.capability).removePropertyChangeListener(getCapabilityChangeListener()); } this.capability = capability; if (this.capability != null) { ((FileSystemCapability) this.capability).addPropertyChangeListener(getCapabilityChangeListener()); } }
/** Allows subclasses to change a set of capabilities of the * filesystem. * @param capability the capability to use * @deprecated Capabilities are no longer used. */ protected final void setCapability (FileSystemCapability capability) { if (this.capability != null) this.capability.removePropertyChangeListener(getCapabilityChangeListener ()); this.capability = capability; if (this.capability != null) this.capability.addPropertyChangeListener (getCapabilityChangeListener ()); }
/** Allows subclasses to change a set of capabilities of the * filesystem. * @param capability the capability to use * @deprecated Capabilities are no longer used. */ protected final void setCapability (FileSystemCapability capability) { if (this.capability != null) this.capability.removePropertyChangeListener(getCapabilityChangeListener ()); this.capability = capability; if (this.capability != null) this.capability.addPropertyChangeListener (getCapabilityChangeListener ()); }