/plugins/FirstMate/trunk/actions.xml

# · XML · 63 lines · 62 code · 1 blank · 0 comment · 0 complexity · 20ac1fe172e9ac94a5e0c59fb6fe580f MD5 · raw file

  1. <?xml version="1.0"?>
  2. <!DOCTYPE ACTIONS SYSTEM "actions.dtd">
  3. <ACTIONS>
  4. <ACTION NAME="firstmate-enabled" NO_REPEAT="TRUE">
  5. <CODE>
  6. firstmate.FirstMatePlugin.setEnabled(
  7. !firstmate.FirstMatePlugin.isEnabled());
  8. </CODE>
  9. <IS_SELECTED>
  10. return firstmate.FirstMatePlugin.isEnabled();
  11. </IS_SELECTED>
  12. </ACTION>
  13. <ACTION NAME="firstmate-ignore-next" NO_REPEAT="TRUE">
  14. <CODE>
  15. firstmate.FirstMatePlugin.setIgnoreNext(
  16. !firstmate.FirstMatePlugin.getIgnoreNext());
  17. </CODE>
  18. <IS_SELECTED>
  19. return firstmate.FirstMatePlugin.getIgnoreNext();
  20. </IS_SELECTED>
  21. </ACTION>
  22. <ACTION NAME="newline-and-indent" NO_REPEAT="FALSE">
  23. <CODE>
  24. firstmate.EditingActions.appendNewlineAndIndent(textArea);
  25. </CODE>
  26. </ACTION>
  27. <ACTION NAME="newline-indent-newline" NO_REPEAT="TRUE">
  28. <CODE>
  29. firstmate.EditingActions.newlineIndentNewline(textArea);
  30. </CODE>
  31. </ACTION>
  32. <ACTION NAME="colon-at-eol" NO_REPEAT="FALSE">
  33. <CODE>
  34. firstmate.EditingActions.insertAtEOL(textArea, ":", false);
  35. </CODE>
  36. </ACTION>
  37. <ACTION NAME="colon-at-eol-and-newline" NO_REPEAT="FALSE">
  38. <CODE>
  39. firstmate.EditingActions.insertAtEOL(textArea, ":", true);
  40. </CODE>
  41. </ACTION>
  42. <ACTION NAME="comma-at-eol" NO_REPEAT="FALSE">
  43. <CODE>
  44. firstmate.EditingActions.insertAtEOL(textArea, ",", false);
  45. </CODE>
  46. </ACTION>
  47. <ACTION NAME="comma-at-eol-and-newline" NO_REPEAT="FALSE">
  48. <CODE>
  49. firstmate.EditingActions.insertAtEOL(textArea, ",", true);
  50. </CODE>
  51. </ACTION>
  52. <ACTION NAME="semicolon-at-eol" NO_REPEAT="FALSE">
  53. <CODE>
  54. firstmate.EditingActions.insertAtEOL(textArea, ";", false);
  55. </CODE>
  56. </ACTION>
  57. <ACTION NAME="semicolon-at-eol-and-newline" NO_REPEAT="FALSE">
  58. <CODE>
  59. firstmate.EditingActions.insertAtEOL(textArea, ";", true);
  60. </CODE>
  61. </ACTION>
  62. </ACTIONS>