1

I need to show/hide a command in toolbar depending on active view. how can i do that. any help will be appreciated.

i am trying using the visiblewhen but it's not working.

4

1 に答える 1

3

次のコードは、ビューがフォーカスされているときにツールバーにアクションを追加します。

 <visibleWhen
        checkEnabled="false">
     <with
           variable="activePartId">
        <equals
              value="com.example.activeViewID">
        </equals>
     </with>
  </visibleWhen>
于 2012-10-09T09:55:21.470 に答える