站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.5.1

ProjectActionPerformer (NetBeans Project UI API) - NetBeans API Javadoc 5.5.1

org.netbeans.modules.projectuiapi/1 1.13.32 5

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


public interface ProjectActionPerformer

Callback interface for project- and main project-sensitive actions.


Method Summary
 boolean enable(Project project)
          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 project.
 void perform(Project project)
          Called when the user invokes the action.
 

Method Detail

enable

boolean enable(Project project)
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 project.

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

perform

void perform(Project project)
Called when the user invokes the action.

Parameters:
project - the project this action was invoked for (XXX can this be null or not?)

org.netbeans.modules.projectuiapi/1 1.13.32 5

Built on March 26 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.