DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page How to disable items on the Dynamic pull down on Toolbar?
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Apr 2008
Default How to disable items on the Dynamic pull down on Toolbar? - 04-28-2008, 03:21 AM

Hi,
I added items to my Pull down on my toolbar statically and dynamically.

I have used AbstractContributionFactory to add the items dynamically. It is working fine.

<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="toolbarrg.eclipse.ui.main.toolbar?a fter=additions">
<toolbar
id="com.fmrco.insight.toolbar.myToolbar">
<command
commandId="com.fmrco.insight.toolbar.myCommand"
id="com.fmrco.insight.toolbar.com"
label="Help"
style="pulldown"
tooltip="Send the message">
<parameter
name="com.fmrco.insight.toolbar.myMessage"
value="Hello">
</parameter>
</command>
</toolbar>
</menuContribution>
<menuContribution
locationURI="menu:com.fmrco.insight.toolbar.com">
<command
commandId="com.fmrco.insight.toolbar.myCommand"
label="Welcome"
style="pulldown">
<parameter
name="com.fmrco.insight.toolbar.myMessage"
value="Welcome!!!!! ">
</parameter>
</command>
<command
commandId="com.fmrco.insight.toolbar.myCommand"
label="Dynamic Help"
style="pulldown">
<parameter
name="com.fmrco.insight.toolbar.myMessage"
value="Dynamic help window">
</parameter>
</command>
</menuContribution>
</extension>


Now i would like to disable the items on the pulldown, something like the "Back" button on the browser.

i did have a look at Menu Contributions - Eclipsepedia
which talks about visible when, enable etc.

please help me out in this.
thanks in advance.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pull down button in View Toolbar jayjamba Eclipse 2 09-02-2008 12:49 AM
Declarative Toolbar Action Pouletchu Eclipse 0 08-03-2008 06:08 AM
Disable the action in PopupMenus extension point? jayjamba Eclipse 0 07-23-2008 01:24 AM
Disable right-click mtrudgia Eclipse 0 03-31-2008 01:19 AM
Plugin menu items arthur_dent.42 Eclipse 1 03-27-2008 05:14 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com