org.netbeans.modules.projectuiapi/1 1.57.0 8

org.netbeans.spi.project.ui.support
Interface FileActionPerformer


public interface FileActionPerformer

Callback interface for file-sensitive actions.

Since:
1.56.0

Method Summary
 boolean enable(FileObject file)
          Called when the context of the action changes and the action should be enabled or disabled within the new context, according to the newly selected file.
 void perform(FileObject file)
          Called when the user invokes the action.
 

Method Detail

enable

boolean enable(FileObject file)
Called when the context of the action changes and the action should be enabled or disabled within the new context, according to the newly selected file.

Parameters:
file - the currently selected file, or null if no file is selected
Returns:
true to enable the action, false to disable it

perform

void perform(@NonNull
             FileObject file)
Called when the user invokes the action.

Parameters:
file - the file this action was invoked for

org.netbeans.modules.projectuiapi/1 1.57.0 8

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.