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. |
static String |
PROJECT_PARENT_FOLDER
File value honored by newProjectAction()
that defines initial value for parent folder |
| 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 final String PROJECT_PARENT_FOLDER
File value honored by newProjectAction()
that defines initial value for parent folderpublic 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()
Projects.
You might include this in the context menu of a logical view.
SubprojectProviderpublic static Action closeProjectAction()
Projects.
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,
RecommendedTemplatespublic static Action deleteProjectAction()
Projects.
You might include this in the context menu of a logical view.
public static Action copyProjectAction()
Projects.
You might include this in the context menu of a logical view.
public static Action moveProjectAction()
Projects.
You might include this in the context menu of a logical view.
public static Action renameProjectAction()
Projects.
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.
ProjectConfigurationProviderpublic 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-j2seprojectBuilt on June 18 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.