| Modifier and Type | Field and Description |
|---|---|
static int |
NO_FLAGS |
static int |
NO_IMPORT |
| Constructor and Description |
|---|
AddProjectAction(VPTGroup parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Creates a new project.
|
static VPTProject |
createProject(VPTGroup parent,
int flags)
Creates a new project and opens a dialog for it.
|
static VPTProject |
createProject(VPTProject proj,
VPTGroup parent,
int flags)
Creates a new project and opens a dialog for it.
|
java.lang.String |
getText()
Returns the text to be shown on the button and/or menu item.
|
void |
prepareForNode(VPTNode node)
Enable action only for the root node.
|
public static final int NO_FLAGS
public static final int NO_IMPORT
public AddProjectAction(VPTGroup parent)
parent - The group under which a project will be added.
If null, active node or its parents will be
used.public java.lang.String getText()
public static VPTProject createProject(VPTProject proj, VPTGroup parent, int flags)
This method should not be called from outside Project Viewer.
For external api see are similar methods in
PVActions.
proj - A new VPTProject object, with some
fields set by the caller. May be null.parent - A parent group. If null, root node
assumed.flags - NO_IMPORT or
NO_FLAGSnull if user cancelled the dialog.public static VPTProject createProject(VPTGroup parent, int flags)
This method should not be called from outside Project Viewer.
For external api see are similar methods in
PVActions.
parent - A parent group. If null, root node
assumed.flags - NO_IMPORT or
NO_FLAGSnull if user cancelled the dialog.public void actionPerformed(java.awt.event.ActionEvent e)
parent member is not set,
gets it from the currently selected node.public void prepareForNode(VPTNode node)
prepareForNode in class Actionnode - The selected node, or null if multiple
nodes are selected.