Tweak actions’ type associations

Another great addition in PowerGUI 1.8 is Display Configuration dialog box in action properties.

Among other things, this dialog box finally lets you set precisely the way PowerGUI decides which links and actions to show for the objects in the central grid.

Type_Association

The way PowerGUI works with regards to links and actions is pretty simple. It checks the types of the first element in the grid (or the types which the element used to have last time if there is 0 objects this time) and picks all the links and actions associated with any of the types.

This has a few implications:

  • You can fine-tune the way that the links and actions are selected by targeting them to various types (including base types from which other types are derived) or share them across multiple types – just set the appropriate types in the dialog box shown above.)
  • You can associate an action with a tree node (rather than the object type) by manually adding your own special type to the objects your node emits: e.g. $myObject.PSObject.TypeNames.Insert(0,'MyObjectTypeName') – see this post for more information on manipulating PowerShell types.

These mechanisms are not new, but now you have a dialog box in GUI to fine-tune the behavior.

Tags: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




My Recent Tweets

Legal

The posts on this blog are provided “as is” with no warranties and confer no rights. The opinions expressed on this site are mine and mine alone, and do not necessarily represent those of my employer - WSO2 or anyone else for that matter. All trademarks acknowledged.

© 2007-2014 Dmitry Sotnikov

June 2009
M T W T F S S
« May   Jul »
1234567
891011121314
15161718192021
22232425262728
2930  

%d bloggers like this: