* Builds the popup menu
*/
private void setupPopupMenu() {
popupMenu = new JPopupMenu();
executeMenuItem = Utility.createMenuItem( this.getClass(), "Execute", EXECUTE_PNG, new AbstractAction() {
public void actionPerformed(ActionEvent e) {
executeSelectedTasks();
}
});
popupMenu.add(executeMenuItem);
executeOnlyThisMenuItem = Utility.createMenuItem( this.getClass(), "Execute Ignoring Dependencies (-a)", BLANK_PNG, new AbstractAction() {
public void actionPerformed(ActionEvent e) {
executeSelectedTasks("-a");
}
});
popupMenu.add(executeOnlyThisMenuItem);
popupMenu.addSeparator();
addToFavoritesMenuItem = Utility.createMenuItem( this.getClass(), "Add To Favorites", BLANK_PNG, new AbstractAction() {
public void actionPerformed(ActionEvent e) {
addSelectedToFavorites();
}
});
popupMenu.add(addToFavoritesMenuItem);
filterOutMenuItem = Utility.createMenuItem( this.getClass(), "Hide", BLANK_PNG, new AbstractAction() {
public void actionPerformed(ActionEvent e) {
hideSelection();
}
});
popupMenu.add(filterOutMenuItem);
editFileMenuItem = Utility.createMenuItem( this.getClass(), "Edit File", BLANK_PNG, new AbstractAction() {
public void actionPerformed(ActionEvent e) {
editSelectedFiles();
}
});
popupMenu.add(editFileMenuItem);
copyTaskNameMenuItem = Utility.createMenuItem( this.getClass(), "Copy Task Name", BLANK_PNG, new AbstractAction() {
public void actionPerformed(ActionEvent e) {
copySelectedTaskNames();
}
});