I am very new to rcp. In my plugin, I have three perspectives and In a perspective, I have 4-5 views, I want to create a toolbar specific to the slected perspective. I searched a lot for this but unable to find any answer, please help me in this.
One solution is to create an extension using org.eclipse.ui.actionSets that contains a set of actions you want to be displayed in the tool bar when a specific perspective is selected. Then there is a extension point called org.eclipse.ui.perspectiveExtensions where you can associated a action set ID (the one you created) with a persepctive ID and that action set is only shown when the perspective is active. In terms of "creating your own tool bar" that is in clear. There is always only one toolbar but based on the perspective/view selection items can be hidden or active.