Enable/disable WorkList, Clipboard?

Hello,

how do I disable some options WorkList?

For example Paste in current folder , Export to XML

0 votes

1 answers

2602 views

ANSWER



Old question, but if anyone were to need an answer:

These “options” are buttons, therefore they are actions, defined by the action extension point.

The “Paste in current folder” is defined by this action:

<action icon="/icons/action_paste_all.gif" id="WORKLIST_PASTE" label="command.clipboard.pasteAll" link="#{clipboardActions.pasteWorkingList}">
      <category>DEFAULT_LIST</category>
      <category>CLIPBOARD_LIST</category>
      <filter-id>canPasteCurrentWorkList</filter-id>
    </action>

To disable it, two possibilities:

  • Use the “enabled” attribute for the “action” tag (<action enabled=“false” …) if you need it to be completely disabled.
  • Add it another filter either with a condition implying no one can see the button, or with specific conditions if you need to only partially disable it.

For the other options, you just have to find the right action.

2 votes