Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Text Field on Toolbar
Text Field on Toolbar [message #290626] Sun, 28 August 2005 06:13 Go to next message
Muhammad Aamir is currently offline Muhammad AamirFriend
Messages: 48
Registered: July 2009
Member
How to add a text field in a tool bar and associate it with a Perspective ?
I mean, when user switches another perspective, text field should be removed
and when she switches back to the same perspective, it should bbe
re-appeared.

Thanx
Muhammad Aamir
Re: Text Field on Toolbar [message #290627 is a reply to message #290626] Sun, 28 August 2005 06:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mvsteenbergen.eljakim.scratch-this.nl

Have you tried wrapping the text field in an IContributionItem? The GEF
project has as example of this: ZoomComboContributionItem which
encapsulates a combo box. You'd add it the same way you'd add any other
Perspective-specific action.

Regards,

Martijn.

Muhammad Aamir wrote:
> How to add a text field in a tool bar and associate it with a Perspective ?
> I mean, when user switches another perspective, text field should be removed
> and when she switches back to the same perspective, it should bbe
> re-appeared.
Re: Text Field on Toolbar [message #290655 is a reply to message #290627] Mon, 29 August 2005 13:18 Go to previous messageGo to next message
Muhammad Aamir is currently offline Muhammad AamirFriend
Messages: 48
Registered: July 2009
Member
ok I coudn the class (ZoomComboContributionItem). Can somebody give me a
hint how to add in a perspective

"Martijn van Steenbergen" <mvsteenbergen@eljakim.scratch-this.nl> wrote in
message news:derlhl$8gd$1@news.eclipse.org...
> Have you tried wrapping the text field in an IContributionItem? The GEF
> project has as example of this: ZoomComboContributionItem which
> encapsulates a combo box. You'd add it the same way you'd add any other
> Perspective-specific action.
>
> Regards,
>
> Martijn.
>
> Muhammad Aamir wrote:
>> How to add a text field in a tool bar and associate it with a Perspective
>> ? I mean, when user switches another perspective, text field should be
>> removed and when she switches back to the same perspective, it should
>> bbe re-appeared.
Re: Text Field on Toolbar [message #290657 is a reply to message #290655] Mon, 29 August 2005 13:30 Go to previous message
Muhammad Aamir is currently offline Muhammad AamirFriend
Messages: 48
Registered: July 2009
Member
ok I found the class (ZoomComboContributionItem). Can somebody give me a
hint how to add in a perspective

"Muhammad Aamir" <aamir_1975@yahoo.com> wrote in message
news:dev1pc$kpu$1@news.eclipse.org...
> ok I coudn the class (ZoomComboContributionItem). Can somebody give me a
> hint how to add in a perspective
>
> "Martijn van Steenbergen" <mvsteenbergen@eljakim.scratch-this.nl> wrote in
> message news:derlhl$8gd$1@news.eclipse.org...
>> Have you tried wrapping the text field in an IContributionItem? The GEF
>> project has as example of this: ZoomComboContributionItem which
>> encapsulates a combo box. You'd add it the same way you'd add any other
>> Perspective-specific action.
>>
>> Regards,
>>
>> Martijn.
>>
>> Muhammad Aamir wrote:
>>> How to add a text field in a tool bar and associate it with a
>>> Perspective ? I mean, when user switches another perspective, text field
>>> should be removed and when she switches back to the same perspective,
>>> it should bbe re-appeared.
>
>
Previous Topic:How to write to the Console View
Next Topic:JDT Debugger: Color of the highlighted source line
Goto Forum:
  


Current Time: Sun Sep 22 16:51:49 GMT 2024

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

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

Back to the top