PHP perspective and new Project Wizard
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / phpeditor / PHPActionGroup.java
1 package net.sourceforge.phpeclipse.phpeditor;
2
3 import org.eclipse.jface.action.IMenuManager;
4 import org.eclipse.ui.actions.ActionGroup;
5
6 public class PHPActionGroup extends ActionGroup {
7   protected PHPEditor editor;
8   protected String menuGroupId;
9
10   public PHPActionGroup(PHPEditor editor, String menuGroupId) {
11     this.editor = editor;
12     this.menuGroupId = menuGroupId;
13   }
14
15   public void fillContextMenu(IMenuManager menu) {
16     super.fillContextMenu(menu);
17
18     menu.add(editor.getAction("Comment"));
19     menu.add(editor.getAction("Uncomment"));
20   }
21 }