Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » How To Tie A Toolbar Button To A Specific Perspective?
How To Tie A Toolbar Button To A Specific Perspective? [message #485992] Tue, 15 September 2009 20:10 Go to next message
Eclipse UserFriend
Originally posted by: runzhou.li.gmail.com

Hi,

What I want to do is to add a toolbar button to a specific perspective.

Is there any way of doing this?

Thank you in advance.

--
Runzhou Li
Re: How To Tie A Toolbar Button To A Specific Perspective? [message #486003 is a reply to message #485992] Tue, 15 September 2009 20:50 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi,

you could use a visible-when clause.

For details see:

http://www.vogella.de/articles/EclipseCommands/article.html

and http://wiki.eclipse.org/Command_Core_Expressions

Best regards, Lars
Runzhou Li wrote:
> Hi,
>
> What I want to do is to add a toolbar button to a specific perspective.
>
> Is there any way of doing this?
>
> Thank you in advance.
>
> --
> Runzhou Li




--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter
Re: How To Tie A Toolbar Button To A Specific Perspective? [message #486408 is a reply to message #486003] Thu, 17 September 2009 14:33 Go to previous message
Eclipse UserFriend
Originally posted by: runzhou.li.gmail.com

Thank you Lars, it works now :)

"Lars Vogel" <Lars.Vogel@gmail.com> 写入消息
news:h8ound$ub3$1@build.eclipse.org...
> Hi,
>
> you could use a visible-when clause.
>
> For details see:
>
> http://www.vogella.de/articles/EclipseCommands/article.html
>
> and http://wiki.eclipse.org/Command_Core_Expressions
>
> Best regards, Lars
> Runzhou Li wrote:
>> Hi,
>>
>> What I want to do is to add a toolbar button to a specific perspective.
>>
>> Is there any way of doing this?
>>
>> Thank you in advance.
>>
>> --
>> Runzhou Li
>
>
>
>
> --
> http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
> http://www.twitter.com/vogella - vogella on Twitter
Previous Topic:Calling viewer.update(element, ...) on a filtered object does not 'unfilter' it.
Next Topic:checkbox state change (checked-grayed-unchecked) logic in CheckboxTreeviewer
Goto Forum:
  


Current Time: Fri Mar 29 13:01:11 GMT 2024

Powered by FUDForum. Page generated in 0.02522 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top