Is there a way to add a customized action to a BuildDefiniton action list
When a user right clicks on a BuildDefintion I want to add a action to that list that will cause some custom code to run against that builddefinition. Specifically I want to load the build definition with predefinied properties for a properties file instead of having the user manually type in all the properties. I want to use the existing build definitions and do not want to create a custom template because our build implementation supports multiple types of build definitions that exist.
Currently I have a custom delete action on the build result, so hoping I can also extend the build definition action list.
Currently I have a custom delete action on the build result, so hoping I can also extend the build definition action list.
2 answers
Hi Steve, there's a bit of an easter egg feature whereby if you hold down Ctrl while choosing Edit Configuration (in the header menu in the build definition editor), it shows all available config options, not just those listed by the definition's template. So you could just define a buildConfigurationElements extension, assuming the defaults for the properties are statically defined. If that's not the case, the class to target for an object action contribution is com.ibm.team.build.internal.ui.domain.BuildDefinitionQueryNode. See how this is targeted in the plugin.xml for com.ibm.team.build.ui for the Show History action.
Comments
Doesn't appear the copy/paste option works/exists, at least in the 4.0.2 Eclipse client. I go into the Properties tab of a build definition, use Edit->Select All, but the Edit->Copy/Cut/Paste options remain grayed out, and Ctrl-C doesn't affect the clipboard (as evidenced by pasting into a text file, which just pastes what I previously had in the clipboard. Is the copy/paste option only offered in later versions of RTC?