IActionBars bars = getActionBars();
bars.setGlobalActionHandler(PHPdtActionConstants.COMMENT, getAction(textEditor, "Comment"));
bars.setGlobalActionHandler(PHPdtActionConstants.UNCOMMENT, getAction(textEditor, "Uncomment"));
-
+ bars.setGlobalActionHandler(PHPdtActionConstants.FORMAT, getAction(textEditor, "Format"));
+
if (part instanceof PHPEditor) {
PHPEditor cuEditor= (PHPEditor)part;
ActionGroup group= cuEditor.getActionGroup();