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

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

 

org.netbeans.spi.project.ui.support
Class CommonProjectActions

java.lang.Object
  extended byorg.netbeans.spi.project.ui.support.CommonProjectActions

public class CommonProjectActions
extends Object

Factory for commonly needed generic project actions.


Method Summary
static Action closeProjectAction()
          Create an action "Close Project".
static Action customizeProjectAction()
          Create an action "Customize Project".
static Action newFileAction()
          Create an action project dependent "New File" action.
static Action openSubprojectsAction()
          Create an action "Open Subprojects".
static Action setAsMainProjectAction()
          Create an action "Set As Main Project".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setAsMainProjectAction

public static Action setAsMainProjectAction()
Create an action "Set As Main Project". It should be invoked with an action context containing one Project.

You might include this in the context menu of a logical view.

Returns:
an action

customizeProjectAction

public static Action customizeProjectAction()
Create an action "Customize Project". It should be invoked with an action context containing one Project.

You might include this in the context menu of a logical view.

Returns:
an action

openSubprojectsAction

public static Action openSubprojectsAction()
Create an action "Open Subprojects". It should be invoked with an action context containing one or more Projects.

You might include this in the context menu of a logical view.

Returns:
an action
See Also:
SubprojectProvider

closeProjectAction

public static Action closeProjectAction()
Create an action "Close Project". It should be invoked with an action context containing one or more Projects.

You might include this in the context menu of a logical view.

Returns:
an action

newFileAction

public static Action newFileAction()
Create an action project dependent "New File" action.

You might include this in the context menu of a logical view.

Returns:
an action
See Also:
PrivilegedTemplates, RecommendedTemplates

 

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