Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Typo corrections

...

  • The isApplicable method returns the new state of an action
  • The update method is designed to update the state manually. You can also update any of your action's properties (caption, icon etc.) by accessing action's presentation via event.getPresentation(). Call the the setEnabledState() method on an action to enable or disable it manually.

...

Any action can have a number of keyboard shortcuts. This can be specified using the KeyMapChanges concept. For a parameterized action, which has a number of "instances" (one instance per parameter value), a function can be specified, which returns a different shortcut for a different parameter value.
In MPS, there are some "default keymaps", which you can see in Settings->Keymaps. The for keymap section allows you to specify a keycap that the KeyMapChanges definition is contributing to. E.g. one can set different shortcuts for the same action in the MacOS and the Windows keymaps.

...

  • finding the base node
  • finding subordinate nodes
  • optionally an algorithms algorithm of subordinate nodes creation

...

Position - on of top/bottom/left/right to add the tool to the desired MPS tool bartoolbar

Init - initialize the tool instance here

Dispose - dispose of all the tool resources here

...

Anchor
preferences components
preferences components

Tabbed Tools

It's the same as tool window, but additionally can contain multiple tabs

...

Position - on of top/bottom/left/right to add the tool to the desired MPS tool bartoolbar

Init - initialize the tool instance here

...

commit - in this method preferences should be collected from the UI component and commited committed to wherever they are used.

...