please find the below configurations and help in creating a CustomAction Class. When clicked the newly added custom action the CustomAction class should execute (work should be done in background)
custom-actionModels.xml:
<model name="psbRelatedPartsTreeContextMenu">
..
<action name="psbaction1" type="psb"/>
</model>
custom-actions.xml :
<listofactions>
<objecttype name="psb" resourceBundle="ext.custom.psb.resource.psbCustomActionsRB">
<action name="psbaction1">
<command class="sample.CustomAction"/>
</action>
</objecttype>
</listofactions>
psbCustomActionsRB.rbinfo:
psb.psbaction1.description.value=psbaction1
psb.psbaction1.tooltip.value=psbaction1
psb.psbaction1.title.value=psbaction1
psb.psbaction1.icon.value=stop.gif
psb.psbaction1.moreurlinfo.value=height=300,width=500