*/
public class PHPActionContributor extends TextEditorActionContributor {
+ public static final String COMMENT = "net.sourceforge.phpeclipse.phpeditor.comment";
+ public static final String UNCOMMENT = "net.sourceforge.phpeclipse.phpeditor.uncomment";
+
protected RetargetTextEditorAction fContentAssistProposal;
protected RetargetTextEditorAction fContentAssistTip;
protected TextEditorAction fTogglePresentation;
fContentAssistProposal.setAction(getAction(editor, "ContentAssistProposal")); //$NON-NLS-1$
fContentAssistTip.setAction(getAction(editor, "ContentAssistTip")); //$NON-NLS-1$
+ IActionBars bars= getActionBars();
+ bars.setGlobalActionHandler(COMMENT, getAction(editor, "Comment"));
+ bars.setGlobalActionHandler(UNCOMMENT, getAction(editor, "Uncomment"));
+
fTogglePresentation.setEditor(editor);
fTogglePresentation.update();