org.netbeans.spi.project.ui.support
public class CommonProjectActions extends Object
Modifier and Type | Field and Description |
---|---|
static String |
EXISTING_SOURCES_FOLDER
FileObject value honored by newProjectAction()
that defines initial value for existing sources directory choosers. |
Modifier and Type | Method and Description |
---|---|
static Action |
closeProjectAction()
Create an action "Close Project".
|
static Action |
copyProjectAction()
Create an action "Copy Project".
|
static Action |
customizeProjectAction()
Create an action "Customize Project".
|
static Action |
deleteProjectAction()
Create an action "Delete Project".
|
static Action[] |
forType(String projectType)
Loads actions to be displayed in the context menu of
LogicalViewProvider.createLogicalView() . |
static Action |
moveProjectAction()
Create an action "Move Project".
|
static Action |
newFileAction()
Create an action project dependent "New File" action.
|
static Action |
newProjectAction()
Creates action that invokes New Project wizard.
|
static Action |
openSubprojectsAction()
Create an action "Open Subprojects".
|
static Action |
renameProjectAction()
Create an action "Rename Project".
|
static Action |
setAsMainProjectAction()
Create an action "Set As Main Project".
|
static Action |
setProjectConfigurationAction()
Creates an action that sets the configuration of the selected project.
|
public static final String EXISTING_SOURCES_FOLDER
FileObject
value honored by newProjectAction()
that defines initial value for existing sources directory choosers.public static Action setAsMainProjectAction()
Project
.
You might include this in the context menu of a logical view.
public static Action customizeProjectAction()
Project
.
You might include this in the context menu of a logical view.
public static Action openSubprojectsAction()
Project
s.
You might include this in the context menu of a logical view.
SubprojectProvider
public static Action closeProjectAction()
Project
s.
You might include this in the context menu of a logical view.
public static Action newFileAction()
You might include this in the context menu of a logical view.
PrivilegedTemplates
,
RecommendedTemplates
public static Action deleteProjectAction()
Project
s.
You might include this in the context menu of a logical view.
public static Action copyProjectAction()
Project
s.
You might include this in the context menu of a logical view.
public static Action moveProjectAction()
Project
s.
You might include this in the context menu of a logical view.
public static Action renameProjectAction()
Project
s.
You might include this in the context menu of a logical view.
public static Action newProjectAction()
EXISTING_SOURCES_FOLDER
keyed action
value can carry FileObject
that points
to existing sources folder. Set this value
if you open the wizard and you know user
expectations about initial value for wizard
choosers that refers to existing sources location.
public static Action setProjectConfigurationAction()
Project
.
The action itself should not be invoked but you may use its popup presenter.
You might include this in the context menu of a logical view.
ProjectConfigurationProvider
public static Action[] forType(String projectType)
LogicalViewProvider.createLogicalView()
.
The current implementation simply loads actions from Projects/<projectType>/Actions
but in the future it may merge in actions from another location as well.
The folder is recommended to contain a link to Projects/Actions
at some position
in order to pick up miscellaneous actions applicable to all project types.
projectType
- a type token, such as org-netbeans-modules-java-j2seproject
Built on March 18 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.