|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprojectviewer.action.Action
projectviewer.action.AddProjectAction
public class AddProjectAction
Action that when executed creates a new project.
Field Summary | |
---|---|
static int |
NO_FLAGS
|
static int |
NO_IMPORT
|
Fields inherited from class projectviewer.action.Action |
---|
action, cmItem, viewer |
Constructor Summary | |
---|---|
AddProjectAction(VPTGroup parent)
|
Method Summary | |
---|---|
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. |
Methods inherited from class projectviewer.action.Action |
---|
clone, compareTo, equals, getMenuItem, setViewer |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NO_FLAGS
public static final int NO_IMPORT
Constructor Detail |
---|
public AddProjectAction(VPTGroup parent)
parent
- The group under which a project will be added.
If null
, active node or its parents will be
used.Method Detail |
---|
public java.lang.String getText()
getText
in class Action
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_FLAGS
null
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_FLAGS
null
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 Action
node
- The selected node, or null
if multiple
nodes are selected.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |