/** * @return Path relative to the home directory denoted with a tilde. */ @Override public String getAbbreviatedPath() { return new TildeExpander().abbreviate(this.getAbsolute()); }
public FinderLocal(final String path) { this(resolveAlias(new TildeExpander().expand(path)), FilesystemBookmarkResolverFactory.get()); }
@Override public boolean remove(final Local file) { for(IconService delegate : delegates) { delegate.remove(file); } return true; } }
@Override public boolean register(final Application application) { try { if(finder.isInstalled(application)) { service.add(new FinderLocal(NSWorkspace.sharedWorkspace().absolutePathForAppBundleWithIdentifier(application.getIdentifier()))); return true; } return false; } catch(LocalAccessDeniedException e) { return false; } }
@Override public boolean unregister(final Application application) { try { if(finder.isInstalled(application)) { service.remove(new FinderLocal(NSWorkspace.sharedWorkspace().absolutePathForAppBundleWithIdentifier(application.getIdentifier()))); return true; } return false; } catch(LocalAccessDeniedException e) { return false; } } }
/** * @return A shortened path representation. */ public String getAbbreviatedPath() { return new TildeExpander().abbreviate(path); }
@Override public Application getDescription(final String application) { return new Application(application); } }
@Override public boolean set(final Local file, final String image) { for(IconService delegate : delegates) { delegate.set(file, image); } return true; }
@Override public String toString() { return this.getIdentifier(); } }
public FinderIconService() { this(new WorkspaceIconService(), new FoundationProgressIconService()); }
public DownloadSymlinkResolver(final List<TransferItem> files) { this.files = files; this.feature = LocalSymlinkFactory.get(); }
public static QuarantineService get() { return new QuarantineServiceFactory().create(); } }
public static FileDescriptor get() { return new FileDescriptorFactory().create(); } }
@Override public boolean remove(final Local file) { return this.update(file, null); } }
public FinderLocalAttributes(final FinderLocal local) { super(local.getAbsolute()); this.local = local; }
public static ApplicationLauncher get() { return factory.create(); } }
@Override public Application getDescription(final String application) { return new Application(application); } }
@Override public boolean set(final Local file, final TransferStatus progress) { for(IconService delegate : delegates) { delegate.set(file, progress); } return true; }