This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
/** Provides actions that should be added to given set of files.
* @param files an immutable set of {@link FileObject}s belonging to this filesystem
* @return null or array of actions for these files.
* @deprecated no longer useful when {@link FileSystem#
*/
public abstract javax.swing.Action[] actions(Set<? extends FileObject> files);
@Deprecated
public javax.swing.Action[] actions(Set<? extends FileObject> files) {
return null;
}
//
// Listener support
public @Override String annotateNameHtml(String name, Set<? extends FileObject> files) {
public @Override Action[] actions(Set<? extends FileObject> files) {
public @Override InterceptionListener getInterceptionListener() {
return ext;
<apidef name="filesystems">Filesystems API</apidef>
</apidefs>
<changes>
<change id="getActionsDeprecated">
<api name="filesystems"/>
<summary>Deprecating FileSystem.getActions</summary>
<version major="8" minor="12"/>
<date year="2014" month="4" day="25"/>
<author login="jtulach"/>
<compatibility addition="yes"/>
<description>
<p>
Deprecating <code>getActions</code> method in preparation
of splitting filesystems API into UI (e.g. depending
on Swing) and non-UI part (that can run on JDK8 compact
profile).
</p>
</description>
<class package="org.openide.filesystems" name="FileSystem"/>
<class package="org.openide.filesystems" name="AbstractFileSystem"/>
<class package="org.openide.filesystems" name="MultiFileSystem"/>
<issue number="243265"/>
</change>
<change id="MultiFileObject.revealEntriesAttribute">
<summary>Allowed to reveal deleted files, or original files overriden by writable layer</summary>
OpenIDE-Module: org.openide.filesystems
OpenIDE-Module-Localizing-Bundle: org/openide/filesystems/Bundle.properties
OpenIDE-Module-Layer: org/openide/filesystems/resources/layer.xml
OpenIDE-Module-Specification-Version: 8.11
OpenIDE-Module-Specification-Version: 8.12
/* Action for this filesystem.
*
* @return refresh action
* @deprecated actions should be provided by higher level parts of the
* system, not something as low level as filesystems
public SystemAction[] getActions() {
@Deprecated public SystemAction[] getActions() {
if (!isEnabledRefreshFolder()) {
return NO_SYSTEM_ACTIONS;
} else {
* and {@link org.openide.util.actions.Presenter.Toolbar Toolbar} presenters.
* @return array of available actions
public abstract SystemAction[] getActions();
return new SystemAction[0];
/**
* Get actions appropriate to a certain file selection.
* By default, returns the same list as {@link #getActions()}.
* @param foSet one or more files which may be selected
* @return zero or more actions appropriate to those files
public SystemAction[] getActions(Set<FileObject> foSet) {
return this.getActions();
/** Merge actions from all delegates.
public @Override SystemAction[] getActions() {
List<SystemAction> al = new ArrayList<SystemAction>(101); // randomly choosen constant
Set<SystemAction> uniq = new HashSet<SystemAction>(101); // not that randommly choosen
return al.toArray(new SystemAction[al.size()]);
* Merge actions from all delegates.
public @Override SystemAction[] getActions(final Set<FileObject> foSet) {
* {@link FileSystem}.
* @author Jaroslav Tulach
* @deprecated uses {@link FileSystem#getActions(java.util.Set)} which is
* now deprecated
public class FileSystemAction extends SystemAction
implements ContextAwareAction, Presenter.Menu, Presenter.Popup {
/** empty array of menu items */
@Override
public Action[] actions(Set files) {
return new Action[]{};
public InterceptionListener getInterceptionListener() {
return interceptor;
// XXX: And now what!? This code is really used in the IDE!
if (files.isEmpty()) return new Action[0];
if(!VersioningManager.isInitialized()) {