Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Show\Hide menu based on current selected tab in TabbedPropertySheetPage in Eclipse
Show\Hide menu based on current selected tab in TabbedPropertySheetPage in Eclipse [message #1801835] Mon, 28 January 2019 09:01
Vishal Pawar is currently offline Vishal PawarFriend
Messages: 1
Registered: January 2019
Junior Member
I am trying to show\hide Property View toolbar menu based on current selected tab id, but its not working. The extension in plugin.xml looks like this -
<extension point="org.eclipse.ui.menus">
    <menuContribution locationURI="toolbar:org.eclipse.ui.views.PropertySheet">
        <command
               commandId="sub.request"
               icon="icons/test_icon.gif"
               label="Test Request"
               style="push"
               tooltip="Test Request">
            <visibleWhen checkEnabled="false">
                <with variable="selection">
                    <equals value="selectedTabId???"/>
                </with>
            </visibleWhen>
        </command>
    </menuContribution>
</extension>

<extension point="org.eclipse.ui.commands">
    <command
            description="Test Request"
            id="sub.request"
            name="SubRequest">
    </command>
</extension>

<extension point="org.eclipse.ui.handlers">
    <handler
            class="com.test.SubRequestHandler"
            commandId="sub.request">
    </handler>
</extension>
Previous Topic:When it does not add the trailing slash, it shows another topic in forums.
Next Topic:Eclipse Photon (or Java 8 compatible tool)
Goto Forum:
  


Current Time: Thu Jan 23 21:54:01 GMT 2025

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

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

Back to the top