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

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

 

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

public 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

public 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?)

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.