/** * Attaches or detaches the target file. * * @param file The FileObject. * @throws Exception if an error occurs. */ public void setFile(final FileObject file) throws Exception { final FileType oldType = doGetType(); if (file != null) { WeakRefFileListener.installListener(file, this); } this.file = file; maybeTypeChanged(oldType); }
/** * Attaches or detaches the target file. * * @param file The FileObject. * @throws Exception if an error occurs. */ public void setFile(final FileObject file) throws Exception { final FileType oldType = doGetType(); if (file != null) { WeakRefFileListener.installListener(file, this); } this.file = file; maybeTypeChanged(oldType); }
/** * Attaches or detaches the target file. * * @param file The FileObject. * @throws Exception if an error occurs. */ public void setFile(final FileObject file) throws Exception { final FileType oldType = doGetType(); if (file != null) { WeakRefFileListener.installListener(file, this); } this.file = file; maybeTypeChanged(oldType); }
/** * Adds a child to this file. * * @param baseName The base FileName. * @param type The FileType. * @throws Exception if an error occurs. */ public void attachChild(final FileName baseName, final FileType type) throws Exception { final FileType oldType = doGetType(); if (children.add(baseName.getBaseName())) { childrenChanged(baseName, type); } maybeTypeChanged(oldType); }
/** * Attaches or detaches the target file. * @param file The FileObject. * @throws Exception if an error occurs. */ public void setFile(final FileObject file) throws Exception { final FileType oldType = doGetType(); if (file != null) { WeakRefFileListener.installListener(file, this); } this.file = file; maybeTypeChanged(oldType); }
/** * Adds a child to this file. * * @param baseName The base FileName. * @param type The FileType. * @throws Exception if an error occurs. */ public void attachChild(final FileName baseName, final FileType type) throws Exception { final FileType oldType = doGetType(); if (children.add(baseName.getBaseName())) { childrenChanged(baseName, type); } maybeTypeChanged(oldType); }
/** * Adds a child to this file. * * @param baseName The base FileName. * @param type The FileType. * @throws Exception if an error occurs. */ public void attachChild(final FileName baseName, final FileType type) throws Exception { final FileType oldType = doGetType(); if (children.add(baseName.getBaseName())) { childrenChanged(baseName, type); } maybeTypeChanged(oldType); }
/** * Adds a child to this file. * @param baseName The base FileName. * @param type The FileType. * @throws Exception if an error occurs. */ public void attachChild(final FileName baseName, final FileType type) throws Exception { final FileType oldType = doGetType(); if (children.add(baseName.getBaseName())) { childrenChanged(baseName, type); } maybeTypeChanged(oldType); }