[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Re: Viewer Contribution
|
The command framework should be able to handle this case.
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench_cmd_menus.htm
In particular,
"toolbar:org.eclipse.ui.views.ContentOutline?after=additions - insert
this contribution in the Content Outline view toolbar, after the
additions group."
Alternatively, when you create a new view using the PDE wizard, it
contains code that programmatically adds actions to the view (in three
places). Instead of creating the actions in the view, create them with
another (shared) class and programmatically add them to the views you
care about.
HTH,
Wayne
On Wed, 2008-05-07 at 09:44 +0000, S Prabhu wrote:
> Hello,
>
> i have multiple view in my application, i want to contribute the same
> action to two of my views.
> Object Contribution won't help me in this case.. because i will show the
> same object type in some other views also (Where i don't want this actions)
>
> please help how i can contribute the same action to multiple views..
>
>
> Please help to achieve this
>
> Thanks
> S.Prabhu
>